Moving from Axis to Gmoccapy and Glade side panel problem

More
9 years 9 months ago #86339 by rodw
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 or Create an account to join the conversation.

More
9 years 9 months ago - 9 years 9 months ago #86498 by newbynobi
Sorry for leaving you guys so long alone, my boss forced me to work for real money B) :( :)

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
Last edit: 9 years 9 months ago by newbynobi.
The following user(s) said Thank You: cncnoob1979

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

More
9 years 9 months ago #86565 by G21
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.

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

Moderators: newbynobi, HansU
Time to create page: 1.049 seconds
Powered by Kunena Forum