LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I wire a string value to the case selector terminal and depending on that value, execute a selected case?

Solved!
Go to solution

Hi Everyone

 

In the block diagram of the posted VI, thru serial comm, byte #2 is either 00 or 01 (Hex). This byte should dictate which case to execute. If Hex value = 00 executes case #1, If Hex value = 01 executes case #2. If neither, nothing should execute.

 

How can I do this? I am fairly new to LabVIEW any feedback is highly appreciated.

 

Thanks

 

Mahir

0 Kudos
Message 1 of 4
(4,190 Views)
Solution
Accepted by topic author mhaque

easier to just wire in the integer to the case structure rather than convert to string.  

Then just go up to the case selector and type what you want.


Paul
Message 2 of 4
(4,182 Views)

Also note that you can change the radix on the case structure so that the case selector will look like a hex value.

 

Message 3 of 4
(4,171 Views)

sweeeeeeeeeeeeeeeeeeeeeeeeeeeet!

 

Smiley Very Happy

0 Kudos
Message 4 of 4
(4,156 Views)