- Posts: 21
- Thank you received: 0
Moving from Axis to Gmoccapy and Glade side panel problem
9 years 9 months ago #86116
by G21
Moving from Axis to Gmoccapy and Glade side panel problem was created by G21
Hello everybody,
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
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 to join the conversation.
9 years 9 months ago #86130
by rodw
Replied by rodw on topic Moving from Axis to Gmoccapy and Glade side panel problem
I've had similar problems with the Plasma tab moving from axis too. The gmocappy ini fle display section is probably loading a separate hal file (in my case plasma.hal) so in the main hal file, the pin does not yet exist.
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.
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 to join the conversation.
9 years 9 months ago #86132
by G21
Replied by G21 on topic Moving from Axis to Gmoccapy and Glade side panel problem
Thanks for your reply but it seems weird because I can see the GUI for a second, this means the GUI loads first and that should define all the pins right? The postgui comes after the gui and in my ini file I made sure that the main hal file is loaded first and then the postgui.hal.
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
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 to join the conversation.
9 years 9 months ago #86227
by G21
Replied by G21 on topic Moving from Axis to Gmoccapy and Glade side panel problem
I tried to run from the terminal window to see what errors I got and it is exactly the same and as far as I can see it is the only error that causes Gmoccapy to shut down.
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
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 to join the conversation.
9 years 9 months ago #86229
by rodw
Replied by rodw on topic Moving from Axis to Gmoccapy and Glade side panel problem
The display opening and closing is something I had too.
I see 2 errors being reported. I suspect the second one is as a result of the first.
I suspect that the path is incorrect or there is a typo somewhere
I see 2 errors being reported. I suspect the second one is as a result of the first.
Code:
**** No gmoccapy2.glade file present ****
ERROR, trying to initialize the user tabs or panaels, check for typos
Code:
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 to join the conversation.
- cncnoob1979
- Offline
- Platinum Member
-
Less
More
- Posts: 403
- Thank you received: 0
9 years 9 months ago #86337
by cncnoob1979
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.
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.
Replied by cncnoob1979 on topic Moving from Axis to Gmoccapy and Glade side panel problem
Code:
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.
Code:
**** 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 to join the conversation.
9 years 9 months ago #86339
by rodw
Replied by rodw on topic Moving from Axis to Gmoccapy and Glade side panel problem
In my migration to gmocappy plasma on master, I found a number of typos in the default signal and pin names that gmocappy made in the sim config I started from. Review the glade and python files find the right signal or pin and make sure you are calling the pin by the right name.
Please Log in to join the conversation.
9 years 9 months ago #86498
by newbynobi
Replied by newbynobi on topic Moving from Axis to Gmoccapy and Glade side panel problem
Sorry for leaving you guys so long alone, my boss forced me to work for real money

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:
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
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:
Code:
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 to join the conversation.
9 years 9 months ago #86565
by G21
Replied by G21 on topic Moving from Axis to Gmoccapy and Glade side panel problem
Hello Norbert,
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.
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 to join the conversation.
Time to create page: 3.162 seconds
