Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read serial data that includes Term Char with ViQuery?

I am using LabWindow/CVI VISA function, ViQuery() to read data from serial port and the data was terminated and discarded as soon as '\n' is read. How do I read data that includes term char by using this ViQuery()?
0 Kudos
Message 1 of 2
(3,536 Views)
Hi,

To disable the termination character you can use the viSetAttribute function. Open the front panel for the function and click on attribute name. Select from the list "Message Based Device Settings... >> Termination Character". You can set this attribute to TRUE or FALSE, to enable or disable the termination character.

Hope this helps.

DiegoF.
National Instruments.
0 Kudos
Message 2 of 2
(3,536 Views)