- Posts: 12
- Thank you received: 0
Timing problem
- korbendallas78
- Topic Author
- 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 to join the conversation.
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 to join the conversation.
- korbendallas78
- Topic Author
- 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 to join the conversation.
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
Please Log in to join the conversation.
- korbendallas78
- Topic Author
- 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 to join the conversation.
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
Please Log in to join the conversation.
- korbendallas78
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
10 years 9 months ago #68868
by korbendallas78
Replied by korbendallas78 on topic Timing problem
Thank You!
It seems working perfectly.
It seems working perfectly.
Please Log in to join the conversation.
Time to create page: 0.389 seconds
