GladeVCP
www.linuxcnc.org/docs/2.5/html/gui/glade...tml#gladevcp:HAL_LED
As an input widget, LED also supports the hal-pin-changed signal. If you want to get a notification in your code when the LED’s HAL pin was changed, then connect this signal to a handler, for example on_led_pin_changed and provide the handler as follows:
def on_led_pin_changed(self,hal_led,data=None):
print "on_led_pin_changed() - HAL pin value:",hal_led.hal_pin.get()
This will be called at any edge of the signal and also during program start up to report the current value.
Example LEDs: images/leds.png .
Please Log in or Create an account to join the conversation.
i have a glade gremlin and a filechooser. when i open a file with the
filechooser, it shows in the gremlin but not the axis display. wheni
run the file, it runs the file i picked but in the asix display, it shows the
file i didn't pick but follows the file i picked with the filechooser.
don't know it it's suppose to work like this or not.
also....under the led general tap, i select the blink rate and change
it to 500. but later i decide to stop the blinking and i unselect the tick box
for the blink. but it doesn't stop blinking.
Please Log in or Create an account to join the conversation.
Regarding on_led_pin_changed - you _dont_ need this if you want to display strate of HAL pin - it's for programming.
Please, catch me on irc. You may use web interface (webchat.freenode.net/) Channel #emc
Please Log in or Create an account to join the conversation.
emc2 in terminal, it says it can't find module 'time' /home/mill/emc2-dev/rtlib.
with the icon, everything works
Please Log in or Create an account to join the conversation.
i looked at the pins in the HAL configuration. under pins
i have Glade with my three leds and gladevcp with my three
leds. it;s listed twice ? and i have estop, power and run buttons and see
none of em in there. but power and run work. estop doesn't estop
but i does act like it turned the power off. i use my pyvcp estop to
get out of estop and then use the glade estop and the power led
goes off. i can click the glade estop and nothing happens. i click
either of the pyvcp and glade power button and it turns back on.
but should it be listed twice ?
Thanks
kenneth
Please Log in or Create an account to join the conversation.
well, power and run led work correctly but estop is on when i start emc and when i get out
of estop, it goes gray.(green-on/gray-off). i have the same settings for estop,power and run
(except name changes) but estop is the only one giving me trouble.
and under Glade in the 'HAL configuration', estop is true and the other two are false.
would this matter ?
Thanks
kenneth
Please Log in or Create an account to join the conversation.
Here is simple example of gladevcp panel.
I'm posting it separately so it's easier to track all dependencies.
Based on configs/sim/axis.ini
Please Log in or Create an account to join the conversation.
how long will that site be up ? i seen tmp in the url
can i have two(2) postgui_halfiles ?
Please Log in or Create an account to join the conversation.
i found out that if i use Glade.Estop_led and not gladevcp.Estop.led, the led lights.
well, power and run led work correctly but estop is on when i start emc and when i get out
of estop, it goes gray.(green-on/gray-off). i have the same settings for estop,power and run
(except name changes) but estop is the only one giving me trouble.
and under Glade in the 'HAL configuration', estop is true and the other two are false.
would this matter ?
Thanks
kenneth
Please Log in or Create an account to join the conversation.
If you have both glade.* and gladevcp.* pins then you have two panels loaded?
One in tabs (using EMBED_TAB_*) and other as panel (with GLADEVCP = )?
Do you use estop or estop toggle? May you attach your UI file?
Please Log in or Create an account to join the conversation.