LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

concatenate two 8bits data to create a 16bits datum

Hi everyone,
 
I'm building an PDA application which receives 8bits data from a bluetooth transmitter. Actually, I'm working with 16bits data so I need to concatenate two 8bits data to rebuild a 16bits datum. Does somebody have a start point to help me to do that?
 
Thank you
0 Kudos
Message 1 of 6
(3,126 Views)

Have you just tried the data conversion vi's in the Numerical palette?

 

eric

0 Kudos
Message 2 of 6
(3,125 Views)
No I didn't. But, I receive two different values at two different time. So, if I convert a 8bits datum to a 16bits datum it doesn't resolve my problem to transform two data of 8bits to one datum of 16bits, does it?
0 Kudos
Message 3 of 6
(3,122 Views)
Are you wanting the two 8-bit numbers to be joined together to form a 16-bit number, one is a high byte and the other the low byte?  If so you can use the Split Number and Join Numbers functions found in the Data Manipulation palette (it is in the Advanced palette in LV 7.1).  Join Numbers will join high byte and low byte to form a 16-bit number and Split Number does the reverse.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 6
(3,120 Views)
Just what I was going to suggest!Smiley Happy
 
eric
0 Kudos
Message 5 of 6
(3,114 Views)
"Are you wanting the two 8-bit numbers to be joined together to form a 16-bit number, one is a high byte and the other the low byte?"
 
Yes this is exactly what I want to do! Smiley Happy
 
I'll try, thanks
0 Kudos
Message 6 of 6
(3,088 Views)