A BASIC example:
100 OUTPUT719;
“programming codes”
The many programming codes for the swept CW generator are listed
in the “SCPI Command Summary” in Chapter 2.
Related statements used by some computers:
CONTROL
CONVERT
IMAGE
IOBUFFER
TRANSFER
Enter
Enter is the complement of OUTPUT, and is used to transfer data
from the addressed instrument to the controller. The syntax is:
devicedevice
selectorselector
A
t
I
A
-
line
number
t
ENTER is always used in conjunction with OUTPUT, such as:
100
OUTPUT 719;
”
. . . programming codes . . .
‘I
110
ENTER719;
‘I
. . . response
data...
'I
ENTER statements are commonly formatted, which requires the
secondary command USING and the appropriate image items. The
most-used image items involve end-of-line (EOL) suppression, binary
inputs, and literal inputs. For example:
100 ENTER719USING
"#,B";
A, B, C
suppresses the EOL sequence
(#),
and indicates that variables A, B,
and C are to be filled with binary (B) data. As another example,
100 ENTER719 USING
"t,
123A";
A$
suppresses EOL, and indicates that string variable A$ is to be filled
with 123 bytes of literal data (123A).
Getting Started Programming
l-6
1