LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Integer to an array of byte

Hi,

I want to convert a short non signed integer like 3 to an array of bytes like
11000000 and to show this array in the indicator.

I am affraid it is a really basic question but... I am a new user.

Thank you.

Fred

--
User of http://www.foorum.com/. The best tools for usenet searching.
0 Kudos
Message 1 of 3
(2,841 Views)
Hi,

The program attached below should do the trick. It converts the number to a boolean array which is then converted to 0 and 1.

I hope this helps,
Erik van Dijk
0 Kudos
Message 2 of 3
(2,841 Views)
Go to boolean palette, use "number to boolean array" and the "boolean to 0,1". You'll get an array of 0's and 1's.
Good luck
0 Kudos
Message 3 of 3
(2,841 Views)