LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MT UnPack Bits

Did anyone manage to use the MT UnPack Bits vi successfully? I created this very simple vi (attached to this post) to test it but I don't get any result in the output bit stream. Can anyone help me?

Thank you!

0 Kudos
Message 1 of 2
(2,389 Views)

Hi,

 

I think your problem is to understand how it works.

 

Input integer: Array of numbers that you want to convert to binary.

 

Bits per integer: Amount of binary bits you want to represent of each number of the array.

 

Packed bit order: First the MSB or LSB bit.

 

Integer format: If you want introduce the sign on the binary conversion.

 

Output bit stream: Array of binary number, located as the input integer:

 

Example:

 

Input integer: [ 2 , 3 , 0]

 

Bits per integer: 3

 

Output bit stream: [ 0 , 1 , 0 , 0 , 1 , 1 , 0 , 0 , 0 ]

 

2=010

3=011

0=000

 

Regards.

 

 

0 Kudos
Message 2 of 2
(2,363 Views)