MDO3000 Programmer Manual.pdf - 第173页

Commands Listed in Alphabetical Order NOTE. Attempti ng to give two aliases the same name causes an err or . T o give a new alias the name of an existing alias, the existing alias m ust fi rst be deleted. Group Alias Synt…

100%1 / 1158
Commands Listed in Alphabetical Order
Examples
AFG:RAMP:SYMM
ETRY 50.0
sets the AFG ramp symmetry to 50 percent.
AFG:SQUare:DUty
Sets (or queries) the AFG duty cycle, as a percentage. The minimum is 10.0%,
maximum is 90
.0% and increment is 0.10%.
Conditions
MDO3000 series with option MDO3AFG installed and MDO4000C series with
option MDO4AFG installed only.
Group
AFG
Syntax
AFG:SQUare:DUty <NR3>
AFG:SQUare:DUty?
Arguments
Floating point number that represents the AFG duty cycle, as a percentage.
Examples
AFG:SQUARE:DUTY 50.0 sets the AFG duty cycle to 50 percent.
ALIas:CATalog? (Query Only)
Returns a list of the currently defined alias labels, separated by commas. Ifno
aliases are defined, the query returns the string "".
Group
Alias
Syntax
ALIas:CATalog?
Examples
ALIAS:CATALOG? might return the string :ALIAS:CATALOG
"SETUP1","TESTMENU1","DEFAULT"
showing that there are three aliases
named SETUP1, TESTMENU1, and DEFAULT.
ALIas:DEFine
Assigns a sequence of program messages to an alias label. These messages are
then substituted for the alias whenever it is received as a command or query,
provided that ALIas:STATE has been turned on. The query form of this command
returns the definitions of a selected alias.
2-142 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual
Commands Listed in Alphabetical Order
NOTE. Attempti
ng to give two aliases the same name causes an error. To give a
new alias the name of an existing alias, the existing alias must rst be deleted.
Group
Alias
Syntax
ALIas:DEFine <QString>< ,>{<QString>|<Block>}
ALIas:DEFine? <QString>
Related Commands
ALIas[:STATE]
Arguments
The first <QString> is the alias label.
This label cannot be a command name. Labels must start with a letter and can
contain only letters, numbers, and underscores; other characters are not allowed.
The label must be less than or equal to 12 characters.
The second
<QString> or <Block> is a complete sequence of program messages.
The messages can contain only valid commands that must be separated by
semicolons and must follow all rules for concatenating commands. The sequence
must be less than or equal to 256 characters.
Examples
ALIAS:DEFINE "ST1",":RECALL:SETUP 5;:AUTOSET
EXECUTE;:SELECT:CH1 ON"
defines an alias named "ST1" that sets
up the oscilloscope.
ALIAS:DEFINE? "ST1" returns :ALIAS:DEFINE "ST1",#246
:RECALL:SETUP 5;:AUTOSE T EXECUTE;:SELECT:CH1 ON
ALIas:DELEte:ALL (No Query Form)
Deletes all existing aliases.
Group
Alias
Syntax
ALIas:DELEte:ALL
Related Commands
ALIas:DELEte[:NAMe]
Examples
ALIAS:DELETE:ALL deletes all existing aliases.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-143
Commands Listed in Alphabetical Order
ALIas:DELEte
[:NAMe] (No Query Form)
Removesaspeciedalias.
Group
Alias
Syntax
ALIas:DELEte[:NAMe] <QString>
Arguments
<QString> is the name of the alias to remove. Using ALIas:DELEte[:NAM e]
without specifying an alias causes an execution error. <QString> must be an
existing alias.
Examples
ALIAS:DELETE[:NAME] “STARTUP” deletes the alias named STARTUP.
ALIas[:STATE]
Turns aliases on or off. (See page 2-13, Alias Command Group.)
Group
Alias
Syntax
ALIas[:STATE] {<NR1>|O FF|ON}
ALIas[:STATE]?
Arguments
OFF or <NR1> = 0 turns alias expansion off. If a defined alias is sent when
ALIas:STATE is OFF, a command error (102) is generated.
ON or <NR1>0 turns alias expansion on. When a defined alias is received, the
specified command sequence is substituted for the alias and executed.
Examples
ALIAS[:STATE] OFF turns the command alias feature off.
ALIAS[:STATE]? returns 0 when the alias feature is off.
ALLEv? (Query Only)
Prompts the oscilloscope to return all events and their messages (delimited by
commas), and removes the
returned events from the Event Queue. Use the *ESR?
query to enable the events to be returned. This command is similar to repeatedly
sending *EVMsg? queries to the oscilloscope.
2-144 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual