How hard is it to build a completely new standalone GUI?

More
28 Jan 2019 03:45 #125022 by KevKim
added <show pin> at the last line,
it behaved same as before, not launching any new windowor terminal
so I guess it is not calling ./postgui.hal. great discovery... damn it..
I am gonna try to change the name to my_postgui.hal and will put in together where original postgui.hal is located

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 03:59 #125023 by KevKim
it is very apparent that it doesn't call my_postgui.hal
(neither my_postgui.hal or ./my_postgui.hal)
Tried to change it to HALFILE = but then lots of error not finding hal pins.
So this should be in POSTGUI_HALFILE but it refused to load this file. hmm..
world of mystery..

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:17 #125024 by cmorley
Oh wait I forgot!!

postgui is only called from the GUI not from linuxcnc.

I have a solution for you. - lets run your glade file under Gscreen to fix this problem...

renameit as tester.glade and save it in sim/gscreen/gscreen_custom/ folder. Now launch LinuxCNC and click to sim/gscreen/gscreen_custom/tester and start it.

confirm that the screen loads and i will check what to do next. by the way are you using linuxcnc master or 2.7?

Chris M

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:19 #125025 by KevKim
master!!! latest patch to yesterday!
almost everyday there is a new patch, idk what that means, just trying!!
Im following your order right now sir !

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:24 #125026 by KevKim
okay, launched lcnc picker, made a copy of gscreen-tester, copied all my files in that folder too, now picker shows my_gui together with gscreen in selection window, it launched with no error, led won't work though yet

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:29 #125027 by cmorley
ok great.
now in the tester.ini file look for:

POSTGUI_HALFILE = gaxis_postgui.hal

change it to:
POSTGUI_HALFILE = tester_postgui.hal

then add a text file to the folder called tester.hal
in that file add the commands to connect the pins

Chris m

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:36 #125028 by cmorley
sorry don't name the new file tester,hal

tester_postgui.hal

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:47 - 28 Jan 2019 04:48 #125029 by KevKim
I am curious what to see from this procedure.

- .INI was modified to tester_postgui.hal
- renamed my glade file as tester.glade

and lots of error, mostly handler not found + hal_led_power pin does not exist.

It loads with original hal file, but not with modified postgui hal file.

I have very little clue what is going on here...
Last edit: 28 Jan 2019 04:48 by KevKim.

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:51 - 28 Jan 2019 04:52 #125030 by cmorley
can you post the actual error message?

Are you saying the tester_postgui.hal file is being called but errors?

What should happen is you should see your gui and the LED should work :)
Last edit: 28 Jan 2019 04:52 by cmorley.

Please Log in or Create an account to join the conversation.

More
28 Jan 2019 04:56 #125031 by KevKim
ah... I think I just found something..
So this command is available only with either TOUCHY or AXISGUI???
This explains a lot... but then ... how come gmoccapy could include this without using axisgui? I am crying T.T
linuxcnc.org/docs/2.6/html/config/ini_co...ml#sub:HALUI-section

2.7. [HAL] section
.
.
POSTGUI_HALFILE = example2.hal - (Only with the TOUCHY and AXIS GUI) Execute example2.hal after the GUI has created its HAL pins. See section pyVCP with Axis Section for more information.

Please Log in or Create an account to join the conversation.

Moderators: mhaberlerHansU
Time to create page: 0.205 seconds
Powered by Kunena Forum