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: 

change tank amplitudes when certain conditions are satisfied

I have three conditional variabls and I want to change the tank amplitude on the basis of these variables.

Let a,b and c are three conditional variables

If a>b; tank amplitude is 2

If a=b; tank amplitude is 4

If a<b; tank amplitude is 8

 

Thanks

Best Regards

Muhammad Abul Hasan

0 Kudos
Message 1 of 8
(3,153 Views)
Where are you stuck? Attach what you have written so far. If you are using integers, its a trivial problem.
0 Kudos
Message 2 of 8
(3,150 Views)

If I have two variables only a and b than I can use event structure but for three conditions I dont know what should I use.

0 Kudos
Message 3 of 8
(3,139 Views)
You can wire an integer directly to a case statement.
0 Kudos
Message 4 of 8
(3,130 Views)

Can you show a simple block diagram>

0 Kudos
Message 5 of 8
(3,123 Views)

Take the 'A' variable and wire it directly to the selector of a case statement. Very, very simple action. Then, look up the help for the case statement to see how you can set the values for each case. Hint: the values can be a range.

0 Kudos
Message 6 of 8
(3,117 Views)

Here is what I would do

 

Example_VI_BD.png

Tim
GHSP
0 Kudos
Message 7 of 8
(3,107 Views)

Well, I'm not going to post my solution since I think this is homework. I've mentioned integers to the op a couple of time but got no response. Integers would require nothing but the case statement. In this case, the equal comparison with floats is going to be problematic.

0 Kudos
Message 8 of 8
(3,105 Views)