ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two-way math

Solved!
Go to solution

This may be a silly question...but is it possible to wire two controls so that they affect the other?

 

Specifically:

I have control A and B and want them to sum to 10. Changing control A will affect the display of B in real time, and vice versa.

0 Kudos
Message 1 of 3
(3,011 Views)
Solution
Accepted by topic author stwlee

Use an event structure to key in on the value change of A.  In it, you do the math and update B with a local variable.  Do the same thing with the value change of B to update A.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,995 Views)

Thanks. I had to fiddle a bit with the location of the inputs and whatnot, but it seems to work without issue!

0 Kudos
Message 3 of 3
(2,975 Views)