LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to produce "if-else" type of logic?

For Tektronix oscilloscope (TDS2012), I would like to add features like chosing between main view and delayed (window) view for the horizontal(time) base. Then depending on the user's choice, the programme should be using main scale and main position or delayed scale and delayed position? I am attaching the necessary VI files (including the TKTDS1K2KHorizontal.vi file that is required).

Thanks,

Dhiman
0 Kudos
Message 1 of 2
(2,489 Views)
You use a case structure. If the user's choice is a boolean, wire that to the case structure selector. Put the necessary VIs in the respective cases. There are numerous shipping examples in which a case structure is used and Activity 12 of the LabVIEW tutorial also includes a case structure.
0 Kudos
Message 2 of 2
(2,489 Views)