LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combine 8 seperate bits to have a single 1 byte numeric

Solved!
Go to solution

Hello..

 

Is it possible to concationate binary bits to have a complete 1 byte binary number.

 

Example;

 

1.  I have thease 8 bits -->  0,0,0,0,1,1,1,1  --> then binary should be 00001111

 

1.  I have 4 groups of 2 bits -->  00,00,11,11  --> then binary should be 00001111

 

Is it possible?? 

Please help..

0 Kudos
Message 1 of 4
(4,874 Views)
Solution
Accepted by Nayan

There is Boolean Array To Number function in Boolean pallete.

Message 2 of 4
(4,871 Views)

Hi Nayan,

 

You should have linked to your other thread

 

to convert an array of booleans into an integer number you should use "boolean array to number" function. Easy as it is!

 

All you need to do is to build your boolean array. There are functions like BuildArray

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(4,868 Views)

Thank you PiDi and GerdW.. Smiley Happy

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