LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary data from serial port?

I want to be able to read binary data from a serial port using labview. The packets are of known length (in even bytes) but they are not ascii. I am worried that if i read them as ascii first and then try to convert, there will be problems such as with special characters appearing
0 Kudos
Message 1 of 2
(3,433 Views)
If your thinking about the fact that the output of the serial VIs are strings then don't worry. Strings can hold all types of data, it's not the same as ASCII. If the data is binary you can use the unflatten function, type cast or the string to byte array function to convert it to other data types. If you are using VISA make sure it's not set to treat any characters as a termination character.
Message 2 of 2
(3,433 Views)