gladeVCP Hal widgets: how to connect hal pins ?
So far, I designed how they should look with glade, modified my .ini file to make them appear between the cooling and spindle boxes which looks OK:
Starting Gmoccapy shows the buttons as expected and in the correct location:
Opening halshow shows the correct component (vaccool) as well as the corresponding pins as available:
But as soon as I want to use those pins in my custom_postgui.hal file:
I get the following error when starting linuxcnc:
Am I missing something fundamental here ?
in that file connect the widgets pins to signals only
then in any other file you can connect those signals to what ever other pins you like.
In this way the it doesn't matter on the timing of the availability of the pins.
Todd Zuercher wrote: I'm not sure about this, but it is possible that the underscores in your pin names are causing a problem. Can you try to rename what the hal pins your gui is creating are called to get rid of them.
x 2 I think your choice of pin names with an underscore is illegal so Hal rejects them. I say this because: If you write a component and compile it with halcompile, pin names containing an underscore in the component are converted to have a hyphen in hal (which is expected behaviour)
Rod - i'm not sure if you are talking about the comp limitation or the problem he is having.
cmorley wrote: Pin names can have underscores - that's a limitation imposed by the comp system.
So long since I've ventured into this stuff but could there be a disconnect in the python screen handler?
The comp limitation is because of legal c names IIRC, I imagine it was easier to just add the limitation.
Geerd's problem is a race condition - caused by how gladevcp is loaded without waiting for the pins to be ready.