
1-24
Introduction
Command Syntax
.
White Space
White space is defined to be one or more characters from the ASCII set of 0 through 32 deci-
mal, excluding 10 (NL). White space is usually optional, and can be used to increase the read-
ability of a program.
Combining
Commands
You can combine commands from the same subsystem provided that they are both on the
same level in the subsystem’s hierarchy. Simply separate the commands with a semi-colon (;).
If you have selected a subsystem, and a common command is received by the instrument, the
instrument remains in the selected subsystem. For example, the following commands turn
averaging on, then clears the status information without leaving the selected subsystem.
":ACQUIRE:AVERAGE ON;*CLS;COUNT 1024"
You can send commands and program queries from different subsystems on the
same line. Simply precede the new subsystem by a semicolon followed by a colon.
Multiple commands may be any combination of compound and simple commands. For exam-
ple:
:CHANNEL1:RANGE 0.4;:TIMEBASE:RANGE 1
Adding
parameters to a
command
Many commands have parameters that specify an option. Use a space character to separate
the parameter from the command as shown in the following line:
OUTPUT 720;”:INIT:CONT ON”
Separate multiple parameters with a comma (,). Spaces can be added around the commas to
improve readability.
OUTPUT 720;”:MEAS:SCAL:POW:FREQ? 1300, MAX”
String Arguments
Strings contain groups of alphanumeric characters which are treated as a unit of data by the
instrument. You may delimit embedded strings with either single (') or double (") quotation
marks. These strings are case-sensitive, and spaces act as legal characters just like any other
character. For example, this command writes the line string argument to the instrument’s
advisory line:
:SYSTEM:DSP ""This is a message.""
Table 1-6. Long and Short Command Forms
Long Form
Short Form
How the Rule is Applied
RANGE
RANG
Short form is the first four characters of the keyword.
PATTERN
PATT
Short form is the first four characters of the keyword.
DISK
DISK
Short form is the same as the long form.
DELAY
DEL
Fourth character is a vowel, short form is the first three characters.
Содержание 86100A
Страница 18: ...1 14 Introduction Status Reporting Figure 1 4 Status Reporting Data Structures...
Страница 19: ...1 15 Introduction Status Reporting Status Reporting Data Structures continued...
Страница 94: ...2 40 Sample Programs BASIC Programming Examples...
Страница 124: ...4 16 Root Level Commands VIEW...
Страница 125: ...5 DATE 5 2 DSP 5 2 ERRor 5 3 HEADer 5 4 LONGform 5 5 MODE 5 6 SETup 5 7 TIME 5 7 System Commands...
Страница 132: ...5 8 System Commands TIME...
Страница 140: ...6 8 Acquire Commands SWAVeform RESet...
Страница 152: ...7 12 Calibration Commands STATus...
Страница 192: ...11 12 Display Commands SSAVer...
Страница 202: ...12 10 Function Commands VERTical RANGe...
Страница 203: ...13 AREA 13 2 DPRinter 13 2 FACTors 13 3 IMAGe 13 3 PRINters 13 4 Hardcopy Commands...
Страница 316: ...21 12 TDR TDT Commands Rev A 05 00 and Below STIMulus...
Страница 332: ......
Страница 353: ...26 DISPlay 26 2 LOAD 26 2 SAVE 26 3 XOFFset 26 3 XRANge 26 3 YOFFset 26 3 YRANge 26 4 Waveform Memory Commands...