GladeVCP

More
02 Sep 2011 12:28 #12906 by andypugh
Replied by andypugh on topic Re:GladeVCP
To put what psha just said in different words:
PyVCP pins can only display or set the values of HAL pins. So, a PyVCP LED will light up if the value of the HAL pin that it is connected to in the HAL file is high.

Similarly, when you operate a PyVCP control, it changes the value of its corresponding output HAL pin.

GladeVCP can do this, just the same as PyVCP. However GladeVCP also supports Actions. An action would be something like calling an executable Python file, for example. So, you could have a GladeVCP button that runs a script file, but without having to set a HAL pin connected to an MDI_COMMAND pin which is in turn linked to a custom M-code which contains the file. The button can call the file _directly_.

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

More
06 Sep 2011 10:08 #13000 by piasdom
Replied by piasdom on topic Re:GladeVCP
so the leds in glade are not used ? i don't need them to
be connected to an action, just light up when 'say' an axis
is moving or homed''
as i have in pyvcp.
Thanks

kenneth

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

More
07 Sep 2011 11:18 #13017 by psha
Replied by psha on topic Re:GladeVCP
Why not used? leds may be used just like in pyvcp - connected to hal pins
gladevcp may be used as replacement to pyvcp - nearly same widget set with same behavior.

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

More
07 Sep 2011 11:21 #13018 by piasdom
Replied by piasdom on topic Re:GladeVCP
i know, that's what i thought. but from what i understand, they're saying
i can't link to action.


kenneth

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

More
07 Sep 2011 11:23 #13019 by piasdom
Replied by piasdom on topic Re:GladeVCP
didn't see it as you psha, i just want to have a led light up when i
turn power on or an axis is homed....etc

Thanks
kenneth

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

More
07 Sep 2011 11:50 #13021 by andypugh
Replied by andypugh on topic Re:GladeVCP
piasdom wrote:

i know, that's what i thought. but from what i understand, they're saying
i can't link to action.


I think you are confusing "actions" with "pin values"

"Actions" are bits of code that get run when you operate a control. GladeVCP has that, PyVCP doesn't.

However, an LED is just an indicator, you can't interact with it with the mouse, so there is nothing to tell it to run an action script.

However,just like a PvVCP LED, a GladeVCP LED can be linked in HAL to a HAL pin, and it will change colour when the value of the HAL pin changes. (Which I am fairly sure is what you want)

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

More
07 Sep 2011 11:55 #13022 by piasdom
Replied by piasdom on topic Re:GladeVCP
exactly what i want. just can't find the place to link the led to 'anything'
i have the leds, they show in axis. looked all over the setting to find
where to link.read the Internet to see if i could figure it out. :(
but i think i need a script to get them linked ?

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

More
07 Sep 2011 12:18 #13024 by psha
Replied by psha on topic Re:GladeVCP
Like in pyvcp you need .hal script to connect your pins.
for example

net vcp-on halui.machine.is-on => vcp.hal_led1

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

More
07 Sep 2011 12:28 #13025 by piasdom
Replied by piasdom on topic Re:GladeVCP
THANKS ..... never thought of that :)


kenneth

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

More
07 Sep 2011 12:33 #13026 by piasdom
Replied by piasdom on topic Re:GladeVCP

net vcp-on halui.machine.is-on => vcp.hal_led1


you have vcp.hal_led1
i used the ui extension .... glade.ui
do i have to save my glade file as .vcp?

Thanks
kenneth

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

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