11-07-2010 09:53 AM
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;
11-07-2010 10:05 AM
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.
03-16-2012 06:59 AM
This directly answers my similar question. Thank You, DJ