ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Structure CASE: Can I use a word of bit to choose a particular case?

Solved!
Go to solution

I know that I can use "CASE STRUCTURE" in which I can set 2 different situation: TRUE AND FALSE. I know that I can also add other case, but... how can I change boolean value. I know that I can use also integer numbers, but... it's possible to use boolean words? For example save in an array 3 bolean value and if:

 

CASE 1: 000

CASE 2: 001

CASE 3: 010

...

 

ecc. ecc.  It's possible? Can you show with a VI (I have LV8)?

Message Edited by Michelle1892773 on 02-22-2010 02:06 PM
0 Kudos
Message 1 of 5
(3,160 Views)

Hi there,

 

Why not use Boolean array to number?

 

 Capture.JPG

Hope it helps, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 5
(3,157 Views)
VERY GOOD!!! It's automatic if I connect a word of integer that case structure change TRUE AND FALSE in numbers?
0 Kudos
Message 3 of 5
(3,150 Views)

Yes.

 

It sounds like you are very new to LabVIEW.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
0 Kudos
Message 4 of 5
(3,144 Views)
Solution
Accepted by topic author Michelle1892773

Yes, the naming of the cases is based on the data-type of the selector. For more info see this page at the LabVIEW wiki.

 

If you use a numeric, it's even possible to show the value as a series of bits:

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 5
(3,140 Views)