Timing problem
- korbendallas78
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
20 Jan 2016 12:36 #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.
20 Jan 2016 12:43 #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
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
20 Jan 2016 12:50 #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.
20 Jan 2016 12:56 - 20 Jan 2016 12:56 #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
EMBED_TAB_COMMAND = loadusr -W gladevcp -x {XID} leds.glade
The manual ( www.linuxcnc.org/docs/html/gui/gladevcp.html ) suggests -Wn gladevcp, ie
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: 20 Jan 2016 12:56 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
20 Jan 2016 13:18 #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.
20 Jan 2016 18:55 #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:
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.
- korbendallas78
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
21 Jan 2016 05:18 #68868
by korbendallas78
Replied by korbendallas78 on topic Timing problem
Thank You!
It seems working perfectly.
It seems working perfectly.
Please Log in or Create an account to join the conversation.
21 Jan 2016 22:42 #68903
by newbynobi
Replied by newbynobi on topic Timing problem
You are wellcome!
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds