pyvcp and gladevcp using same signal halui.axis.x.minus
25 Jul 2017 09:16 #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:
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 or Create an account to join the conversation.
25 Jul 2017 13:25 #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
The following user(s) said Thank You: nicokid
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
25 Jul 2017 14:19 #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:
#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.
25 Jul 2017 17:08 #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
Now your code works perfectly
Thank you guys.
Nicola.
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.153 seconds