bkundework
Electrical
- Mar 17, 2005
- 3
I'm trying to read data from an HP EMI Receiver through the GPIB command. The receiver sends 401 data points transferred in binary as two 8-bit bytes per point (16 bits). The data stream is read in as a string.
I have Labview V6.1. Using the "String To Byte Array", it reads only the upper Byte (the first 8 bits). I cannot figure out how to read the lower 8 bits or both bytes together (all 16 bits) to get the proper decimal value for each data point. When I look at the string, it looks like a bunch of ASCII characters.
How can I do this?
How do I convert 16 bit data string to a decimal value?
I have Labview V6.1. Using the "String To Byte Array", it reads only the upper Byte (the first 8 bits). I cannot figure out how to read the lower 8 bits or both bytes together (all 16 bits) to get the proper decimal value for each data point. When I look at the string, it looks like a bunch of ASCII characters.
How can I do this?
How do I convert 16 bit data string to a decimal value?