Chapter 8
G Mode Functions
© National Instruments Corp.
8-9
GPIB-232CT User Manual
spign - Ignore Serial Port Errors
Type:
Serial Port function
Syntax:
spi
gn [bool]
<CR>
Purpose:
You
use
spign
at the beginning of your program if you wish
to change the effect that serial port errors have on the storage
of a character received with a serial error. This function tells
the GPIB-232CT to ignore or not to ignore the occurrence of
serial port errors. By default, the GPIB-232CT ignores serial
port errors.
Remarks:
If the argument
bool
is 0, the GPIB-232CT will not ignore
serial port errors. When
bool
is 0, the GPIB-232CT does not
store characters that contain serial errors. A list of serial port
errors are listed in Appendix B.
The serial port errors include parity, overrun, framing, and
overflow errors.
If the argument
bool
is 1, the GPIB-232CT stores all serial
port errors occur. Also, no serial error code will be reported
by the
stat
function.
Examples:
1.
WRT $,"spign 0"+CHR$(13)
'Do not ignore
CALL IBWRT(GPIB232%,WRT$)
'serial port errors.
2.
WRT $,"spign 1"+CHR$(13)
'Ignore serial port
CALL
IBWRT(GPIB232%,WRT$) 'errors.