- Posts: 12
- Thank you received: 0
Timing problem
- korbendallas78
- Offline
- New Member
-
Less
More
10 years 9 months ago #68810
by korbendallas78
Timing problem was created by korbendallas78
Hello,
I found a problem with load gmoccapy. I made a gladevcp panel with leds. I connect to this leds some other pins in postgui.hal. With axis ui no problem. But with gmoccap ui is send message : custom_postgui.hal :13: Pin 'leds.hal_led1' does not exist.
This error message not all time. Sometimes gmoccapy is started and the hal leds working well.
I think the custom_postgui.hal loaded before the gmoccapy started.
Sorry for my english.
I found a problem with load gmoccapy. I made a gladevcp panel with leds. I connect to this leds some other pins in postgui.hal. With axis ui no problem. But with gmoccap ui is send message : custom_postgui.hal :13: Pin 'leds.hal_led1' does not exist.
This error message not all time. Sometimes gmoccapy is started and the hal leds working well.
I think the custom_postgui.hal loaded before the gmoccapy started.
Sorry for my english.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
10 years 9 months ago #68811
by andypugh
Are you loading the GladeVCP with a "-W" switch?
This is likely to be more a GladeVCP timing issue that Gmoccapy.
loadusr flags are given here:
www.linuxcnc.org/docs/html/man/man1/halcmd.1.html
Replied by andypugh on topic Timing problem
korbendallas78 wrote: I made a gladevcp panel with leds. I connect to this leds some other pins in postgui.hal. With axis ui no problem. But with gmoccap ui is send message : custom_postgui.hal :13: Pin 'leds.hal_led1' does not exist.
Are you loading the GladeVCP with a "-W" switch?
This is likely to be more a GladeVCP timing issue that Gmoccapy.
loadusr flags are given here:
www.linuxcnc.org/docs/html/man/man1/halcmd.1.html
Please Log in or Create an account to join the conversation.
- korbendallas78
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
10 years 9 months ago #68812
by korbendallas78
Replied by korbendallas78 on topic Timing problem
EMBED_TAB_COMMAND = loadusr -W gladevcp -x {XID} leds.glade
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
10 years 9 months ago - 10 years 9 months ago #68813
by andypugh
The manual ( www.linuxcnc.org/docs/html/gui/gladevcp.html ) suggests -Wn gladevcp, ie
This waits for a component "gladevcp" and has a -c option that I am not sure of the meaning of, but I think forces a component name, which is possibly useful if it is waiting (-Wn) for a specific component to be ready.
This is a guess, though. No guarantees expressed or implied
Replied by andypugh on topic Timing problem
korbendallas78 wrote: EMBED_TAB_COMMAND = loadusr -W gladevcp -x {XID} leds.glade
The manual ( www.linuxcnc.org/docs/html/gui/gladevcp.html ) suggests -Wn gladevcp, ie
Code:
EMBED_TAB_COMMAND= loadusr -Wn gladevcp gladevcp -c gladevcp -x {XID} leds.glade
This waits for a component "gladevcp" and has a -c option that I am not sure of the meaning of, but I think forces a component name, which is possibly useful if it is waiting (-Wn) for a specific component to be ready.
This is a guess, though. No guarantees expressed or implied
Last edit: 10 years 9 months ago by andypugh.
The following user(s) said Thank You: korbendallas78
Please Log in or Create an account to join the conversation.
- korbendallas78
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
10 years 9 months ago #68814
by korbendallas78
Replied by korbendallas78 on topic Timing problem
I tried. Same problem
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
-
Less
More
- Posts: 1931
- Thank you received: 394
10 years 9 months ago #68842
by newbynobi
Replied by newbynobi on topic Timing problem
@korbendallas78
I also noticed that behavior some times, I recomend the followingf, as till now it works under all circumstances perferct.
Move all the relevant hal connections from postgui.hal to hal file named leds.hal. That hal file should be in your config dir.
And load your panel like this one:
That command loads the panel and after loading it it connects the hal pin mentioned in the named hal file.
If you need, you can add your own python handler by adding -u led.py
For an example you may look at sim/gmoccapy/gmoccapy-plasma/gmoccapy-plasma.ini
Norbert
I also noticed that behavior some times, I recomend the followingf, as till now it works under all circumstances perferct.
Move all the relevant hal connections from postgui.hal to hal file named leds.hal. That hal file should be in your config dir.
And load your panel like this one:
Code:
EMBED_TAB_COMMAND = gladevcp -x {XID} -H leds.hal leds.glade
That command loads the panel and after loading it it connects the hal pin mentioned in the named hal file.
If you need, you can add your own python handler by adding -u led.py
For an example you may look at sim/gmoccapy/gmoccapy-plasma/gmoccapy-plasma.ini
Norbert
The following user(s) said Thank You: korbendallas78
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.208 seconds