- Posts: 52
- Thank you received: 0
pyvcp and gladevcp using same signal halui.axis.x.minus
9 years 3 months ago #96374
by nicokid
pyvcp and gladevcp using same signal halui.axis.x.minus was created 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:
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.
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
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.
9 years 3 months ago #96386
by cmorley
Replied by cmorley on topic pyvcp and gladevcp using same signal halui.axis.x.minus
feed the buttons in a or2 component then to halui
Chris M
Chris M
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
9 years 3 months ago #96392
by Todd Zuercher
Replied by Todd Zuercher on topic pyvcp and gladevcp using same signal halui.axis.x.minus
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.
9 years 3 months ago #96401
by nicokid
Replied by nicokid on topic pyvcp and gladevcp using same signal halui.axis.x.minus
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.
Now your code works perfectly
Thank you guys.
Nicola.
Please Log in to join the conversation.
Time to create page: 0.098 seconds
