GladeVCP
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.
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.
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.
i can't link to action.
kenneth
Please Log in or Create an account to join the conversation.
turn power on or an axis is homed....etc
Thanks
kenneth
Please Log in or Create an account to join the conversation.
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.
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.
for example
net vcp-on halui.machine.is-on => vcp.hal_led1
Please Log in or Create an account to join the conversation.
kenneth
Please Log in or Create an account to join the conversation.
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.