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
Содержание 9640A Series
Страница 8: ......
Страница 16: ...9640A Instruction Manual viii...
Страница 22: ...9640A Instruction Manual 1 2...
Страница 40: ...9640A Instruction Manual 2 2...
Страница 108: ...9640A Instruction Manual 4A 2...
Страница 138: ...9640A Instruction Manual 4C 2...
Страница 164: ...9640A Instruction Manual 4D 2...
Страница 168: ...9640A Instruction Manual 4D 6...
Страница 170: ...9640A Instruction Manual 4E 2...
Страница 174: ...9640A Instruction Manual 4E 6...
Страница 176: ...9640A Instruction Manual 4F 2...
Страница 184: ...9640A Instruction Manual 4F 10...
Страница 186: ...9640A Instruction Manual 4G 2...
Страница 190: ...9640A Instruction Manual 4G 6...
Страница 192: ...9640A Instruction Manual 5 2...
Страница 272: ...9640A Instruction Manual 5 82...
Страница 274: ...9640A Instruction Manual 6 2...
Страница 284: ...9640A Instruction Manual 7 2...
Страница 309: ...8 1 Chapter 8 Lists of Replaceable Parts Title Page Introduction 8 3 How to Obtain Parts 8 3 Parts Lists 8 4...
Страница 310: ...9640A Instruction Manual 8 2...
Страница 316: ...9640A Instruction Manual 8 8...
Страница 320: ...9640A Instruction Manual A 4...