POSTGUI_HALFILE executed to early?

More
6 years 8 months ago #156865 by romeofox
Hello,

I have just switched to LinuxCNC 2.9

Now I get errors due to not existing signals, which are generated in a Glade-TAB and are included in the .ini via a separate HAL file using POSTGUI_HALFILE.

mymill.ini:

[DISPLAY]
EMBED_TAB_NAME=User
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND=gladevcp -x {XID} user.glade

...
[HAL]
POSTGUI_HALFILE = user.hal

If I comment out the line from the user.hal LinuxCNC starts without problems.

Is there a trick to it?

Best wishes
Robert

Please Log in to join the conversation.

More
6 years 8 months ago #156890 by persei8

Please Log in to join the conversation.

More
6 years 8 months ago #156904 by cmorley
use the -H option in gladevcp to add a HAL for the gladevcp panel.
linuxcnc.org/docs/2.7/html/gui/gladevcp....command_line_options

and in that HAL file connect only gladevcp pins to signals, then in the postgui file connect only the other pins to those signals - in that way it doesn't matter what pins are made first.

ie gladevcp HAL file:

net my_signal gladevcp-led

in postgui file:

net my_signal some-linuxcnc-driving-pin

Please Log in to join the conversation.

More
6 years 8 months ago #158313 by romeofox
That's how it works, thank you cmorley!

Please Log in to join the conversation.

Time to create page: 0.296 seconds
Powered by Kunena Forum