LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

receiving printable chars and escape codes on serial port

I am trying to read data transmitted by a device across a serial port.  When I collect the data with PuTTY it contains escape codes and ascii strings.  But when I try to collect the same data with ComRd() or ComRdTerm(), only the escape codes are collected and the ascii strings seem to vanish.  Any idea why?

0 Kudos
Message 1 of 2
(2,119 Views)

The first thing that comes me in mind is a mistake of mine from several years ago: I thought what was coming from serial port as C strings, but because there were several binary zeroes embedded (the terminator for C strings) so I missed all the chars already present in the buffer following the first binary zero.
Looking at the real buffer content in the IDE took few seconds.

Carlo A.
Megaris




0 Kudos
Message 2 of 2
(2,093 Views)