Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial hex display

When reading from a Motorola 8-bit MPU, I set the read buffer to hex display. The hex data can be read in hyperterminal, and a utility called "LookRS232." In the attached VI, I am using serial read VI to communicate with the MPU. Everything works fine, but when reading the buffer in Labview, the hex values are not what I expect to see. My data is xmitted in the format x{data}y{data}z{data}. This should give me x78, x79 and x7A, each followed by some data characters. When streaming hex data using LookRS232, I can see these values, however when using the Visa read buffer, I am seeing things like, x5B, 1D, and other values, but not the correct ones.

Any help is appreciated,
PGH
0 Kudos
Message 1 of 2
(3,094 Views)

Hi PGH,

Since you are not calling the VISA Configure Serial Port, the default setting in Measurement & Automation Explorer (MAX) are used.  Make sure these setting is MAX match your settings in Hyperterminal.  If there is a baud rate mismatch, you should get an error.  Are you getting any errors in your error cluster?  You could also try the Advanced or Basic Serial Read and Write example VIs from the NI Example Finder.  This should allow you to test this communication in LabVIEW while eliminating any coding errors.

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