LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read binary data from visa

Hello,

 

I'm trying to read binary data from my serial interface.

The data comes from a controller that measures temperature.

 

0°C equals to 00000000 (binary)

1°C equals to 00000001

2°C equals to 00000010

.....

100°C equals to 1100100

....

 

When I try to read the data with VISA it tries to transform the data to ascii codes.

How can I read the temperature data and connect to a 'thermometer' for example.

 

I already tried 'hex string to number' but this only works when the hex string is representing numbers not

ascii characters;

 

 

 

0 Kudos
Message 1 of 3
(2,659 Views)

First, VISA does not 'transform the data to ascii codes'. You have not set the string indicator correctly. Just right click on it and select 'Hex Display'. To convert to a numeric, use the Typecast function to convert to a U8.

Message 2 of 3
(2,655 Views)

This directly answers my similar question.  Thank You,  DJ

0 Kudos
Message 3 of 3
(2,506 Views)