© National Instruments Corp.
4-1
GPIB-232CT User Manual
Chapter 4
Programming in S Mode
This chapter describes how to program the GPIB-232CT in S mode using
programming messages and data strings. It describes programming
messages, their format, and how they are processed, along with the
functions and function arguments that make up the programming messages.
Programming Messages
You program the GPIB-232CT by sending it programming messages
(which are ASCII strings) and data strings by way of its serial port.
Programming Message Format
A programming message consists of a function name, one or more
arguments (optional), followed by a carriage return (<CR>), a linefeed
(<LF>), or a carriage return followed by a linefeed (<CR><LF>).
You can enter programming messages in any combination of uppercase and
lowercase letters.
Example of a Programming Message
The following line of BASIC code:
PRINT #1,"clr 3,4"
contains the function name
clr
and the arguments
3
and
4
. This
programming message tells the GPIB-232CT to clear the devices at GPIB
addresses 3 and 4.
PRINT #1
is the BASIC command to send characters
to the serial port after the serial port has been opened with the
"OPEN
COM..."
statement. In this example, BASIC automatically sends a <CR>,
so it is not necessary to include it here.