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
(2,946 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
(2,943 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
(2,932 Views)
You can wire an integer directly to a case statement.
0 Kudos
Message 4 of 8
(2,923 Views)

Can you show a simple block diagram>

0 Kudos
Message 5 of 8
(2,916 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
(2,910 Views)

Here is what I would do

 

Example_VI_BD.png

Tim
GHSP
0 Kudos
Message 7 of 8
(2,900 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
(2,898 Views)