Moving from Axis to Gmoccapy and Glade side panel problem
- G21
- Offline
- Junior Member
- Posts: 21
- Thank you received: 1
I am trying to move from Axis to Gmoccapy and I have a problem with my Glade side panel. All works fine in Axis but for some reason Gmoccapy refuses to start. The problem seems to be that during start-up the 'net' definition in my postgui.hal cause an error and the UI unloads and all stops.
I get the following error:
post_gui_list.hal: 6: Pin 'gladevcp.spindle-speed' does not exist
If I comment this line out, the error simply moves to the next pin definition in the postgui.hal. This all works fine in Axis but Gmoccapy stumbles on this. Attached is the screenshot from the error and the postgui.hal file.
Could anybody have a look at this and let me know how to get my sidepanel to load correctly?
Thanks in advance,
G21
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10737
- Thank you received: 3540
I still have not solved my problem, but try putting the net command in the subsidiary file. For me that let the pin to be found but the plasma tab is now broken. It was suggested to run LCNC from the command line and watch for the errors. I have not tried that yet.
Please Log in or Create an account to join the conversation.
- G21
- Offline
- Junior Member
- Posts: 21
- Thank you received: 1
Need to think about the sequence of loading all the HAL files maybe? Funny thing is that it works fine in Axis, this would mean the sequence is right isn't? Could be that Gmoccapy loads differently?
Have not tried to run from the command prompt yet, will try later maybe and see what happens there.
Lets hope that Norbert can shine a light on this for us, really want to use my new touchscreen and Gmoccapy seems perfect for this besides all the added functionality Gmoccapy has that I really want to put to use.
G21
Please Log in or Create an account to join the conversation.
- G21
- Offline
- Junior Member
- Posts: 21
- Thank you received: 1
I tried to move the pin assignments from the postgui.hal from the main HAL file to see if they would load there but no luck, same problem. I put them all the way in the beginning of the main HAL file, above the I/O configuration for the Mesa cards. Same error.
How does Gmoccapy run the HAL files and when does the GUI load?
Where do I put them to load them correctly?
Attached is the terminal output.
Let me know if there is something I am missing here, really want to get this going.
G21
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10737
- Thank you received: 3540
I see 2 errors being reported. I suspect the second one is as a result of the first.
**** No gmoccapy2.glade file present ****
ERROR, trying to initialize the user tabs or panaels, check for typos
postgui_call_list.hal:6: Pin 'gladevcp.spindle-speed' does not exist
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
I suspect that the path is incorrect or there is a typo somewhere
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Offline
- Platinum Member
- Posts: 403
- Thank you received: 75
postgui_call_list.hal:6: Pin 'gladevcp.spindle-speed' does not exist
Here is your error. I have the same error with my panels as well. I'm running current master too. I think there is a problem here. I'm sure Norbert will be by soon to enlighten us.
I had to comment out all of my pins [post_gui] with my VFD panel to get it to load the gladevcp panel.
**** No gmoccapy2.glade file present ****
This is for a custom panel you can load with gmoccapy. It is a standard error message basicaly stating it cant find the "custom" panel, its for information only. So no real error here.
EDIT: My configuration works just fine with Axis. I do have other panels that load without complaint in Gmoccapy just nothing to deal with my VFD and custom hal pins.
Norbert Posted this in another thread. I know I had this working before so I'll need to do some research and see whats changed either in my configuration or how I loaded my panel with gmoccapy. This deals with pyvcp, not gladevcp panels. Its strange we all have the same issue.pyvcp_options.hal:7: Pin 'pyvcp.spindle-speed' does not exist
That is the error that prevents linuxcnc from starting. You used a pyvcp panel with axis, but pyvcp panel do not work with gmoccapy.
Just go to your ini and comment the corresponding hal line.
Norbert
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10737
- Thank you received: 3540
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
- Posts: 2075
- Thank you received: 406
The reason is caused due to the load sequence.
The GUI loads and after that it tries to connect the pins according to the postgui hal file.
But at this time, the embedded tab panels are not loaded yet, so the pin do not exist.
The solution is easy:
you need to do the connections to your embedded tab in an own hal file and load the tab using the -H command line option.
Please see the following example:
EMBED_TAB_NAME = your_panel_name
EMBED_TAB_LOCATION = box_right
EMBED_TAB_COMMAND = gladevcp -x {XID} -H panel.hal panel.glade
Just see the -H panel.hal
Make your connections to the panel pins in that file and the GUI should start.
(all files need to be in your config dir)
Norbert
Please Log in or Create an account to join the conversation.
- G21
- Offline
- Junior Member
- Posts: 21
- Thank you received: 1
Thanks and I did just that. I found this in one of the sim samples and you are correct, this is the way to do it. I made a special HAL file just for my Gladevcp and load it in the same line as where you load the tab: EMBED_TAB_COMMAND = etc etc.
You can just copy everything you need from your custom postgui hal for the side panel into this new hal file and specify the name in the same line as Norbert says.
As we expected, the loading sequence is the problem but can be easily resolved as long as we know how. I browsed through samples for quite some time until I found this and tried it and found out it works.
Solved my problems, hope it does yours.
G21.
Please Log in or Create an account to join the conversation.