User`s guide
32 Agilent VISA User’s Guide
3 Programming with VISA
Sample: Reading a VISA Attribute
This code sample reads the state of the
VI_ATTR_TERMCHAR_EN attribute and changes it if it is not
true.
ViBoolean state, newstate;
newstate=VI_TRUE;
viGetAttribute(vi, VI_ATTR_TERMCHAR_EN, &state);
if (state err !=VI_TRUE) viSetAttribute(vi,
VI_ATTR_TERMCHAR_EN, newstate);