![Agilent Technologies 86120C Скачать руководство пользователя страница 103](http://html.mh-extra.com/html/agilent-technologies/86120c/86120c_user-manual_2867947103.webp)
3-25
Programming
Reviewing SCPI Syntax Rules
Combine commands from different subsystems
You can send commands and program queries from different sub-
systems on the same line. Simp ly p recede the new subsystem by a
semicolon followed by a colon. In the following example, the colon and
semicolon p air before DISP allows you to send a command from
another subsystem.
OUTPUT 720;”:CALC2:PEXC 12;:DISP:WIND:GRAP:STAT OFF”
Sending common commands
If a subsystem has been selected and a common command is received
by the instrument, the instrument remains in the selected subsystem.
For examp le, if the p rogram message
”DISPLAY:MARK:MAX:LEFT;*CLS;DISP:MARK:MAX:RIGH”
is received by the instrument, the Disp lay subsystem remains selected.
If some other type of command is received within a program message,
you must reenter the original subsystem after the command.
Adding parameters to a command
Many commands have p arameters that sp ecify an op tion. Use a sp ace
character to separate the parameter from the command as shown in
the following line:
OUTPUT 720;”:INIT:CONT ON”
Sep arate multip le p arameters with a comma (,). Sp aces can be added
around the commas to imp rove readability.
OUTPUT 720;”:MEAS:SCAL:POW:FREQ? 1300, MAX”
White space
White sp ace is defined to be one or more characters from the ASCII
set of 0 through 32 decimal, excluding 10 (NL). White sp ace is usually
optional, and can be used to increase the readability of a program.
Numbers
All numbers are expected to be strings of ASCII characters. Thus,
when sending the number 9, you would send a byte rep resenting the
ASCII code for the character “9” (which is 57). A three- digit number
like 102 would take up three bytes (ASCII codes 49, 48, and 50). This
Содержание 86120C
Страница 12: ......
Страница 26: ...1 14 Getting Started Returning the Instrument for Service ...
Страница 27: ...1 15 Getting Started Returning the Instrument for Service ...
Страница 28: ......
Страница 96: ...3 18 Programming Monitoring the Instrument ...
Страница 128: ...3 50 Programming Lists of Commands ...
Страница 158: ...4 30 Programming Commands CALCulate1 Subsystem Query Response For normal update 15 047 For fast update 7 525 ...
Страница 236: ...4 108 Programming Commands UNIT Subsystem ...
Страница 248: ......
Страница 262: ...6 14 Specifications and Regulatory Information Declaration of Conformity Declaration of Conformity ...
Страница 264: ...6 16 Specifications and Regulatory Information Product Overview ...
Страница 269: ...7 5 Reference Menu Maps Appl s Menu ...
Страница 271: ...7 7 Reference Menu Maps Display List by WL Menu Delta On Menu ...
Страница 273: ...7 9 Reference Menu Maps System Print Menu ...
Страница 274: ...7 10 Reference Menu Maps System Setup Menu ...
Страница 284: ......
Страница 292: ......
Страница 293: ......