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

More
25 Jul 2017 09:16 #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:
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 or Create an account to join the conversation.

More
25 Jul 2017 13:25 #96386 by cmorley
feed the buttons in a or2 component then to halui

Chris M
The following user(s) said Thank You: nicokid

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

More
25 Jul 2017 14:19 #96392 by Todd Zuercher
You use the or2 like this:
#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
The following user(s) said Thank You: nicokid

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

More
25 Jul 2017 17:08 #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 or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum