GladeVCP

More
09 Sep 2011 12:01 - 09 Sep 2011 12:04 #13064 by piasdom
Replied by piasdom on topic Re:GladeVCP
where do i put 'def' ? is this another file ? do we even use the xml file ?

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 .
Last edit: 09 Sep 2011 12:04 by piasdom.

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

More
09 Sep 2011 12:09 - 09 Sep 2011 12:26 #13065 by piasdom
Replied by piasdom on topic Re:GladeVCP
and just an aside;
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.
Last edit: 09 Sep 2011 12:26 by piasdom.

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

More
09 Sep 2011 12:13 #13066 by psha
Replied by psha on topic Re:GladeVCP
It's supposed like this - Axis is not able to handle file change that's done outside of it's code.

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.

More
09 Sep 2011 16:17 #13067 by piasdom
Replied by piasdom on topic Re:GladeVCP
well, i think i have the my ini straight. but i can start emc with my icon. if i try to start
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.

More
09 Sep 2011 17:31 #13068 by piasdom
Replied by piasdom on topic Re:GladeVCP
i have emc opening but.....
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.

More
09 Sep 2011 17:56 #13069 by piasdom
Replied by piasdom on topic Re:GladeVCP
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.

More
09 Sep 2011 19:55 #13077 by psha
Replied by psha on topic Re:GladeVCP
psha.org.ru/tmp/gladevcp-panel/
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.

More
09 Sep 2011 23:03 - 09 Sep 2011 23:05 #13079 by piasdom
Replied by piasdom on topic Re:GladeVCP
Thanks, i appreciate what your doing !
how long will that site be up ? i seen tmp in the url

can i have two(2) postgui_halfiles ?
Last edit: 09 Sep 2011 23:05 by piasdom.

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

More
10 Sep 2011 01:24 #13081 by piasdom
Replied by piasdom on topic Re:GladeVCP
piasdom wrote:

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.

More
10 Sep 2011 05:01 #13082 by psha
Replied by psha on topic Re:GladeVCP
I'll keep it there for a while until proper example enters emc code repository.
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.

Moderators: mhaberlerHansU
Time to create page: 0.173 seconds
Powered by Kunena Forum