Chapter 8
G Mode Functions
© National Instruments Corp.
8-11
GPIB-232CT User Manual
Examples:
1.
REM Set up the serial port of GPIB-232CT to keep
REM its current baud rate, current parity, and
REM to use 7 data bits and 2 stop bits.
WRT$="spset 7 2"+CHR$(13)
CALL IBWRT(GPIB232%,WRT$)
2.
REM What are the current GPIB-232 serial port
REM
settings?
WRT$="SPSET"+CHR$(13)
CALL IBWRT(GPIB232%,WRT$)
REM RESP$ will contain 19200,E,7,2<CR><LF>
REM (19200 baud, even parity, 7 data bits,
REM 2 stop bits).
CALL
IBRD(GPIB232%,RESP$)
3.
REM Set the GPIB-232CT serial port to 1200 baud,
REM no parity, 8 data bits, and 1 stop bit.
WRT$="spset 1200 n 8 1"+CHR$(13)
CALL IBWRT(GPIB232%,WRT$)