Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Termination Character

Solved!
Go to solution

Hi all,

 

I have a serial read problem.  I have 26 byte at buffer, but the read is only reading 25.  I saw that the last (25th) byte was 0A, which is a line feed, so it stopped reading when it read 0A.  However, I set ASRL End In to None before the read operation, so why is it still terminating a read operation at a line feed character?  I confirmed with NI spy that the read operation was terminated due to a termination character.  

 

 

 

See BD for more information.

 

Yik

 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 3
(3,390 Views)
Solution
Accepted by topic author jyang72211

Try setting TermChar En to false as well. I've always set them to either True/TermChar or False/None. Not sure what happens to True/None.

Message 2 of 3
(3,387 Views)

That's exactly what I need.  Thanks!!!

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 3
(3,376 Views)