G Mode Functions
Chapter 8
GPIB-232CT User Manual
8-6
© National Instruments Corp.
If Methods
X
, or
X
and
B
are chosen, the GPIB-232CT
automatically sends the END message along with
eoschar
when performing GPIB writes of serial data. That is, when
the GPIB-232CT receives
eoschar
over the serial port and
sends it on to the GPIB, it will also assert EOI along with that
byte. When
X
alone is chosen, END is sent with the EOS byte
when the low seven bits of that byte match the low seven bits
of
eoschar
. When
X
and
B
are chosen, a full 8-bit
comparison is used.
If
B
is the only mode chosen, the EARG error is posted.
If
D
is chosen, all EOS modes are disabled.
By default, all EOS modes are disabled.
If you call
eos
without an argument, the GPIB-232CT returns
to you the current
eos
settings.
The assignment made by this function remains in effect until
you call
eos
again, you call
onl
, or you turn the
GPIB-232CT off.
See Also:
Chapter 7, the section entitled
GPIB Read and Write Data
Termination
, and
Operation of the GPIB-232CT as a Serial
Device;
and the
srqen
function in this chapter.
Examples:
1.
WRT$="EOS X,13"+CHR$(13)
'Send EOI with <CR>.
CALL IBWRT(GPIB232%,WRT$)
'Compare 7 bits.
2.
WRT$="eos"+CHR$(13)
'What are the
CALL IBWRT(GPIB232%,WRT$)
'current EOS
'settings?
CALL IBRD(GPIB232%,RESP$)
'RESP$ contains
'X,13<CR><LF>.