LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simple question!

Hi,
How do I write Labview codes to check an output string. If the string is "XX", "YY", "ZZ" or "XY" then do this. If the string is "AA", "BB", "CC" then do that. I don't want to use the case statement because I have to duplicate the same action for many cases.
Thanks
  
0 Kudos
Message 1 of 3
(2,454 Views)
Hi;

You do want to use the case structure. What you need is to learn the trick so you don't need to duplicate the same action for many cases. Check the attached VI and see if that is what you are looking for.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(2,445 Views)
Enrique,
Thank you. That is exactly what I'm looking for. I wasn't aware that each case statement can take more than one condition.
Regards
Dan
0 Kudos
Message 3 of 3
(2,417 Views)