© National Instruments Corp.
8-1
GPIB-232CT User Manual
Chapter 8
G Mode Functions
This chapter contains descriptions of the G mode functions that you use to
program the GPIB-232CT. These functions are in alphabetical order and
are formatted to provide you with an easily usable reference.
Points to Remember
•
The program examples within the function descriptions are written in
Microsoft BASIC Version 3.0, using the GPIB-PC function calls of
National Instruments.
•
The GPIB-PC function call:
WRT$="SPSET"+CHR$(13)
CALL
IBWRT(GPIB232%,WRT$)
automatically sends to the GPIB-232CT its talk address, and the
programming message
spset
, followed by a carriage return. If you
are not using the National Instruments GPIB-PC software, be sure your
program properly addresses the GPIB-232CT and the serial device
when writing to and reading from them.
•
In the function syntax descriptions, arguments shown in square
brackets (
[]
) are optional. Do not enter the brackets as part of your
argument.
•
Terminate each programming message with a carriage return (<CR>), a
linefeed (<LF>), or a carriage return followed by a linefeed
(<CR><LF>). This is denoted by <CR> in the syntax portions of the
function descriptions and by
CHR$(13)
in the BASIC examples.
•
To send more than one programming message per GPIB write
operation, embed a <CR> or an <LF> in the data string you send. For
example, to send the two programming messages "change serial port
parameters" and "change serial port XON/XOFF protocol," you could
either send two separate strings to the GPIB in two separate GPIB
writes: