LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

looking for a select block

Hello!
I'm looking for a select block but I don't find it.. I want a block with four inputs,an input select, and one output. The output variable catch  the value of the input variable which his position agree with the value of input select.
Ex.: I have input_1=20    input_2=30   input_3=40  input_4=50 and input select is 2. Output value is 30.
 
Exist a block like this? If not exist, which eay you try to build it? Thanks!
 
Thank you
 
Larson
0 Kudos
Message 1 of 2
(3,214 Views)
Hi Larson
 
There is a select block - it is called "case structure" and is located in the structures palette (where the loops are).
You can use this structure to switch between different cases. You can have different types to control them.
 
Here is a simple example of what you want to do.
 
Hope this helps.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 2
(3,211 Views)