LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling multiple strings in a case structure

Solved!
Go to solution
Highlighted

Can someone explain how the case structure in the attached screenshot executes? I normally use enums in my state machines and strings occasionally but I've never tried to send multiple commands via a single case. Sorry, I couldn't attach the code because it was just an online tutorial that I'm trying to read and understand. See attached screenshot.

 

Thanks in advance.

0 Kudos
Message 1 of 5
(182 Views)

The outer case matches two different strings for the shown case and the inner case selects one of the two. What's the question, exactly?


LabVIEW Champion Do more with less code and in less time
0 Kudos
Message 2 of 5
(172 Views)

How does the outer case structure handle the two commands? Does the case structure handle either of the commands whenever any of them appears on the case structure input?

0 Kudos
Message 3 of 5
(141 Views)
Solution
Accepted by topic author SolPS

@SolPS wrote:

Does the case structure handle either of the commands whenever any of them appears on the case structure input?


Yes, each case can match many different comma delimited choices. (same for enums and numbers). Did you read the help?


LabVIEW Champion Do more with less code and in less time
0 Kudos
Message 4 of 5
(134 Views)

Thanks Altenbach.

0 Kudos
Message 5 of 5
(123 Views)