Instrument Control Toolbox    
EOSCharCode

Specify the EOS character

Description

You configure EOSCharCode to be the End-Of-String (EOS) character. The value can range from 0 to 255, which represents the ASCII code for the character. For example, if EOSCharCode is 13, then the EOS character is a carriage return.

EOSCharCode replaces \n wherever it appears in the 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 may terminate when the EOSCharCode value is detected. 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
Read only
Never
Data type
Double

Values

EOSCharCode can range from 0 to 255. The default value is 10, which corresponds to a line feed.

See Also

Functions

fprintf

Properties

CompareBits, EOSMode


 EOIMode EOSMode