/

Tektronix

/

Tektronix AFG31022

SCPI COMMAND REFERENCE

Tektronix AFG31022

Tektronix AFG31022

The Tektronix AFG31022 is Tektronix's arbitrary function generator in the AFG31000 Series family. Its SCPI remote-control interface exposes 249 commands across 26 subsystems - 160 settable and 89 queries - and every command is documented here with its parameters, accepted values, return format, and a copy-paste PyVISA example for automating test and measurement.

249

Commands

160

Settable

89

Queries

26

Subsystems

SCPI

Verified

2026-07-16

All commands

Sets or returns the signal transmission delay in cable.

NameTypeValuesDescription
delayreal-Transmission delay value, entered as a numeric value with optional units of s, ms, μs, or ns.
returns - Delay
INSTaview1:MEASUrement:DELay 2e-9

Returns the minimum level of output signal in DUT.

real - The minimum level of output signal in DUT.
INSTaview1:MEASUrement:MINimum?
Get the CH1 InstaView waveform min level.

Sets or returns the InstaView state for channel 1 or 2. ON or a nonzero value enables InstaView; OFF or zero disables it.

NameTypeValuesDescription
stateenumON | OFFSets the InstaView function state.
INSTaview:STATe ON

Sets or returns the InstaView state for the selected channel. ON or a nonzero numeric value enables InstaView; OFF or 0 disables it.

integer - Returns the InstaView state as an NR1 value.
INSTaview:STATe ON

:ABORtset / query

Disconnects this PI Interface.

ABORt

Copies setup parameters for one channel to another channel. It is not supported on single-channel models.

NameTypeValuesDescription
source channelenumCH1 | CH2Channel whose setup parameters are copied.
destination channelenumCH1 | CH2Channel that receives the copied setup parameters.
AFGControl:CSCopy CH1,CH2

*CAL?query

Performs an internal calibration and returns 0 if the calibration completed without errors, or a nonzero calibration error code if an error was detected.

integer - 0 indicates that the internal calibration completed without errors; nonzero indicates that the AFG detected an error.
*CAL?
*CLSset / query

Clears all of the event registers and queues used in the AFG status and event reporting system.

*CLS
*ESEset / query

Sets or queries the bits in the Event Status Enable Register (ESER) used in the status and events reporting system of the arbitrary/function generator. The query returns the contents of the ESER.

NameTypeValuesDescription
bit_valueinteger0 - 255Binary value used to set the ESER bits according to the number entered.
integer - Contents of the ESER.
*ESE 177
*ESE?
*ESR?query

Returns the contents of the Standard Event Status Register (SESR) as a decimal integer. Reading the SESR also clears it.

integer - Indicates the contents of the SESR as a decimal integer.
*ESR?
*IDN?query

Returns identification information for the AFG.

string - Returns <Manufacturer>,<Model>,<Serial Number>,<Firmware Level>.
*IDN?
*OPCset / query

Generates the operation complete message by setting bit 0 in the Standard Event Status Register (SESR) when all pending commands that generate an OPC message are complete. The query places the ASCII character 1 into the output queue when all such operations are complete.

integer - Returns 1 to indicate that all pending operations are complete.
*OPC?
Return 1 to indicate that all pending OPC operations are finished.
*OPC?query

Places the ASCII character 1 into the output queue when all pending operations that generate an OPC message are complete. It reports operation completion by indicating that all such pending operations are finished.

integer - Returns 1 when all pending operations are complete.
*OPC?
*OPT?query

Returns a list of the options installed in the AFG. It is a query-only command and may return an empty string if no option is installed.

string - A comma-separated list of installed options, or an empty string if no option is installed.
*OPT?
*PSCset / query

Sets and queries the power-on status clear flag that controls automatic power-on execution of SRER and ESER. When true, SRER and ESER are set to 0 at power-on; when false, the current SRER and ESER values are preserved in nonvolatile memory and restored at power-on.

NameTypeValuesDescription
NR1integer0Sets the power-on status clear flag. 0 disables power-on clear; any nonzero value enables it.
integer - Returns the current power-on status clear flag value.
*PSC 0
*PSC?query

Sets and queries the power-on status clear flag that controls automatic power-on execution of SRER and ESER. When true, SRER and ESER are set to 0 at power-on; when false, their current values are preserved in nonvolatile memory and restored at power-on.

integer - Returns the current power-on status clear flag value as an NR1 integer.
*SREset / query

Sets and queries the bits in the Service Request Enable Register (SRER). The setter writes the SRER bit value, and the query returns the current bit value.

NameTypeValuesDescription
bit_valueinteger0 - 255Value used to set the binary bits of the SRER.
integer - Returns the current SRER bit value.
*SRE 48
*SRE?
*STB?query

Returns the contents of the Status Byte Register (SBR) using the Master Summary Status (MSS) bit.

integer - The value of the Status Byte Register (SBR).
*TRGset / query

Generates a trigger event.

*TRG
*TST?query

Performs a self-test and returns the result. A return value of 0 indicates the self-test completed without errors; nonzero indicates an error was detected.

integer - <NR1> where 0 indicates the self-test completed without errors and nonzero indicates the AFG detected an error.
*TST?
*WAIset / query

Prevents the instrument from executing further commands or queries until all pending commands that generate an OPC message are complete.

*WAI
*RCLset / query

Recalls a previously saved instrument setup. The example shows using `*RCL 1` to recall settings from Setup1.

NameTypeValuesDescription
setupinteger1 - 4Setup number to recall.
*RCL 1
*RSTset / query

Resets the instrument to its default state. The page shows it being used at device initialization in a programming example.

Tvc1.WriteString ("*RST")
*SAVset / query

Saves the current instrument settings into a setup register. The example shows saving settings with a numeric storage location.

NameTypeValuesDescription
setup registerinteger1 - 1Setup location to save the current settings.
*SAV 1

Performs an internal calibration. The query form performs the calibration and returns 0 for pass or a nonzero calibration error code.

integer - Returns 0 if the internal calibration completed without errors; nonzero indicates the AFG detected an error.
CALibration
CALibration?

Performs a self-test. The query form returns the test result after the self-test completes.

integer - 0 indicates that the self-test completed without errors; nonzero indicates that the instrument detected an error.
DIAGnostic
DIAGnostic?

Sets or queries the brightness of the LCD display. For the setter, the brightness can be specified numerically or forced to the minimum or maximum level.

NameTypeValuesDescription
brightnessreal0.00 - 1.00Display brightness level; larger values increase screen brightness.
qualifieroptenumMINimum | MAXimumSets the display to the lowest or highest brightness level.
real - Returns the current display brightness as an NR2 value.
DISPlay:BRIGhtness MAX

Sets the screen saver state to ON immediately, regardless of the current DISPlay:SAVer[:STATe]? setting. It enables the screen saver without waiting five minutes.

DISPlay:SAVer:IMMediate

Sets or queries the LCD screen saver setting. When enabled, the screen saver starts automatically if no front-panel operations are applied for five minutes.

NameTypeValuesDescription
stateoptenumON | OFF | <NR1>Enables or disables the screen saver function; ON or nonzero enables, OFF or zero disables.
integer - Returns the current screen saver setting as <NR1>.
DISPlay:SAVer:STATe OFF

Displays a text message on the instrument screen. The query form returns the text string currently displayed on the screen; displayable characters are ASCII 32 through 126, and the instrument can display approximately 64 characters.

NameTypeValuesDescription
stringstring-Text message to display on the instrument screen.
string - The text string currently displayed on the instrument screen.
DISPlay:TEXT?

Copies a screen image and saves the image file to the USB flash drive. The image is saved in a folder named TEK on the USB flash drive.

HCOPy:SDUMp:IMMediate

Returns the instrument HostID unique identifier.

string - The instrument HostID unique identifier.
LICense:HID?
:LICense:INSTallset / query

Installs a license on the instrument from block data. Restarting the instrument may be necessary to activate the licensed capabilities.

NameTypeValuesDescription
<block_data>block-The license in block data format.
LICense:INSTall <block_data>
Install license file to unit.

Returns or uninstalls a specified license. The exit keyfile generated by the uninstall is returned as block data.

NameTypeValuesDescription
transaction ID or nomenclaturestring-Transaction ID or license nomenclature used to identify the license to return or uninstall.
block - The exit keyfile.
LICense:UNINstall?

Returns all license-related events and their messages as a comma-separated string.

string - All events and their messages, delimited by commas.
LICense:ERRor?
-3000, license error, 125, signature verification failed.

Returns the active license feature names as a comma-separated list of strings.

string - Active license feature names, returned as a comma-separated list of strings.
LICense:LIST?

Returns the local system date and time as known by the licensing system on the instrument. The value is returned in ISO 8601-compliant format including the time zone offset.

string - Local system date and time in ISO 8601 format, including time zone offset (YYYY-MM-DDTHH24:MM:SS+HH:MM).
LICense:GMT?
Might return 2016-05-23T18:46:34-08:00.

Returns the manufacturer, model, serial number, and firmware revision of the active host.

string - Returns the manufacturer, model, serial number, and firmware revision in a comma-separated list.
LICense:IDN?
Might return TEKTRONIX, ABC1234, B010100, FV:1.2.3

Returns the count of active AFG31000 Series licenses.

string - Indicates the number of active instrument licenses.
LICense:COUNT?

Queries license details for a specific item in the instrument strongbox. The item number selects the order of the license item, which can change as licenses are installed, uninstalled, or expire.

NameTypeValuesDescription
item numberinteger-Specifies the order number of the item in the strongbox.
string - Returns a comma-separated list containing the license nomenclature, type, expiration date, transaction ID, APPID list, and description.
LICense:ITEM? 3

Validates whether the instrument state can realize licensed features and whether the feature is active. A False result can indicate missing software, dependent licenses, or hardware problems.

string - The validity response, either True or False.
LICense:VALidate?

Deletes the contents of a specified setup memory location. If the specified setup memory cannot be overwritten or deleted, the command returns an error.

NameTypeValuesDescription
locationinteger0 - 4Specifies the setup memory location to delete.
MEMory:STATe:DELete 1

Sets or queries whether to lock a specified setup memory. Locking prevents overwriting or deleting the setup file; location 0 cannot be used.

NameTypeValuesDescription
locationinteger1 - 4Specifies the setup memory location to lock or query.
stateenumON | OFF | <NR1>Locks or unlocks the specified setup memory location.
<NR1> - Returns the lock state of the specified setup memory location.
MEMory:STATe:LOCK 1,ON

Sets or queries whether to lock a specified setup memory location. If locked, the setup file cannot be overwritten or deleted; location 0 cannot be used.

NameTypeValuesDescription
locationinteger1 - 4Specifies the setup memory to lock or query.
stateenumON | OFF | <NR1>Locks or unlocks the specified setup memory location, or uses the numeric value to indicate the same.
enum - Returns the lock state of the specified setup memory location as a numeric value.
MEMory:STATe:LOCK 1,ON

Sets or queries whether automatic recall of the last setup memory is enabled when the instrument is powered on. If OFF is selected, the default setups are recalled instead.

NameTypeValuesDescription
stateenumON | OFFEnables or disables automatic recall of the last setup memory on power-up.
numeric - Returns the current automatic recall setting as <NR1> (0 for OFF, nonzero for ON).
MEMory:STATe:RECall:AUTo ON

Enables or disables automatic recall of the last setup memory when the instrument is powered on. If OFF, the default setups are recalled at power-up.

NR1 - Returns the current automatic recall setting as an NR1 value, where 0 means OFF and nonzero means ON.
MEMory:STATe:RECall:AUTo ON

This query-only command returns the availability of a setup memory.

NameTypeValuesDescription
locationinteger0 - 4Specifies the location of setup memory.
integer - 1 means that the specified setup memory has been saved. 0 means that the specified setup memory has been deleted.
MEMory:STATe:VALid? 0

Returns the current state of the mass storage system (USB memory).

string - Returns <NR1>,<NR1> [,<file_name>,<file_type>,<file_size>] where the first value is the total storage used in bytes and the second is the free space in bytes; additional fields list file name, file type, and file size.
MMEMory:CATalog?
32751616,27970560,”SAMPLE1.TFS,,5412”

Changes the current working directory in the mass storage system. If no parameter is specified, the directory is not changed.

NameTypeValuesDescription
directory_nameoptstring-Indicates the current working directory for the mass storage system.
string - Returns the current working directory name.
MMEMory:CDIRectory "U:/AFG/WORK0"

Changes the current working directory in the mass storage system. If no parameter is specified, the directory is not changed.

NameTypeValuesDescription
directory_nameoptstring-Indicates the current working directory for the mass storage system.
string - Returns the current working directory name.
MMEMory:CDIRectory "U:/AFG/WORK0"
:MMEMory:DELeteset / query

Deletes a file or directory from the mass storage system. If the specified file cannot be overwritten or deleted, the command causes an error; a directory can be deleted only if it is empty.

NameTypeValuesDescription
file_namestring-Specifies the file to be deleted.
MMEMory:DELete "M:/TEK001.tfwx"

Copies a setup file from the mass storage system to an internal setup memory. If the specified internal setup memory is locked, the command causes an error; on power-off, setup memory 0 is automatically overwritten with the last setup memory.

NameTypeValuesDescription
locationinteger0 - 4Specifies the location of the setup memory.
file_namestring-Specifies a setup file to be copied.
MMEMory:LOAD:STATe 1,"U:/SETUP1.tfs"

Copies a waveform data file from the mass storage system to Edit Memory. If the file format is different, the command causes an error.

NameTypeValuesDescription
EMEMory[1]|EMEMory2enumEMEMory1 | EMEMory2Selects the Edit Memory destination.
file_namestring-Specifies the waveform data file to be copied.
MMEMory:LOAD:TRACe EMEMory1,"U:/TEK001.tfwx"

Sets or queries whether a file or directory in mass storage is locked. A locked file or directory cannot be overwritten or deleted.

NameTypeValuesDescription
file_namestring-File or directory name in the mass storage system.
stateenumON | OFF | <NR1>ON or <NR1>≠0 locks the file or directory; OFF or <NR1>=0 allows overwrite or delete.
enum - <NR1>
MMEMory:LOCK:STATe "M:/setup1.tfs", ON

Sets or queries whether a file or directory is locked in the mass storage system. If locked, the file or directory cannot be overwritten or deleted.

NameTypeValuesDescription
file_namestring-Specifies the file or directory to lock or unlock.
stateenumON | OFF | <NR1>Locks the file or directory when ON or nonzero, and allows overwrite or delete when OFF or zero.
integer - Returns the lock state as <NR1>.
MMEMory:LOCK:STATe "M:/setup1.tfs", ON

Creates a directory in the mass storage system. If the specified directory is locked, the command causes an error.

NameTypeValuesDescription
directory_namestring-Specifies a directory name to be created.
MMEMory:MDIRectory "M:/sample"

Copies a setup file in setup memory to a specified file in the mass storage system. It errors if the target file or directory is locked, or if the setup memory has been deleted.

NameTypeValuesDescription
locationinteger0 - 4Specifies the location of setup memory.
file_namestring-Specifies the file name in the mass storage system, including path; path separators are forward slashes (/).
MMEMory:STORe:STATe 1,"M:/test1.tfs"

Copies a waveform data file in Edit Memory to a file in the mass storage system. If the destination file or directory is locked, the command causes an error.

NameTypeValuesDescription
memoryenumEMEMory1 | EMEMory2Selects the Edit Memory source to copy from.
file_namestring-File name in the mass storage system, including path; path separators are forward slashes (/).
MMEMory:STORe:TRACe EMEMory1,"M:/sample1.tfwx"

Loads a single sequence file if a desired sequence is designated. If the sequence or any associated waveform name already exists, it is overwritten without warning.

NameTypeValuesDescription
file_namestring-Relative path to the driver.
MMEMory:OPEN:SEQuence "U:/AFGseq.seq"

Exports a sequence given a unique name to an eligible storage location as a .seq file. If a file already exists at the selected file path, it is overwritten without warning; if the save fails, the file is deleted.

NameTypeValuesDescription
file_namestring-File path for the sequence to save, specified as a relative path to the driver.
MMEMory:SAVE:SEQuence "U:/mySequence.seq"

Sets the output load impedance for the specified channel. The value is used for amplitude, offset, and high/low level settings; the query returns the current load impedance in ohms, or 9.9E+37 if the impedance is set to INFinity.

NameTypeValuesDescription
ohmsreal1 Ω - 10 kΩSets the output load impedance.
qualifierenumINFinity | MINimum | MAXimumSpecial keywords for setting the impedance to infinity, minimum, or maximum.
real (ohms) - Returns the current load impedance setting in ohms. If the load impedance is set to INFinity, the query returns 9.9E+37.
OUTPut1:IMPedance MAXimum

Sets the output load impedance for the specified channel. The value is used for amplitude, offset, and high/low level settings; the query returns the current load impedance in ohms.

real (ohm) - Current load impedance setting in ohms; if the load impedance is set to INFinity, the query returns 9.9E+37.
OUTPut1:IMPedance MAXimum

Inverts a specified output waveform relative to the offset level. The query returns the polarity for the specified channel.

NameTypeValuesDescription
modeenumNORMal | INVertedSets the specified output waveform polarity.
enum - Returns the polarity for the specified channel.
OUTPut1:POLarity NORMal

Inverts a specified output waveform relative to the offset level. The query returns the polarity for the specified channel.

enum - Returns the polarity for the specified channel.
OUTPut1:POLarity NORMal

Sets or queries whether to enable the AFG output for the specified channel.

NameTypeValuesDescription
stateenumON | OFFEnables or disables the AFG output.
valueinteger-Numeric value where nonzero enables the output and zero disables it.
integer - Returns the output state as <NR1>.
OUTPut1:STATe ON

Sets or queries whether to enable the AFG output for the specified channel.

integer - Returns the output state as <NR1>.
OUTPut1:STATe ON

Sets or queries the trigger output mode for the Trigger Output signal. In burst Inf-Cycles mode, TRIGger outputs the infinite waveform cycles, while SYNC outputs one pulse when Inf-Cycles starts; in other run modes they have the same effect.

NameTypeValuesDescription
modeenumTRIGger | SYNCSelects the trigger output mode.
enum - Returns the current trigger output mode.
OUTPut:TRIGger:MODE SYNC

Sets or queries the mode for the Trigger Output signal. In burst Inf-Cycles mode, TRIGger outputs the infinite waveform cycles and SYNC outputs one pulse when Inf-Cycles starts; otherwise the two modes have the same effect.

enum - Returns the current Trigger Output mode.
OUTPut:TRIGger:MODE SYNC

:RECALL:SETUpset / query

Restores the state of the instrument from a copy of the settings stored in mass memory. If the specified file is deleted, the command causes an error.

NameTypeValuesDescription
file_namestring-Specifies the file name.
RECALL:SETUp "U:/file1.tfs"

:SAVe:SETUpset / query

Stores the current settings of the arbitrary function generator to a specified file in mass memory.

NameTypeValuesDescription
file_namestring-Specifies the file to save the current instrument settings to.
SAVe:SETUp "U:/file1.tfs"

Sets or returns the run mode of the advanced mode. The setter accepts Continuous, Triggered, Gated, or Sequence; the query returns the current mode as a short keyword.

NameTypeValuesDescription
modeenumCONTinuous | TRIGgered | GATed | SEQuenceRun mode to set.
enum - Returns the current run mode as one of CONT, TRIG, GAT, or SEQ.
SEQControl:RMODe TRIGgered
SEQControl:RMODe?

Sets or returns the run mode of the advanced mode.

enum - Returns the current run mode.
SEQControl:RMODe TRIGgered
SEQControl:RMODe?

Initiates the output of a waveform or sequence. It is equivalent to pushing the front-panel run button and validates the sequence before starting; if validation fails, the run does not occur and an error is returned.

NameTypeValuesDescription
immediateopt--Optional node that may be included in the command syntax.
SEQControl:RUN:IMMediate

Resets sequence to its default state, clearing the waveform list and sequence table. Sampling rate, skew time, and other parameters are set to their default values.

SEQControl:RESET

Takes the instrument to Sequence mode or returns it to AFG mode.

NameTypeValuesDescription
stateenumON | OFFSelects Sequence mode on or off; <NR1> is 0 for OFF and nonzero for ON.
integer - 0 indicates that the instrument is in AFG mode; 1 indicates that the instrument is in Sequence mode.
SEQControl:STATe ON
SEQControl:STATe?

Takes the instrument to Sequence mode or returns it to AFG mode.

integer - 0 indicates that the instrument is in AFG mode. 1 indicates that the instrument is in Sequence mode.
SEQControl:STATe?

Returns the run state of the sequence.

integer - 0 indicates that the instrument has stopped; 1 indicates that the instrument is running.
SEQControl:RSTATe?

Sets and queries the sampling rate of the instrument.

NameTypeValuesDescription
NR2real-
SEQControl:SRATe 1.5E9

Sets or queries the sampling rate of the instrument.

real - The sampling rate.

Sets or returns the time of trigger delay in sequence. This command is only valid on two-channel model instruments.

NameTypeValuesDescription
skew_timereal-320ns - 320nsTrigger delay time in sequence.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum delay value.
real (ns) - Returns the current sequence trigger delay value. At *RST, this returns 0.
SEQControl:DELay 100NS

Sets or returns the scale of sequence output. The value range is 0.0 to 1000, and at *RST the returned value is 100.

NameTypeValuesDescription
scale_valuereal0.0 - 1000Scale value for the sequence output.
real - Returns the current scale value.
SEQControl:SOURce1:SCALe 50

Sets or returns the scale of sequence output.

real - Returns the sequence output scale as an NR3 value.
SEQControl:SOURce1:SCALe 50

Sets or returns the offset of the sequence output for source 1 or 2. The offset value ranges from -1e6 to 1e6, and at *RST the returned value is 0.

NameTypeValuesDescription
noptinteger1 - 2Source index to apply the offset to.
offset_valuereal-1e6 - 1e6Offset value to set.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowed offset value.
real - Returns the sequence output offset as an <NR3> value; at *RST this is 0.
SEQControl:SOURce1:OFFSet 0.1
SEQControl:SOURce1:OFFSet?

Sets or returns the offset of sequence output.

NameTypeValuesDescription
offset_valuereal-1e6 - 1e6Offset value to set.
real - Returns the sequence output offset.
SEQControl:SOURce1:OFFSet 0.1

Sets or queries the wait and jump trigger event timer. It takes effect when the event is TIMER and not in the off state.

NameTypeValuesDescription
timer_valuereal2 us - 3600 sTimer value for the trigger event.
qualifieroptenumMINimum | MAXimumOptional keyword to set the timer to its minimum or maximum value.
real - Returns the timer value.
SEQControl:TIMer 0.5

Returns or sets the wait-and-jump trigger event timer. The command takes effect when the event is TIMER and not in the off state.

real - Returns the timer value.
SEQControl:TIMer 0.5

Sets or returns the target index for the GOTO command of the sequencer. The target applies after generating the waveform for a sequence element; if no GOTO target is specified, the sequencer moves to the next element.

NameTypeValuesDescription
targetinteger1 - 256Target element index for the sequencer GOTO jump.
integer - Returns the target index for the GOTO command.
SEQuence:ELEM1:GOTO:INDEX 6
SEQuence:ELEM1:GOTO:INDEX?

Sets or returns the target index for the sequencer GOTO command for a sequence element. The sequencer jumps unconditionally to the specified element after generating the waveform; if no GOTO target is specified, it advances to the next element.

NameTypeValuesDescription
targetinteger1 - 256Target sequence element index to jump to.
integer - Returns the GOTO target index.
SEQuence:ELEM1:GOTO:INDEX 6
SEQuence:ELEM1:GOTO:INDEX?

Sets or returns the GOTO state of the sequencer. The SEQuence:ELEM[n]:GOTO:INDex command takes effect only when the GOTO state is ON.

NameTypeValuesDescription
goto_stateboolean-Sets the GOTO state; 0 indicates OFF and 1 indicates ON.
integer - Returns the GOTO state; at *RST this returns 0.
SEQuence:ELEM1:GOTO:STATe 1

Sets or returns the GOTO state of the sequencer element. The GOTO state must be ON for SEQuence:ELEM[n]:GOTO:INDex to take effect.

integer - Returns the GOTO state. At *RST, this returns 0.
SEQuence:ELEM1:GOTO:STATe 1

Sets or queries the marker state for a sequence element. The sequence index n ranges from 1 to 256; 0 indicates OFF and 1 indicates ON.

NameTypeValuesDescription
marker_stateboolean-Boolean marker state.
integer - Returns the marker state as an NR1 value; at *RST, this returns 0.
SEQuence:ELEM1:MARKer:STATE 1

Returns or sets the marker state for a sequence element. The sequence index n ranges from 1 to 256.

integer - Returns the marker state as an NR1 value; 0 indicates OFF and 1 indicates ON.
SEQuence:ELEM1:MARKer:STATE 1

Sets or returns the target index for the sequencer’s event jump operation. It takes effect only when `SEQuence:ELEM[n]:JTARget:TYPE` is set to `INDex`.

NameTypeValuesDescription
targetinteger1 - 256Target index for the sequencer’s event jump operation.
integer - Returns the target index.
SEQuence:ELEM1:JTARGET:INDEX 10
SEQuence:ELEM1:JTARGET:INDEX?

Sets or returns the target index for the sequencer’s event jump operation. It takes effect only when `SEQuence:ELEM[n]:JTARget:TYPE` is set to `INDex`.

NameTypeValuesDescription
targetinteger1 - 256Target index for the jump operation; it must not be bigger than the current sequence table size.
integer - Returns the target index for the sequencer’s event jump operation.
SEQuence:ELEM1:JTARGET:INDEX 10

Sets or returns the event jump target type for a sequence element. The index value for <n> ranges from 1 to 256.

NameTypeValuesDescription
modeenumINDex | NEXT | OFFSelects the event jump target type.
enum - Returns the current jump target type.
SEQuence:ELEM1:JTARget:TYPE INDex

Sets or returns the event jump target type for the jump. The target can be set to index, next sequence element, or off.

NameTypeValuesDescription
noptinteger1 - 256Index number of the sequence element.
enum - Returns the current event jump target type.
SEQuence:ELEM1:JTARget:TYPE INDex

Sets or returns the jump trigger event type for a sequence element. If SEQuence:ELEM[n]:JTARget:TYPE is OFF, the sequencer ignores trigger signals.

NameTypeValuesDescription
eventenumEXT | BUS | MANual | TIMerTrigger source for the jump event.
enum - Returns the current jump trigger event type. At *RST, this returns EXT.
SEQUENCE:ELEM1:JUMP:EVENt EXT

Sets or returns the jump trigger event type for a sequence element. If SEQuence:ELEM[n]:JTARget:TYPE is OFF, the sequencer ignores trigger signals.

NameTypeValuesDescription
noptinteger1 - 256Index number of the sequence element.
eventenumEXT | BUS | MANual | TIMerJump trigger event type.
enum - Returns the current jump trigger event type. At *RST, this returns EXT.
SEQUENCE:ELEM1:JUMP:EVENt EXT

Sets or returns the slope of the external trigger for a jump trigger event. If SEQuence:ELEM[n]:JTARget:TYPE is OFF, the sequencer ignores trigger signals; if SEQuence:ELEM[n]:JUMP:EVENt is not Ext, the command has no effect.

NameTypeValuesDescription
slopeenumPOSitive | NEGativeIndicates whether the event occurs on the rising or falling edge of the external trigger signal.
enum - Returns the current trigger slope setting.
SEQuence:ELEM1:JUMP:SLOPe POSitive

Sets or returns the slope of the external trigger for a jump trigger event. If SEQuence:ELEM[n]:JTARget:TYPE is OFF, trigger signals are ignored, and the command has no effect unless SEQUENCE:ELEM[n]:JUMP:EVENt is Ext.

NameTypeValuesDescription
slopeenumPOSitive | NEGativeSlope of the external trigger signal for the jump trigger event.
enum - Returns the current slope setting as POS or NEG.
SEQuence:ELEM1:JUMP:SLOPe POSitive

Sets or returns the loop count for a sequence element. The loop count is ignored if `SEQuence:ELEM[n]:LOOP:INFinite` is set to ON.

NameTypeValuesDescription
countinteger1 - 1E6Loop count value for the sequence element.
integer - Returns the loop count.
SEQuence:ELEM1:LOOP:COUNt 100

Sets or returns the loop count for a sequence element. The loop count setting is ignored if `SEQuence:ELEM[n]:LOOP:INFinite` is set to ON.

integer - The loop count value.
SEQuence:ELEM1:LOOP:COUNt 100

Sets or returns the infinite looping state for a sequence element. When enabled, the sequencer continuously executes that element until stopped or the run mode is changed to Continuous.

NameTypeValuesDescription
loop_stateboolean-Enables or disables infinite looping for the specified sequence element.
integer - Returns the infinite looping state; 0 indicates OFF and 1 indicates ON. At *RST, this returns 0.
SEQuence:ELEM1:LOOP:INFinite 1

Sets or returns the infinite looping state for a sequence element. When set ON, the sequencer continuously executes that element; to break the loop, stop the sequencer or change the run mode to Continuous.

integer - Returns the infinite looping state of the specified sequence element, where 0 indicates OFF and 1 indicates ON.
SEQuence:ELEM1:LOOP:INFinite 1

Sets or returns the wait trigger state for a sequence element. The state can be triggered by an external trigger signal, the front-panel Force Trigger button, or the *TRG remote command.

NameTypeValuesDescription
wait_trigger_stateboolean-Boolean wait trigger state; 0 indicates OFF and 1 indicates ON.
noptinteger1 - 256Sequence element index.
integer - Returns the wait trigger state as NR1; 0 indicates OFF and 1 indicates ON.
SEQuence:ELEM1:TWAit 1

Sets or returns the wait trigger state for an element. The state can be triggered by an external trigger signal, the front-panel Force Trigger button, or the *TRG remote command.

NameTypeValuesDescription
wait_trigger_stateboolean-Boolean wait trigger state; 0 indicates OFF and 1 indicates ON.
integer - Returns the wait trigger state; at *RST this returns 0.
SEQuence:ELEM1:TWAit 1

Sets or returns the wait trigger event type for sequence element n. If SEQuence:ELEM[n]:TWAit is OFF, the sequencer ignores trigger signals.

NameTypeValuesDescription
eventenumEXT | BUS | MANual | TIMerSelects the trigger signal source.
enum - Returns the current wait trigger event type; at *RST this returns EXT.
SEQuence:ELEM1:TWAit:EVENt EXT

Sets or returns the wait trigger event type for a sequence element. If `SEQuence:ELEM[n]:TWAit` is OFF, the sequencer ignores trigger signals.

NameTypeValuesDescription
eventenumEXT | BUS | MANual | TIMerTrigger event source for the wait trigger.
enum - Returns the current wait trigger event type. At *RST, this returns EXT.
SEQuence:ELEM1:TWAit:EVENt EXT

Sets or returns the slope of the external trigger for the wait trigger event. If :SEQuence:ELEM[n]:TWAit is OFF, the sequencer ignores trigger signals; if :SEQuence:ELEM[n]:TWAit:EVENt is not Ext, the command has no effect.

NameTypeValuesDescription
noptinteger1 - 256Index number of the sequence element.
slopeenumPOSitive | NEGativeSelects whether the event occurs on the rising or falling edge of the external trigger signal.
enum - Returns the current trigger slope setting; at *RST, returns POS.
SEQuence:ELEM1:TWAit:SLOPe POSitive

Sets or returns the slope of the external trigger for the wait trigger event. If the wait trigger is OFF, the sequencer ignores trigger signals; if :TWAit:EVENt is not Ext, the command has no effect.

NameTypeValuesDescription
noptinteger1 - 256Index number of the sequence element.
slopeenumPOSitive | NEGativeSets the trigger slope to rising-edge positive or falling-edge negative.
enum - Returns the current trigger slope; at *RST, this returns POS.
SEQuence:ELEM1:TWAit:SLOPe POSitive

Sets or returns the waveform for a sequence element. The suffix m = 1|2 indicates the channel that will output the waveform when the sequence is run, and defaults to 1 if omitted.

NameTypeValuesDescription
wfm_namestring-Waveform path and name.
string - Returns the waveform path and name.
SEQuence:ELEM1:WAVeform1 "P:/Pulse1000.tfwx"

Sets or returns the waveform for a sequence element. The suffix n selects the sequence index, and the optional channel suffix 1|2 selects which channel outputs the waveform when the sequence runs.

string - Returns the waveform path and name.
SEQuence:ELEM1:WAVeform1 "P:/Pulse1000.tfwx"
:SEQuence:LENGthset / query

Sets or returns the sequence length. Passing 0 clears all sequence elements; reducing the value deletes elements at the end of the sequence.

NameTypeValuesDescription
lengthinteger0 - 256Sequence length in number of elements.
integer - Returns the current sequence length.
SEQuence:LENGth 10
SEQuence:LENGth?

Sets or returns the sequence length. Passing 0 clears all sequence elements; setting a value lower than the current length deletes elements from the end of the sequence.

NR1 - The current sequence length.
SEQuence:LENGth?
:SEQuence:NEWset / query

Creates a new sequence with no name, empty steps, and no tracks. It clears the waveform list and sets the instrument settings to default; its function is the same as SEQC:RESET.

SEQuence:NEW

Sets or queries the AM modulation depth for the specified channel. The depth can be set from 0.0% to 120.0% with 0.1% resolution.

NameTypeValuesDescription
depthreal0.0 - 120.0AM modulation depth.
qualifierenumMINimum | MAXimumSets the modulation depth to the minimum or maximum value.
real (PCT) - Returns the AM modulation depth.
SOURce1:AM:DEPth MAXimum

Sets or queries the internal modulation frequency of AM modulation for the specified channel. It is only valid when the internal modulation source is selected, and the frequency can be set from 1 mHz to 1 MHz with 1 mHz resolution.

NameTypeValuesDescription
frequencyreal1 mHz - 1 MHzInternal modulation frequency.
qualifieroptenumMINimum | MAXimumUse MINimum or MAXimum to set the minimum or maximum allowed internal modulation frequency.
real (Hz) - Returns the internal modulation frequency.
SOURce1:AM:INTernal:FREQuency 10kHz

Sets or queries the modulating waveform of AM modulation for the specified channel. It can be used only when the internal modulation source is selected.

NameTypeValuesDescription
functionenumSINusoid | SQUare | TRIangl | RAMP | NRAMp | PRNoise | EMEMory[1] | EMEMory2 | EFILeSelects the AM internal modulating waveform.
enum - Returns the selected modulating waveform in abbreviated form.
SOURce1:AM:INTernal:FUNCtion SQUare

Sets or queries the EFILe name used as the modulating waveform for AM modulation. The file must exist in the mass storage system; if no file is present, the command returns a blank value.

NameTypeValuesDescription
file_namestring-Specifies a file name in the mass storage system, including path; path separators are forward slashes (/).
string - Returns the current EFILe file name. Returns a blank value if there is no file in mass storage.
SOURce1:AM:INTernal:FUNCtion:EFILe “U:\SAMPLE1.tfwx”

Sets or queries the source of the modulating signal used for AM modulation on the specified channel.

NameTypeValuesDescription
sourceenumINTernal | EXTernalSelects whether the carrier waveform is modulated with an internal or external source.
enum - Returns the AM modulation source.
SOURce1:AM:SOURce INTernal

Enables or disables AM modulation for the specified channel. The query returns the AM modulation state.

NameTypeValuesDescription
stateenumON | OFF | <NR1>Enables or disables AM modulation.
integer - The AM modulation state.
SOURce1:AM:STATe ON

Sets or queries the idle state of burst. Idle state is the output level between two burst outputs.

NameTypeValuesDescription
stateenumSTART | DC | ENDSelects the burst idle state.
enum - Returns the current burst idle state.
SOURce1:BURSt:IDLE START

Sets or queries the burst mode for the specified channel.

NameTypeValuesDescription
modeenumTRIGgered | GATedSelects the burst mode.
enum - Returns the current burst mode.
SOURce1:BURSt:MODE TRIGgered

Sets or queries the burst count, in cycles, for the specified channel in burst mode. The query returns 9.9E+37 if the burst count is set to INFinity.

NameTypeValuesDescription
cyclesinteger1 - 1000000Burst count to output in burst mode.
qualifieroptenumINFinity | MINimum | MAXimumSelects an infinite, minimum, or maximum burst count value.
integer - Returns the burst count. Returns 9.9E+37 if the burst count is set to INFinity.
SOURce1:BURSt:NCYCles 2

Enables or disables burst mode for the specified channel. The query returns the burst mode state.

NameTypeValuesDescription
stateenumON | OFF | <NR1>Enables or disables burst mode.
integer - Returns the burst mode state.
SOURce1:BURSt:STATe ON

Sets or queries the burst-mode delay time for the specified channel. It specifies the time delay between the trigger and the signal output and is available only in Triggered burst mode.

NameTypeValuesDescription
delayreal0.0 ns - 85.000 sDelay time between the trigger and the signal output.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum delay time.
real (s) - Returns the delay time.
SOURce1:BURSt:TDELay 20ms

Sets or queries whether to add internal noise, an external signal, or both to the output signal for the specified source channel. For internal noise, the noise level is controlled by SOURce<3|4>:POWer[:LEVel][:IMMediate][:AMPLitude].

NameTypeValuesDescription
modeenumNOISe | EXTernal | BOTH | " "Selects internal noise, external signal, both, or disables the add function.
enum - Returns the current combine feed setting.
SOURce1:COMBine:FEED "EXTernal"

Sets or queries the peak frequency deviation of FM modulation for the specified channel. The setting range depends on the selected carrier waveform.

NameTypeValuesDescription
deviationrealHzPeak frequency deviation value.
qualifieroptenumMINimum | MAXimumReturns or sets the minimum or maximum allowed deviation.
real - The frequency deviation.
SOURce1:FM:DEViation 1.0MHz

Sets or queries the internal modulation frequency of FM modulation for the specified channel. It can be used only when the internal modulation source is selected.

NameTypeValuesDescription
frequencyreal1 mHz - 1 MHzInternal modulation frequency.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowed internal modulation frequency.
real (Hz) - Returns the internal modulation frequency.
SOURce1:FM:INTernal:FREQuency 10kHz

Sets or queries the modulating waveform used for FM modulation on the specified channel. This command is only valid when the internal modulation source is selected.

NameTypeValuesDescription
functionenumSINusoid | SQUare | TRIangle | RAMP | NRAMp | PRNoise | EMEMory[1] | EMEMory2 | EFILeModulating waveform shape for FM internal modulation.
enum - Returns the selected modulating waveform in abbreviated form.
SOURce1:FM:INTernal:FUNCtion SQUare

Sets or queries the EFILe name used as a modulating waveform for FM modulation. The file name must exist in the mass storage system; if no file is stored, the command returns a blank string.

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path with forward slashes (/).
string - Current EFILe name used for FM modulation, or blank if no file is stored.
SOURce1:FM:INTernal:FUNCtion:EFILe “SAMPLE1”

Sets or queries the FM modulation source for the specified channel. The internal source modulates the carrier waveform with the internal source, and the external source uses an external source.

NameTypeValuesDescription
sourceenumINTernal | EXTernalSource of the modulating signal.
enum - Returns the current FM source setting.
SOURce1:FM:SOURce INTernal

Enables or disables FM modulation. The query returns the state of FM modulation.

NameTypeValuesDescription
stateenumON | OFFEnables or disables FM modulation.
valuenr1-Numeric value used to enable (nonzero) or disable (zero) FM modulation.
NR1 - Returns the state of FM modulation.
SOURce1:FM:STATe ON

Sets or queries the center frequency of sweep for the specified channel. It is used with [SOURce[1|2]]:FREQuency:SPAN, and the valid center-frequency range depends on the selected sweep waveform.

NameTypeValuesDescription
frequencyrealHzCenter frequency.
qualifieroptenumMINimum | MAXimumUse MINimum or MAXimum to set the center frequency to the minimum or maximum allowed value.
real (Hz) - Returns the center frequency.
SOURce1:FREQuency:CENTer 550kHz

Enables or disables copying the frequency (or period) of one channel to another channel. The header suffix selects the source channel; for example, with CH1 specified, the CH1 frequency is copied to CH2.

NameTypeValuesDescription
stateoptenumON | OFF | <NR1>Enables or disables the concurrent copy function.
enum - Returns 0 (OFF) or 1 (ON).
SOURce1:FREQuency:CONCurrent ON

Sets or queries the output waveform frequency for the specified channel. It is available when Run Mode is set to other than Sweep.

NameTypeValuesDescription
frequencyrealHzOutput frequency to set.
qualifieroptenumMINimum | MAXimumUse the minimum or maximum allowable frequency instead of a numeric value.
real (Hz) - The output frequency.
SOURce1:FREQuency:FIXed 500kHz

Sets or queries the frequency sweep state. Select CW/FIXed for frequency control by the [SOURce[1|2]]:FREQuency[:CW|:FIXed] command, or SWEep for control by the sweep command set.

NameTypeValuesDescription
modeenumCW | FIXed | SWEepSelects whether frequency is controlled directly or by the sweep command set.
enum - Returns the current frequency mode.
SOURce1:FREQuency:MODE SWEep

Sets or queries the frequency span for the specified channel. It is used with [SOURce[1|2]]:FREQuency:CENTer, and the allowed setting range depends on the selected sweep waveform.

NameTypeValuesDescription
frequencyrealHzFrequency span to set.
qualifieroptenumMINimum | MAXimumSets the span to the minimum or maximum allowed value.
real (Hz) - Returns the frequency span.
SOURce1:FREQuency:SPAN 900kHz

Sets or queries the start frequency of sweep for the specified channel. It is used with the corresponding frequency STOP command, and the start frequency range depends on the selected sweep waveform.

NameTypeValuesDescription
frequencyrealHzStart frequency value.
qualifieroptenumMINimum | MAXimumAllows setting the start frequency to the minimum or maximum allowed value.
real (Hz) - Returns the start frequency.
SOURce1:FREQuency:STARt 10kHz

Sets or queries the sweep stop frequency for the specified channel. It is always used with [SOURce[1|2]]:FREQuency:STARt and the valid range depends on the selected sweep waveform.

NameTypeValuesDescription
frequencyrealHzStop frequency value.
qualifieroptenumMINimum | MAXimumAllows setting the stop frequency to the minimum or maximum allowed value.
real (Hz) - The stop frequency.
SOURce1:FREQuency:STOP 100kHz

Sets or queries the hop frequency of FSK modulation for the specified channel.

NameTypeValuesDescription
frequencyrealHzHop frequency value. The syntax allows an NRf value with optional units of Hz, kHz, or MHz.
qualifieroptenumMINimum | MAXimumUse a keyword instead of a numeric frequency value.
real - Returns the hop frequency.
SOURce1:FSKey:FREQuency 1.0MHz

Sets or queries the internal modulation rate of FSK modulation for the specified channel. This command is valid only when the internal modulation source is selected.

NameTypeValuesDescription
raterealHzThe modulation rate.
qualifieroptenumMINimum | MAXimumAlternative to a numeric rate value.
real (Hz) - The internal modulation rate.
SOURce1:FSKey:INTernal:RATE 50Hz

Sets or queries the internal modulation rate of FSK modulation for the specified channel. This command can be used only when the internal modulation source is selected.

real - Returns the internal modulation rate.

Sets or queries the source of the FSK modulation signal for the specified channel.

NameTypeValuesDescription
sourceenumINTernal | EXTernalSelects whether the modulation source is internal or external.
SOURce1:FSKey:SOURce INTernal

Sets or queries the source of the FSK modulation signal for the specified channel. Internal uses the carrier waveform's internal source; external uses an external source.

NameTypeValuesDescription
sourceenumINTernal | EXTernalSelects the modulation source.
enum - Returns the current modulation source.
SOURce1:FSKey:SOURce INTernal

Enables or disables FSK modulation. The query returns the state of FSK modulation.

NameTypeValuesDescription
stateenumON | OFFEnables or disables FSK modulation.
valueinteger-Numeric value where nonzero enables FSK modulation and zero disables it.
integer - Returns the FSK modulation state as <NR1>.
SOURce1:FSKey:STATe ON

Returns or sets the FSK modulation state. This command enables or disables FSK modulation; the query returns the state of FSK modulation.

NameTypeValuesDescription
stateenumON | OFFEnables or disables FSK modulation.
integer - FSK modulation state as a numeric value.
SOURce1:FSKey:STATe ON

Sets or queries the EFILe name used as an output waveform. A file name must be specified in the mass storage system; the command returns a blank string if there is no file in the mass storage.

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path; path separators are forward slashes (/).
string - The current file name, or a blank string if there is no file in the mass storage.
SOURce1:AM:INTernal:FUNCtion:EFILe “U:\SAMPLE1.tfwx”

Sets or queries the EFILe name used as an output waveform. A file name must be specified in the mass storage system; the command returns a blank string if there is no file in mass storage.

string - Returns the current file name used as the output waveform, or a blank string if no file is selected.
SOURce1:AM:INTernal:FUNCtion:EFILe “U:\SAMPLE1.tfwx”

Sets or queries the symmetry of the ramp waveform for the specified channel. The setting range is 0.0% to 100.0%.

NameTypeValuesDescription
symmetryreal0.0 - 100.0Ramp waveform symmetry.
qualifieroptenumMINimum | MAXimumReturns the minimum or maximum symmetry value.
real (PCT) - Returns the symmetry value.
SOURce1:FUNCtion:RAMP:SYMMetry 80.5

Sets or queries the symmetry of the ramp waveform for the specified channel. The setting range is 0.0% to 100.0%.

real (%) - The symmetry value.
SOURce1:FUNCtion:RAMP:SYMMetry 80.5

Sets or queries the output waveform shape. If a selected user memory has been deleted, selecting it causes an error.

NameTypeValuesDescription
shapeenumSINusoid | SQUare | PULSe | RAMP | PRNoise | DC | SINC | GAUSsian | LORentz | ERISe | EDECay | HAVersine | EMEMory[1] | EMEMory2 | EFILeSelects the output waveform shape.
enum - Returns the current output waveform shape.
SOURce1:FUNCtion:SHAPe SQUare

Sets or queries the shape of the output waveform. If a specified user memory has been deleted, selecting that memory causes an error.

enum - Returns the current output waveform shape.
SOURce1:FUNCtion:SHAPe SQUare

Sets or queries the phase of the output waveform for the specified channel. The value may be entered in radians or degrees; if no units are specified, RAD is assumed. The query returns the phase value in RAD.

NameTypeValuesDescription
phasereal-1 PI - +1 PIPhase of the output frequency.
real (RAD) - Phase value in radians.
SOURce1:PHASe:ADJust MAXimum

Sets or queries the phase of the specified output waveform channel. The phase may be entered in radians or degrees; if no units are specified, RAD is assumed. The query returns the phase value in RAD.

NameTypeValuesDescription
phasereal-1 PI - +1 PIPhase of the output frequency.
qualifieroptenumMINimum | MAXimumAllows setting the minimum or maximum phase value.
real (RAD) - Phase value in radians.
SOURce1:PHASe:ADJust MAXimum

Enables or disables the concurrent copy function that copies the phase of one channel to another. For a dual-channel model, specifying CH1 copies the CH1 phase to CH2; the query returns 0 (OFF) or 1 (ON).

NameTypeValuesDescription
stateenumON | OFF | <NR1>Turns the concurrent copy function on or off.
integer - Returns 0 for OFF or 1 for ON.
SOURce1:PHASe:CONCurrent ON

Enables or disables the function that copies the phase of one channel to another channel. The query returns 0 (OFF) or 1 (ON).

enum - Returns 0 for OFF or 1 for ON.
SOURce1:PHASe:CONCurrent ON

Synchronizes the phase of CH1 and CH2 output waveforms. The same operation is performed whether SOURce1 or SOURce2 is specified.

SOURce1:PHASe:INITiate

Sets or queries the peak frequency deviation of PM modulation for the specified channel. The deviation is entered as an NR3 value with optional units RAD or DEG; if units are omitted, RAD is used automatically.

NameTypeValuesDescription
deviationreal0 - +1 PIPhase deviation value. For RAD, the range is 0 PI to +1 PI relative to phase value; for DEG, the range is 0 to +180 in 1 degree steps relative to phase value.
qualifieroptenumMINimum | MAXimumSets the deviation to the minimum or maximum allowed value.
real (RAD) - Returns the present deviation value.
SOURce1:PM:DEViation MAXimum

Sets or queries the peak frequency deviation of PM modulation for the specified channel.

real - Returns the phase deviation.

Sets or queries the internal modulation frequency of PM modulation for the specified channel. Can be used only when the internal modulation source is selected.

NameTypeValuesDescription
frequencyreal1 mHz - 1 MHzInternal modulation frequency to set.
qualifieroptenumMINimum | MAXimumUse MINimum or MAXimum to set the frequency to the minimum or maximum allowed value.
real (Hz) - Returns the internal modulation frequency.
SOURce1:PM:INTernal:FREQuency 10kHz

Sets or queries the internal modulation frequency of PM modulation for the specified channel. Use only when the internal modulation source is selected; the frequency can be set from 1 mHz to 1 MHz with 1 mHz resolution.

real (Hz) - The internal modulation frequency.
SOURce1:PM:INTernal:FREQuency 10kHz

Sets or queries the modulating waveform of PM modulation for the specified channel. This command can be used only when the internal modulation source is selected.

NameTypeValuesDescription
functionenumSINusoid | SQUare | TRIangle | RAMP | NRAMp | PRNoise | EMEMory[1] | EMEMory2 | EFILeModulating waveform to use as the PM internal source.
enum - Returns the currently selected modulating waveform as an abbreviated keyword.
SOURce1:PM:INTernal:FUNCtion SQUare

Sets or queries the modulating waveform of PM modulation for the specified channel. Use only when the internal modulation source is selected.

enum - Returns the selected modulating waveform as a short keyword.
SOURce1:PM:INTernal:FUNCtion SQUare

Sets or queries the EFILe name used as a modulating waveform for PM modulation. The file name must exist in the mass storage system; the command returns a blank string if no file is present.

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path; path separators are forward slashes (/).
string - Returns the current file name, or a blank string if there is no file in mass storage.
SOURce1:PM:INTernal:FUNCtion:EFILe “M:/SAMPLE1.tfwx"

Sets or queries the EFILe name used as a modulating waveform for PM modulation. The file name must exist in the mass storage system; the query returns a blank string if there is no file in mass storage.

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path; path separators are forward slashes (/).
string - Returns the EFILe name used as a modulating waveform for PM modulation, or a blank string if there is no file in mass storage.
SOURce1:PM:INTernal:FUNCtion:EFILe “M:/SAMPLE1.tfwx"

Sets or queries the modulation source for PM modulation on the specified channel.

NameTypeValuesDescription
modeenumINTernal | EXTernalSelects whether the carrier waveform is modulated with an internal or external source.
enum - Returns the current PM modulation source.
SOURce1:PM:SOURce INTernal

Sets or queries the source of the modulation signal for PM modulation on the specified channel.

enum - Returns the PM modulation source selection.
SOURce1:PM:SOURce INTernal

Enables or disables PM modulation. The query returns the state of PM modulation.

NameTypeValuesDescription
stateenumON | OFF | <NR1>Enables or disables PM modulation.
integer - Returns the state of PM modulation.
SOURce1:PM:STATe ON

Enables or disables PM modulation. The query returns the state of PM modulation.

integer - Returns the PM modulation state as <NR1>.
SOURce1:PM:STATe ON

Sets or queries the duty cycle of the pulse waveform for the specified channel. The duty cycle range is 0.001% to 99.999% in 0.001% increments; the instrument holds leading and trailing edge settings when duty cycle is varied.

NameTypeValuesDescription
percentreal0.001 - 99.999Duty cycle value to set, in percent.
qualifieroptenumMINimum | MAXimumUse MINimum or MAXimum to set the duty cycle to the minimum or maximum allowed value.
real (PCT) - Returns the current duty cycle of the pulse waveform in percent.
SOURce1:PULSe:DCYCle 80.5

Sets or queries the duty cycle of the pulse waveform for the specified channel. The setting range is 0.001% to 99.999% in increments of 0.001; leading and trailing edge settings are held when the duty cycle is varied.

NameTypeValuesDescription
percentreal0.001 - 99.999Duty cycle value.
qualifieroptenumMINimum | MAXimumOptional keyword to set the duty cycle to the minimum or maximum value.
real (PCT) - Returns the duty cycle of the pulse waveform.
SOURce1:PULSe:DCYCle 80.5

Sets or queries the lead delay of the pulse waveform for the specified channel.

NameTypeValuesDescription
delayreal0 ns - Pulse PeriodLead delay value for the pulse waveform.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowed delay.
real - Returns the lead delay of the pulse waveform for the specified channel.
SOURce1:PULSe:DELay 20ms

Sets or queries the lead delay of the pulse waveform for the specified channel.

real - The lead delay.

Sets the instrument to hold either pulse width or pulse duty. The query returns whether width or duty is being held.

NameTypeValuesDescription
modeenumWIDTh | DUTYSelects whether the AFG holds the pulse width setting or the pulse duty setting.
enum - Returns whether pulse width or pulse duty is being held.
SOURce1:PULSe:HOLD WIDTh

Sets the instrument to hold either pulse width or pulse duty. The query returns the current hold mode as WIDTh or DUTY.

enum - Returns the pulse hold mode.
SOURce1:PULSe:HOLD WIDTh

Sets or queries the period for pulse waveform.

NameTypeValuesDescription
periodreal-Pulse period value.
qualifieroptenumMINimum | MAXimumReturns or sets the minimum or maximum period value.
real - The pulse period.
SOURce1:PULSe:PERiod 200ns

Sets or queries the leading edge time of the pulse waveform for the selected source. The value is given in seconds with optional time units.

NameTypeValuesDescription
secondsrealsLeading edge time of the pulse waveform.
qualifieroptenumMINimum | MAXimumSets the value to the minimum or maximum allowed leading edge time.
real (s) - Returns the leading edge time of the pulse waveform.
SOURce1:PULSe:TRANsition:LEADing 200ns

Sets or queries the leading edge time of the pulse waveform. The value is specified in seconds with optional units, or as MINimum/MAXimum.

NameTypeValuesDescription
secondsrealsLeading edge time of the pulse waveform.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowed value.
real (s) - Returns the leading edge time of the pulse waveform.
SOURce1:PULSe:TRANsition:LEADing 200ns

Sets or queries the trailing edge time of the pulse waveform.

NameTypeValuesDescription
secondsrealsTrailing edge time of the pulse waveform.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum trailing edge time.
real (s) - The trailing edge time of the pulse waveform.
SOURce1:PULSe:TRANsition:TRAiling 200ns

Queries the trailing edge time of the pulse waveform for the selected source. The value is expressed as a time in seconds with optional units.

real (s) - Trailing edge time of the pulse waveform.
SOURce1:PULSe:TRANsition:TRAiling 200ns

Sets or queries the pulse width for the specified source channel. The pulse width must be less than the period and is constrained by the duty-cycle range and edge-time limits.

NameTypeValuesDescription
secondsreal0.001% - 99.999%Pulse width value expressed as a duty cycle percentage; the manual also gives channel-dependent absolute time ranges in nanoseconds to seconds.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum pulse width.
real (s) - Returns the pulse width in seconds.
SOURce1:PULSe:WIDTh 200ns

Sets or queries the pulse width for the specified source channel. The pulse width is constrained by the duty-cycle range and must be less than the pulse period.

NameTypeValuesDescription
secondsreal0.001% - 99.999%Pulse width value.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum pulse width.
real (s) - Pulse width in seconds.
SOURce1:PULSe:WIDTh 200ns

Sets or queries the internal modulation frequency of PWM modulation for the specified channel. It can be used only when the internal modulation source is selected, and the frequency range is 1 mHz to 1 MHz with 1 mHz resolution.

NameTypeValuesDescription
frequencyreal1 mHz - 1 MHzInternal modulation frequency to set.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum internal modulation frequency.
real (Hz) - Returns the internal modulation frequency.
SOURce1:PWM:INTernal:FREQuency 10kHz

Sets or queries the internal modulation frequency of PWM modulation for the specified channel. This command is only valid when the internal modulation source is selected.

real (Hz) - Returns the internal modulation frequency.
SOURce1:PWM:INTernal:FREQuency 10kHz

Sets or queries the modulating waveform used for PWM modulation on the specified channel. This command is valid only when the internal modulation source is selected.

NameTypeValuesDescription
waveformenumSINusoid | SQUare | TRIangle | RAMP | NRAMp | PRNoise | EMEMory[1] | EMEMory2 | EFILeSelects the PWM modulating waveform.
enum - Returns the selected PWM modulating waveform.
SOURce1:PWM:INTernal:FUNCtion SQUare

Sets or queries the modulating waveform used for PWM modulation on the specified source channel. It can be used only when the internal modulation source is selected; specifying EFILe before defining the external file causes an error.

NameTypeValuesDescription
waveformenumSINusoid | SQUare | TRIangle | RAMP | NRAMp | PRNoise | EMEMory[1] | EMEMory2 | EFILeModulating waveform selection for PWM internal function.
enum - Returns the selected waveform using abbreviated keywords.
SOURce1:PWM:INTernal:FUNCtion SQUare

Sets or queries the EFILe name used as a modulating waveform for PWM modulation. The file name must be specified in the mass storage system; if no file is present, the command returns a blank string.

NameTypeValuesDescription
file_namestring-File name in the mass storage system to use as the PWM modulating waveform.
string - Returns the EFILe name used as a modulating waveform, or a blank string if there is no file in mass storage.
SOURce1:PWM:INTernal:FUNCtion:EFILe "U:/SAMPLE1.tfwx"

Sets or queries the EFILe name used as a modulating waveform for PWM modulation. The file name must be specified in the mass storage system; the query returns an empty string if there is no file in mass storage.

NameTypeValuesDescription
file_namestring-Name of the file in mass storage to use as the PWM modulating waveform.
string - Returns the EFILe name currently used as the PWM modulating waveform, or an empty string if no file is stored.
SOURce1:PWM:INTernal:FUNCtion:EFILe "U:/SAMPLE1.tfwx"

Sets or queries the source of the PWM modulating signal for the specified channel. Internal means the carrier waveform is modulated with the internal source; external means it is modulated with an external source.

NameTypeValuesDescription
modeenumINTernal | EXTernalSelects the source of the modulating signal.
enum - Returns the current PWM modulating source as internal or external.
SOURce1:PWM:SOURce INTernal

Sets or queries the source of the PWM modulating signal for the specified channel. Internal source means the carrier waveform is modulated with the internal source; external source means it is modulated with an external source.

enum - Returns the currently selected PWM modulation source.
SOURce1:PWM:SOURce INTernal

Enables or disables PWM modulation. The query returns the state of PWM modulation.

NameTypeValuesDescription
stateenumON | OFFEnables or disables PWM modulation.
valueinteger-Numeric form of the state, where nonzero enables PWM modulation and zero disables it.
SOURce1:PWM:STATe ON

Enables or disables PWM modulation. The query returns the state of PWM modulation.

enum - Returns the PWM modulation state.
SOURce1:PWM:STATe ON

Queries the run mode. The query returns the current run mode.

enum - Returns the run mode.
SOURce:RMOD?

Sets or queries the PWM deviation in percent for the specified channel. The setting range must satisfy pulse-width and edge-time constraints.

NameTypeValuesDescription
percentrealPCTPWM deviation.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowed deviation.
real (PCT) - Returns the PWM deviation in percent.
SOURce1:PWM:DCYCle 5.0

Sets or queries the PWM deviation in percent for the specified channel. The setting range must satisfy the pulse-width, pulse-period, and edge-time constraints given in the manual.

real (PCT) - Returns the PWM deviation in percent.
SOURce1:PWM:DCYCle 5.0

Sets or queries the sweep hold time, which is the time the frequency must remain stable after reaching the stop frequency.

NameTypeValuesDescription
secondsrealsHold time value.
qualifieroptenumMINimum | MAXimumUse a minimum or maximum hold time keyword instead of a numeric value.
real (s) - Returns the sweep hold time in seconds.
SOURce1:SWEep:HTIMe 1ms

Selects auto or manual sweep mode for the specified channel. The query returns the sweep mode for the specified channel.

NameTypeValuesDescription
modeenumAUTO | MANualSweep mode to set for the specified channel.
enum - Returns the sweep mode for the specified channel.
SOURce1:SWEep:MODE AUTO

Sets or queries the sweep return time, which is the time from stop frequency through start frequency and does not include hold time.

NameTypeValuesDescription
secondsrealsReturn time in seconds.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum return time.
real (s) - Return time in seconds.
SOURce1:SWEep:RTIMe 1ms

Selects linear or logarithmic spacing for the sweep on the specified channel. The query returns the current sweep spacing type.

NameTypeValuesDescription
spacingenumLINear | LOGarithmicSets the sweep spacing to linear or logarithmic.
enum - Returns the sweep spacing type for the specified channel.
SOURce1:SWEep:SPACing LINear

Sets or queries the sweep time for the specified channel. The sweep time does not include hold time or return time, and the setting range is 1 ms to 500 s.

NameTypeValuesDescription
secondsreal1 ms - 500 sSweep time value in seconds.
qualifieroptenumMINimum | MAXimumOptional keyword to set the sweep time to the minimum or maximum allowed value.
real (s) - Returns the sweep time in seconds.
SOURce1:SWEep:TIME 100ms

Enables or disables the function that copies the voltage level of one channel to another. If CH1 is specified in the header, its voltage level is copied to CH2; the command is not supported on single-channel models.

NameTypeValuesDescription
stateenumON | OFFEnables or disables the concurrent copy function.
integer - Returns 0 (OFF) or 1 (ON).
SOURce1:VOLTage:CONCurrent:STATe ON

Sets or queries the high level of output amplitude for the specified channel. On dual-channel models, if concurrent output is ON, the other channel is set to the same value.

NameTypeValuesDescription
voltagerealVHigh level of output amplitude.
qualifieroptenumMINimum | MAXimumSets the level to the minimum or maximum allowed value.
real (mV) - <voltage>
SOURce1:VOLTage:LEVel:IMMediate:HIGH 1V

Sets or queries the low level of output amplitude for the specified channel. On dual-channel models, if [SOURce[1|2]]:VOLTage:CONCurrent[:STATe] is ON, the other channel's low level is set to the same value.

NameTypeValuesDescription
voltagerealVLow level of output amplitude.
qualifieroptenumMINimum | MAXimumOptional setting keyword accepted in place of a numeric voltage.
real (V) - Returns the low level of output amplitude.
SOURce1:VOLTage:LEVel:IMMediate:LOW -1V

Sets or queries the offset level for the specified channel. On dual-channel models, if concurrent mode is ON, the other channel is set to the same value.

NameTypeValuesDescription
voltagerealmV|VOffset voltage level.
qualifieroptenumMINimum | MAXimumAllows setting the offset to the minimum or maximum allowed value.
real (mV|V) - Returns the offset voltage level.
SOURce1:VOLTage:LEVel:IMMediate:OFFSet 500mV

Sets or queries the output amplitude for the specified channel. The amplitude value includes an optional unit of VPP, VRMS, or DBM.

NameTypeValuesDescription
amplituderealVPPOutput amplitude value to set.
qualifieroptenumMINimum | MAXimumAllows the command to set the minimum or maximum amplitude.
real - Returns the current output amplitude.
SOURce1:VOLTage:LEVel:IMMediate:AMPLitude 1VPP

Sets or queries the higher limit of the output amplitude high level for the specified channel. If concurrent mode is ON on a dual-channel model, the other channel uses the same higher limit value.

NameTypeValuesDescription
voltagerealVHigher limit of the output amplitude high level.
qualifieroptenumMINimum | MAXimumOptional keyword to set the value to the minimum or maximum allowed limit.
real (V) - Returns the higher limit of the output amplitude high level.
SOURce1:VOLTage:LIMit:HIGH 1V

Sets or queries the lower limit of the output amplitude low level for the specified channel. On dual-channel instruments with concurrent mode ON, the other channel uses the same low-level limit.

NameTypeValuesDescription
voltagerealmV|VLower limit of output amplitude.
real (mV|V) - Returns the lower limit of output amplitude.
SOURce1:VOLTage:LIMit:LOW 10mV

Sets or queries the units of output amplitude for the specified channel. It does not affect offset, High level, or Low level output, and if concurrent channel units are enabled on a dual-channel model the other channel is set the same.

NameTypeValuesDescription
modeenumVPP | VRMS | DBMUnits of the output voltage amplitude.
enum - Returns the current output voltage unit setting.
SOURce1:VOLTage:UNIT VPP

Sets the reference clock to either internal or external.

NameTypeValuesDescription
sourceenumINTernal | EXTernalSelects the reference clock source.
SOURce:ROSCillator:SOURce INTernal

Sets or queries the internal noise level for the specified channel. The noise level is a percent of the current amplitude level and is available only in Continuous, Burst, or Sweep run modes.

NameTypeValuesDescription
percentreal0 - 50Noise level as a percentage of the current amplitude level.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowable noise level.
real (PCT) - Returns the current internal noise level as a percent.
SOURce3:POWer:LEVel:IMMediate:AMPLitude 50PCT

Returns the contents of the Operation Condition Register.

integer - Contents of the Operation Condition Register.
STATus:OPERation:CONDition?
Might return 32 which indicates that the OCR contains the binary number 00000000 00100000 and the CH1 of the instrument is waiting for trigger.

Sets or queries the mask for the Operation Enable Register.

NameTypeValuesDescription
bit_valueinteger-Bit mask value for the Operation Enable Register.

Returns the value in the Operation Event Register and clears the Operation Event Register.

integer - Returns the value in the Operation Event Register.
STATus:OPERation?
:STATus:PRESetset / query

Presets the SCPI status registers (OENR and QENR).

STATus:PRESet

Returns the contents of the Questionable Condition Register.

integer - Returns the contents of the Questionable Condition Register as a bit value.
STATus:QUEStionable:CONDition?

Sets or queries the mask for the Questionable Enable Register.

NameTypeValuesDescription
bit_valueinteger-Bit value mask for the Questionable Enable Register.
STATus:QUEStionable:ENABle 32

Returns the value in the Questionable Event Register and clears that register.

integer - Returns <bit_value> as an NR1 value representing the Questionable Event Register contents.
STATus:QUEStionable:EVENt?

Sets the beeper state to ON or OFF. The query form returns 0 for OFF or 1 for ON.

NameTypeValuesDescription
stateenumON | OFFEnables or disables the beeper.
integer - Returns 0 when the beeper is OFF and 1 when it is ON.
SYSTem:BEEPer:STATe ON

Returns the contents of the Error/Event queue. If an error or event is present, the response includes the event number and event message.

string - Returns the error/event number and error/event description from the queue.
SYSTem:ERRor?
might return the following response:
-410,”Query INTERRUPTED”

Enables or disables the click sound when you push the front panel buttons or turn the general purpose knob. The query returns 0 (OFF) or 1 (ON).

NameTypeValuesDescription
stateenumON | OFFEnables or disables the click sound.
integer - Returns 0 when click sound is OFF and 1 when it is ON.
SYSTem:KCLick:STATe ON

Locks or unlocks the instrument front panel controls. The query returns 0 (OFF) or 1 (ON).

NameTypeValuesDescription
stateenumON | OFFLocks or unlocks the front panel controls.
valueinteger-Numeric value where nonzero locks the front panel controls and zero unlocks them.
integer - Returns 0 when front panel controls are unlocked and 1 when they are locked.
SYSTem:KLOCk:STATe ON

Disables protected commands and activates the instrument security protection. On AFG31000 Series instruments, no remote commands are under the control of SYSTem:PASSword commands.

NameTypeValuesDescription
passwordstring-Specifies the current password; the string is case sensitive.
SYSTem:PASSword:CDISable "password"

Enables protected commands to function and deactivates the instrument security protection. The password string is case sensitive.

NameTypeValuesDescription
passwordstring-Specifies the current password.
SYSTem:PASSword:CENable "password"

Returns the security protection state.

integer - <NR1> where 0 indicates that the security protection is in the on state, and nonzero indicates that the security protection is in the off state.
SYSTem:PASSword:STATe?

Changes the password. The current and new password strings are case sensitive and must be 4 to 12 characters long.

NameTypeValuesDescription
current_passwordstring-Specifies the current password.
new_passwordstring-Specifies a new password.
SYSTem:PASSword:NEW “DEFAULT”,“abc123”
:SYSTem:RESTartset / query

Restarts the instrument. It is equivalent to pushing the front-panel power switch.

SYSTem:RESTart

Erases current instrument setups, setup memory, last setup memory, user waveform memory, and log content, and recalls the factory default settings. Calibration data is not erased; the communication settings are initialized to factory defaults.

SYSTem:SECurity:IMMediate

Sets or queries the language the instrument uses to display information on the screen.

NameTypeValuesDescription
languageenumENGLish | FRENch | GERMan | JAPanese | KORean | SCHinese | TCHinese | RUSSianSpecifies which language will be used to display instrument information on the screen.
enum - Returns the current display language.
SYSTem:ULANguage FRENch

Returns the conformed SCPI version of the instrument.

string - Returns the conformed SCPI version in the form YYYY.V, where YYYY indicates the year and V the version number for that year.
SYSTem:VERSion?

Transfers waveform data from the external controller to the AFG edit memory. The query form returns the binary block data.

NameTypeValuesDescription
memoryenumEMEMory[1] | EMEMory2Target edit memory.
binary_block_datablock-Waveform data in binary format.
block - Binary block data.
DATA:DATA EMEMory1,#42000<DAB><DAB>...<DAB>

Sets or queries the slope of the trigger signal. Positive selects the rising edge of the external trigger signal; negative selects the falling edge.

NameTypeValuesDescription
slopeenumPOSitive | NEGativeSelects the trigger edge polarity.
enum - Returns the trigger slope setting.
TRIGger:SLOPe POSitive

Sets or queries the trigger source for an external trigger signal.

NameTypeValuesDescription
sourceenumTIMer | EXTernalSpecifies the trigger source.
enum - Returns the current trigger source.
TRIGger:SEQuence:SOURce EXTernal

Sets or queries the period of the internal clock used as the trigger source when internal triggering is selected with TRIGger[:SEQuence]:SOURce. The setting range is 1 us to 500.0 s.

NameTypeValuesDescription
secondsreal1 us - 500.0 sPeriod of the internal clock.
real (s) - Returns the trigger timer period.
TRIGger:TIMer 5ms

Returns the waveform name from the waveform list at the specified index. The returned string includes the waveform name with path.

NameTypeValuesDescription
indexinteger1 - 256Index of the waveform list entry to read.
string - Waveform name with path specified by the index.
WLISt:NAME? 21

Returns the number of waveforms in the waveform list.

integer - Number of waveforms in the waveform list.
WLISt:SIZE?

Deletes a waveform from the waveform list. If the deleted waveform is currently loaded into waveform memory and the sequence table, it is unloaded.

NameTypeValuesDescription
wfm_namestring-Indicates the waveform path and name.
ALLenumALLDeletes all waveforms in the list.
WLISt:WAVeform:DELete ALL
WLISt:WAVeform:DELete "M:/Test1.tfwx"

Imports a waveform from internal driver or USB driver into the waveform list.

NameTypeValuesDescription
wfm_namestring-Indicates the waveform path and name.
WLISt:WAVeform:IMPort “M:/Test1.tfwx"

Returns the size of the waveform in data points, not bytes.

NameTypeValuesDescription
wfm_namestring-Indicates the waveform path and name.
integer - The number of data points in the specified waveform.
WLISt:WAVeform:LENGth? "M:/Sine360.tfwx"

:TRACE:DATAset / query

Transfers arbitrary block waveform data to edit memory. The example shows sending the command with an edit-memory target and definite-length block header before writing the byte array data.

NameTypeValuesDescription
memoryenumEMEMORY1Edit memory destination for the waveform data.
block datablock-Arbitrary block data to transfer.
TRACE:DATA EMEMORY1,#44000