LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

constant flow rate problem

Solved!
Go to solution

I want a constant flow rate of 3L/min with 2 inputs, and I'm trying to figure out how to get my sliders to auto adjust based off one another.  If one slider is adjusted to .5L/min, I want the other to automatically balance out at 2.5L/min. How do I go about doing this?

0 Kudos
Message 1 of 6
(3,022 Views)

Hi Laplace,

 

a simple calculation like "3 - 0.5" would do the trick. Set the 2nd slider using it's local variable...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,020 Views)

Thats not quite what i'm looking for.  I'll try to explain a little better.  I have 2 sliders ranging from 0-10, how do I make it so that the value at slider A and value at slider B combined = 10.  If slider A is currently at 10, slider B adjusts to 0, if I move slider B to a value of 3, slider A adjusts to a value of 7. They need to balance according to the other sliders value.

0 Kudos
Message 3 of 6
(3,016 Views)
Solution
Accepted by topic author LaplaceT

Hi Laplace,

 

use an event structure to detect value changes of each slider. Adjust one slider according to value change of the other slider...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,012 Views)

Hi Laplace,

 

Gerd is right. Use the attached simple VI.

 

Tyler

Certified LabVIEW Architect
0 Kudos
Message 5 of 6
(3,010 Views)

Ok, got it! Thank you all for your help, i'm new to labview as you can probably tell.

0 Kudos
Message 6 of 6
(3,002 Views)