LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append each bit to the binary number (Not Array Indicator)

Hi All
 
If i have the 8 Number control. Each Control represent each bit.
i.e. 0th control bit="1", 1th control bit="0", other bit = "0"....7th control bit ="1".
How to output the 1 binary number indicator. -->10000001
 
Thanks
 
Best Regards,
Steve
0 Kudos
Message 1 of 3
(2,867 Views)
I had solved it.
 
i use true/false case to multiply each bit interial.
i.e. For 8 th bit. If =0, output to 0, if =1 (i.e not equal to 0), output 10000000
      For 7 th bit. If =0, output to 0, if =1 (i.e not equal to 0), output 1000000
      ...
Final, use "OR" function to build into 1 binary number.
 
Please refer the attached graph.
 
Anyway, have the other fast way to do this result??
 
Thanks
Steve
0 Kudos
Message 2 of 3
(2,863 Views)

Hi Steve SO,

you can also use binary controls and build an array of that. It is the same result without using case structures.

Mike

Download All
0 Kudos
Message 3 of 3
(2,857 Views)