EOSCharCode
Specify EOS character
Description
You can configure EOSCharCode
to an integer
value ranging from 0
to 255
,
or to the equivalent ASCII character. For example, to configure EOSCharCode
to
a carriage return, you specify the value to be CR
or 13
.
EOSCharCode
replaces \n
wherever
it appears in the ASCII command sent to the instrument. Note that %s\n
is
the default format for the fprintf
function.
For many practical applications, you will configure both EOSCharCode
and
the EOSMode
property. EOSMode
specifies
when the EOS character is used. If EOSMode
is write
or read&write
(writing
is enabled), the EOI line is asserted every time the EOSCharCode
value
is written to the instrument. If EOSMode
is read
or read&write
(reading
is enabled), then the read operation might terminate when the EOSCharCode
value
is detected. For GPIB objects, the CompareBits
property
specifies the number of bits that must match the EOS character to
complete a read or write operation.
To see how EOSCharCode
and EOSMode
work
together, refer to the example given in the EOSMode
property
description.
Characteristics
Usage | GPIB, VISA-GPIB, VISA-VXI, VISA-GPIB-VXI, VISA-USB |
Read only | Never |
Data type | ASCII value |
Values
An integer value ranging from 0
to 255
or
the equivalent ASCII character. The default value is LF
,
which corresponds to a line feed.