LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ComRdTerm equivalent in VISA?

I use ComRdTerm in RS232 library a lot. What is similar VISA function?
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 3
(3,235 Views)
Sheetal,

You can set the termination character by setting the VI_ATTR_TERMCHAR attribute.  You must also set the VI_ATTR_TERMCHAR_EN attribute to true in order to enable read termination.  Both attributes are set using the viSetAttribute function.  If you expect the same termination character for the entire session, you can just set the termchar attribute once, otherwise you must make sure it is set appropriately before each viRead call.

Note also that ComRdByte removes both the carriage return and line feed if your termination character is a carriage return or line feed and both are encountered.  I do not believe this is the case for viRead.

Hope this helps.

Mert A.
National Instruments
Message 2 of 3
(3,229 Views)
Thank you. This is what I was looking for.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 3
(3,210 Views)