S Mode Functions
Chapter 5
GPIB-232CT User Manual
5-12
© National Instruments Corp.
eos - Change/Disable GPIB EOS Termination
Mode
Type:
Initialization
function
Syntax:
eos
[[R][X][B] eoschar]
<CR>
or
eos
D
<CR>
Purpose:
You
use
eos
at the beginning of your program if you wish to
use an
eos
mode when you transfer data to and from the
GPIB.
eos
tells the GPIB-232CT when to stop reading
information from the GPIB.
eos
also enables the
GPIB-232CT to tell other devices that it is finished writing
information to the GPIB.
eos
defines a specific character,
end-of-string (EOS), to be recognized as a string terminator.
Remarks:
The
arguments
R
,
X
,
B
, and
D
specify GPIB termination
methods. They enable or disable the corresponding
eos
mode. If a particular letter is specified, the corresponding
eos
mode is enabled. If it is not specified, the corresponding
eos
mode is disabled.
eoschar
is a numeric string that represents a single ASCII
character. For example, 10 represents the ASCII linefeed
character.
Table 5-1. Data Transfer Termination Methods
!
!
Description
Letter
!
!
!
REOS
- terminate read when EOS is detected.
R
!
!
!
XEOS
- set EOI with EOS on write functions.
X
!
!
!
BIN
- compare all 8 bits of EOS byte rather
B
than low 7 bits (all read and write functions).
!
!
!
DISABLE
- disable all
eos
modes.
D
!