LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean cluster

Hello to all...
 
I have a boolean cluster of 64 indicators.
 
How can i input a Hex value to turn on only a few?
 
 
I know how to do this with only 8 indicators, which symbolizes a byte. But what about the whole binary signification?
 
 
 
0 Kudos
Message 1 of 8
(4,307 Views)
How do you want to map the numeric value to the booleans? An I32 has only 32 bits, so one bit per boolean will only work for half of your indicators. You indicated that you want to "turn on a few." The attached modification shows how to do half at one bit per boolean.

Lynn
Message 2 of 8
(4,295 Views)

Convert the boolean indicator to a boolean array grab in a loop index groups of 4 'bits' at a time (could resize to [size/4]x4 array where size is number of bits not limited to 64) and convert this 4 bit structure to values 0 through F concatinate this and you will have a string value of any size such structure.  If you want it to be converted to a native numeric structure you will be limited to I64, I32, I16 or I8.

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 8
(4,283 Views)
LV8 has I64 and U64 datatypes.  U64 can handle all 64 lights.
Message 4 of 8
(4,282 Views)

What if i want to turn on one indicator at a time.

 

For example:  numeric 1 = turns on led 0

numeric 64 = turns on led 63

 

 

Thanks N Advance

0 Kudos
Message 5 of 8
(4,274 Views)
Set up a boolean array 64 units long and use the numeric input to reference the index and change the value to true. 
Message 6 of 8
(4,265 Views)
You can do it using a property node as well see picture.
 

Message Edited by AndrewAlford on 02-03-2006 01:55 PM

Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
Message 7 of 8
(4,260 Views)
Thank you very much....
 
I see that controls and property nodes apply to everything...
0 Kudos
Message 8 of 8
(4,244 Views)