© National Instruments Corp.
5-1
GPIB-232CT User Manual
Chapter 5
S Mode Functions
This chapter contains descriptions of S mode functions that you use to
program the GPIB-232CT. These functions are in alphabetical order and
are formatted to provide you an easily usable reference.
Points to Remember
•
The programming examples for each function description are in
Microsoft BASIC Version 3.0.
•
In the syntax portion of the function descriptions, arguments enclosed
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>). The terminator is denoted by a <CR> in the syntax
portions of the function descriptions. In the programming examples,
the BASIC
PRINT #
statement automatically sends a carriage return
at the end of the string, so a carriage return is not placed there
explicitly.
•
To send more than one programming message per
statement,
embed a <CR> (denoted by
CHR$(13)
) or a <LF> (denoted by
CHR$(10)
) in the statement. For example, to send the two
programming messages "send interface clear" (
SIC
) and "send remote
enable" (
SRE
), you could use either of these two sequences:
#1,"sic"
#1,"sre
1"
or
#1,"sic"+CHR$(13)+"sre
1"
•
For all examples, the communications port has been assigned to file
number 1 (
#1
) by the BASIC
OPEN "COM..."
statement.