pyvcp and gladevcp using same signal halui.axis.x.minus

More
9 years 3 months ago #96374 by nicokid
Hi,
I would like to live together pyvcp and gladevcp (I do not know if it's a good idea).
I have a jog button that does the same thing in both interfaces: x-minus.
So in my postgui HAL file I have inserted these lines:
Code:
net gvcp-jogxminus halui.axis.x.minus <= gladevcp.jog_x_minus net my-jogxminus halui.axis.x.minus <= pyvcp.x-minus
But rightly I get this error:
Pin 'halui.axis.x.minus' was already linked to signal 'gvcp-jogxminus'

I have tried different combinations without success. Is there a way to share the "halui.axis.x.minus" signal?
Any help will be appreciated.

Nicola.

Please Log in to join the conversation.

More
9 years 3 months ago #96386 by cmorley
feed the buttons in a or2 component then to halui

Chris M

Please Log in to join the conversation.

More
9 years 3 months ago #96392 by Todd Zuercher
You use the or2 like this:
Code:
#put this line with the rest of your loadrt lines. loadrt or2 count=1 #put this line with the rest of your addf lines, the order of the addf lines matters. addf or2.0 servo-thread net gvcp-jogxminus <= gladevcp.jog_x_minus => or2.0.in0 net my-jogxminus <= pyvcp.x-minus => or2.0.in1 net jogxminus <= or2.0.out => halui.axis.x.minus

Please Log in to join the conversation.

More
9 years 3 months ago #96401 by nicokid
I had tried or2 but without success. I always have some understanding problem with the HAL pin :blink:
Now your code works perfectly :)
Thank you guys.

Nicola.

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum