
9640A
Instruction Manual
4B-8
Syntax and Style
The following sections describe the syntax of program and response messages.
Syntax of Program Messages
A command or query is called a program message unit. A program message unit consists
of a header followed by one or more parameters, as shown in Figure 4B-5.
<Header>
<Space>
<Parameter>
,
ead104f.eps
Figure 4B-5. Syntax of a Program Message Unit
One or more program message units (commands) may be sent within a simple program
message, see Figure 4B-6.
;
Program Message Unit
ead105f.eps
Figure 4B-6. Syntax of a Terminated Program Message
The
↵
is the pmt (program message terminator) and it must be one of the following
codes:
Note
•
NL is the same as the ASCII LF
•
LF (<line feed> = ASCII 10 decimal )
•
The END message is sent via the EOI-line of the GPIB.
•
The ^ character stands for “at the same time”.
NL^END
This is <new line> code sent concurrently with the END message on the
GPIB.
NL
This is the <new line> code.
<dab>^END
This is the END message sent concurrently with the last data byte <dab>.
Most controller programming languages send these terminators automatically, but allow
changing it. Make sure that the terminator is as above.
Figure 4B-7 is an example of a terminated program message:
Program Message Unit
Terminator
:AM 2.2;STATE ON;:POW 1.0NL^END
ead106f.eps
Figure 4B-7. Example of a Terminated Program Message
Summary of Contents for 9640A Series
Page 8: ......
Page 16: ...9640A Instruction Manual viii...
Page 22: ...9640A Instruction Manual 1 2...
Page 40: ...9640A Instruction Manual 2 2...
Page 108: ...9640A Instruction Manual 4A 2...
Page 138: ...9640A Instruction Manual 4C 2...
Page 164: ...9640A Instruction Manual 4D 2...
Page 168: ...9640A Instruction Manual 4D 6...
Page 170: ...9640A Instruction Manual 4E 2...
Page 174: ...9640A Instruction Manual 4E 6...
Page 176: ...9640A Instruction Manual 4F 2...
Page 184: ...9640A Instruction Manual 4F 10...
Page 186: ...9640A Instruction Manual 4G 2...
Page 190: ...9640A Instruction Manual 4G 6...
Page 192: ...9640A Instruction Manual 5 2...
Page 272: ...9640A Instruction Manual 5 82...
Page 274: ...9640A Instruction Manual 6 2...
Page 284: ...9640A Instruction Manual 7 2...
Page 310: ...9640A Instruction Manual 8 2...
Page 316: ...9640A Instruction Manual 8 8...
Page 320: ...9640A Instruction Manual A 4...