Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

transfer string data into double float type in serial communication

Hi,
Currently , I am doing some labview programming by using one laser displacement sensor(position data unit:mm), and I could receive the data from the COM port, but they are in the string format. I need to display them in the waveform. I use the block of 'string to unsigned byte array', but the data were transferred into ASCII code. So, how can I use labview to obtain the real data just the same as that the sensor reads??Thx!
 
Smiley Sad
0 Kudos
Message 1 of 2
(2,776 Views)
On your string palette, you have Scan From String. You have additional conversion functions such as Fract/Exp String to Number. I prefer Scan From String but Fract/Exp String to Number can be used on an array.
0 Kudos
Message 2 of 2
(2,767 Views)