/

Tektronix

/

Tektronix AFG1062

SCPI COMMAND REFERENCE

Tektronix AFG1062

Tektronix AFG1062

The Tektronix AFG1062 is Tektronix's function generator in the AFG1000 Series family. Its SCPI remote-control interface exposes 138 commands across 7 subsystems - 72 settable and 66 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.

138

Commands

72

Settable

66

Queries

7

Subsystems

SCPI

Verified

2026-07-16

All commands

138 of 138 commands

*CLSset / query

Clears the status and event registers. This is a common SCPI common command and does not take any parameters.

*IDN?query

Returns the instrument identification string.

string - The identification string.
*OPT?query

Returns a list of the options installed in the instrument.

string - A list of the installed options.
*RCLset / query

Restores the instrument state from a copy of the settings stored in setup memory. The settings are stored using *SAV; if the specified setup memory is deleted, the command causes an error.

NameTypeValuesDescription
memory locationinteger0 - 31Specifies the location of setup memory to restore.
*RCL 3
*RSTset / query

Resets the instrument to the factory default settings.

*RST
*SAVset / query

Stores the current settings of the arbitrary function generator to a specified setup memory location.

NameTypeValuesDescription
locationinteger0 - 31Specifies the setup memory location to save into.
*SAV 2
*TRGset / query

This command generates a trigger event.

*TRG
*WAIset / query

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

*WAI

Changes the current directory in the mass storage system.

NameTypeValuesDescription
directory_namestring-Directory name to change to.
MMEMory:CDIRectory "/AFG/WORK0"
:MMEMory:DELeteset / query

Deletes a file or directory from the mass storage system. If the specified file is not allowed to 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 and should include the full path.
MMEMory:DELete "/AFG/WORK0/TEK001.tfw"

Sets the output load impedance for the specified channel. The query returns the current load impedance in ohms, or 9.9E+37 if the load impedance is set to INFinity.

NameTypeValuesDescription
ohmsreal1 - 10 kΩOutput load impedance value.
qualifieroptenumMINimum | MAXimumKeyword alternative to the numeric impedance value.
real (ohm) - Current load impedance setting in ohms; returns 9.9E+37 when the impedance is set to INFinity.
OUTPut1:IMPedance MAXimum

Returns the current load impedance setting in ohms for the specified output channel. If the load impedance is set to INFinity, the query returns 9.9E+37.

NameTypeValuesDescription
qualifierenumMINimum | MAXimumSelects the minimum or maximum impedance value.
real (ohms) - The current load impedance setting in ohms.
OUTPut1:IMPedance MAXimum

Sets or queries the instrument output state for the specified channel.

Returns the present output state of the selected output channel. ON or a nonzero numeric value indicates the output is enabled; OFF or 0 indicates it is disabled.

integer - Present output state of the selected instrument output channel.
OUTPut1:STATe ON

Sets or queries the internal modulation frequency of AM modulation for the specified channel. Use this command when the internal modulation source is selected; the allowed range is 2 mHz to 20.00 kHz with 1 mHz resolution.

Sets or queries the modulation depth of AM modulation for the specified channel. The depth can be set from 0% to 100% with 1% resolution.

NameTypeValuesDescription
depthoptreal0 - 100Modulation depth value.
qualifieroptenumMINimum | MAXimumSets the modulation depth to the minimum or maximum value.
real (PCT) - Returns the modulation depth.
SOURce1:AM:DEPth MAXimum

Sets or queries the AM modulation depth for the specified channel. The depth can be set from 0% to 100% with 1% resolution.

NameTypeValuesDescription
depthreal0 - 100Modulation depth value.
qualifieroptenumMINimum | MAXimumReturns the minimum or maximum modulation depth value.
real (PCT) - The modulation depth.
SOURce1:AM:DEPth MAXimum

Sets or queries the internal AM modulation frequency for the specified source channel. The query returns the current frequency, and can also return the minimum or maximum value when qualified.

NameTypeValuesDescription
qualifieroptenumMINimum | MAXimumOptional query qualifier to return the minimum or maximum frequency.
real (Hz) - The internal AM modulation frequency. With the MINimum or MAXimum qualifier, returns the minimum or maximum supported frequency.
SOURce1:AM:INTernal:FREQuency 10kHz

Sets or queries the modulating waveform of AM modulation for the specified channel when the internal modulation source is selected. Specifying EFILe when no EFILe exists or is not yet defined causes an error.

NameTypeValuesDescription
waveformenumSINusoid | SQUare | RAMP | PRNoise | USER<NR1> | EMEMory | EFILeModulating waveform for AM internal modulation.

Sets or queries the modulating waveform of AM modulation for the specified channel. Use this command when the internal modulation source is selected; if EFILe is selected when no EFILe exists or is not yet defined, the command causes an error.

enum - Returns the selected internal AM modulation waveform.

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

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

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

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path.
string - The EFILe name used as a modulating waveform.
SOURce1:AM:INTernal:FUNCtion:EFILe “SAMPLE1”

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

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

Sets or queries the source of the AM modulating signal for the specified channel. For the AFG1022, use [SOURce1].

NameTypeValuesDescription
sourceoptenumINTernal | EXTernalSelects whether the carrier waveform is modulated with an internal or external source.
enum - Returns the current AM source as INT or EXT.
SOURce1:AM:SOURce INTernal

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

NameTypeValuesDescription
stateenumON | OFF | <NR1>AM modulation state.
enum - Returns the state of AM modulation.

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

enum - Returns the AM modulation state.

Sets or queries the modulation amplitude of ASK modulation for the specified channel. The amplitude can be set from 0 Vpp to the current carrier amplitude; MINimum sets it to the minimum value.

NameTypeValuesDescription
amplitudereal0 - current amplitude of the carrier waveformModulation amplitude for ASK modulation.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowed modulation amplitude.
real (Vpp) - Returns the current modulation amplitude. If queried with MINimum or MAXimum, returns the minimum or maximum modulation amplitude.

Sets or queries the modulation amplitude of ASK modulation for the specified channel. The amplitude can be set from 0 Vpp to the current carrier amplitude.

NameTypeValuesDescription
amplitudereal0 - current amplitude of the carrier waveformModulation amplitude.
qualifieroptenumMINimum | MAXimumSets or queries the minimum or maximum modulation amplitude.
real (Vpp) - Returns the modulation amplitude.

Sets or queries the internal modulation rate of ASK modulation for the specified channel when the internal modulation source is selected.

NameTypeValuesDescription
raterealHzInternal modulation rate.
qualifieroptenumMINimum | MAXimumReturns the minimum or maximum internal modulation rate.
real (Hz) - Returns the internal modulation rate.
SOURce1:ASKey:INTernal:RATE 50Hz

Queries the internal modulation rate of ASK modulation for the specified channel. Use this command when the internal modulation source is selected.

NameTypeValuesDescription
qualifierenumMINimum | MAXimumSelects the minimum or maximum internal modulation rate to query.
real (Hz) - Returns the internal modulation rate.

Sets or queries the source of the ASK modulation signal for the specified channel. The query returns whether the source is internal or external.

NameTypeValuesDescription
sourceoptenumINTernal | EXTernalSelects the source of the modulation signal.
enum - Returns the ASK modulation source as internal or external.
SOURce1:ASKey:SOURce INTernal

Sets or queries the source of the ASK modulation signal for the specified channel. For the query, returns INT or EXT.

NameTypeValuesDescription
modeoptenumINTernal | EXTernalSelects whether the carrier waveform is modulated with an internal or external source.
enum - Returns the ASK modulation source as INT or EXT.
SOURce1:ASKey:SOURce INTernal

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

NameTypeValuesDescription
stateenumON | OFF | <NR1>Enables ASK modulation when ON or any nonzero numeric value is sent; OFF disables it.
enum - Returns the state of ASK modulation.

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

enum - Returns the ASK modulation state.

Sets or queries the burst mode for the specified channel.

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

Sets or queries the burst mode for the specified channel. For the AFG1022, use Source1; modulation, sweep, and burst conditions do not apply to CH2.

enum - Returns the current burst mode.
SOURce1:BURSt:MODE TRIGgered

Sets or queries the number of cycles (burst count) to be output in burst mode for the specified channel. The query returns 9.9E+37 if the burst count is set to INFinity.

real - Returns the burst count; returns 9.9E+37 if the burst count is set to INFinity.

Queries the burst cycle count for the specified source channel. The query returns the current burst count, or the minimum or maximum burst count when qualified with MINimum or MAXimum.

NameTypeValuesDescription
qualifieroptenumMINimum | MAXimumSelects which burst count value to return.
integer - Burst count for the selected source channel, or the selected minimum/maximum value when queried with a qualifier.
SOURce1:BURSt:NCYCles 2

Sets or queries the trigger source in burst mode for the specified channel. This command is available only in Triggered burst mode.

NameTypeValuesDescription
sourceoptenumTIMer | MANual | EXTernalSpecifies the burst trigger source.
SOURce1:BURSt:NCYCles 2

Sets or queries the trigger source in burst mode for the specified channel. This command is available only in the Triggered burst mode.

enum - Returns the current burst trigger source.

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

NameTypeValuesDescription
stateenumON | OFFEnables or disables burst mode.
valueinteger-Numeric form where nonzero enables burst mode and zero disables it.
integer - State of burst mode.
SOURce1:BURSt:STATe ON

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

integer - Returns the burst mode state as an NR1 value.

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

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

Sets or queries the internal modulation frequency of FM modulation for the specified channel. Use this command when the internal modulation source is selected.

NameTypeValuesDescription
frequencyreal2 mHz - 20.00 kHzInternal modulation frequency.
qualifieroptenumMINimum | MAXimumRequests the minimum or maximum frequency value.
real (Hz) - Returns the internal modulation frequency.

Sets or queries the internal modulation frequency of FM modulation for the specified channel when the internal modulation source is selected. The frequency can be set from 2 mHz to 20.00 kHz with 1 mHz resolution.

real (Hz) - Returns the internal FM modulation frequency. With the optional qualifier, returns the minimum or maximum allowed frequency.

Sets or queries the modulating waveform of FM modulation for the specified channel. Use this command when the internal modulation source is selected.

NameTypeValuesDescription
modeenumSINusoid | SQUare | RAMP | PRNoise | USER<NR1> | EMEMory | EFILeModulating waveform for FM internal modulation.
enum - Returns the modulating waveform of FM modulation for the specified channel.
SOURce1:FM:INTernal:FREQuency 10kHz

Sets or queries the modulating waveform of FM modulation for the specified channel when the internal modulation source is selected. If EFILe is specified when no EFILe exists or it is not yet defined, the command causes an error.

enum - Returns the current modulating waveform selection.
SOURce1:FM:INTernal:FREQuency 10kHz

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

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

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 present, the command returns a blank string.

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path with forward slashes.
string - Returns the current EFILe name used as the modulating waveform, or a blank string if there is no file in mass storage.
SOURce1:FM:INTernal:FUNCtion:EFILe “SAMPLE1”

Sets the FM source for the selected channel to internal or external. The query returns the current FM source state as INT or EXT.

NameTypeValuesDescription
stateenumINTernal | EXTernalSelects whether the carrier waveform is modulated with the internal or external source.
enum - Returns the current FM source selection.
SOURce1:FM:SOURce INTernal

Returns the FM source selection for the specified source channel. INTernal means the carrier waveform is modulated with the internal source, and EXTernal means it is modulated with an external source.

enum - Returns the FM source as INT or EXT.
SOURce1:FM:SOURce INTernal

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

NameTypeValuesDescription
stateenumON | OFFON or <NR1>≠0 enables FM modulation; OFF or <NR1>=0 disables FM modulation.
integer - Returns the FM modulation state as <NR1>.
SOURce1:FM:STATe ON

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

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

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

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

Sets or queries the center frequency of sweep for the specified channel. It is always used with [SOURce[1|2]]:FREQuency:SPAN.

NameTypeValuesDescription
frequencyrealHzCenter frequency value.
qualifieroptenumMINimum | MAXimumQualifier to set or query the minimum or maximum center frequency.
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 channel specified by the header suffix is copied to the other channel.

Enables or disables the concurrent copy function for the selected source channel. When enabled, FreqLock is also enabled automatically and the two channels are adjusted synchronously with the general knob.

NameTypeValuesDescription
stateenumON | OFF | <NR1>ON or a nonzero numeric value enables concurrent copy; OFF or 0 disables it.
enum - Returns the concurrent copy state as 0 for off or 1 for on.
SOURce1:FREQuency:CONCurrent ON

Sets or queries the output waveform frequency for the specified channel. The command is available when Run Mode is set to other than Sweep; frequency range depends on waveform type, and resolution is 1 μHz or 12 digits.

NameTypeValuesDescription
frequencyreal-Output frequency value.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowed frequency.

Sets or queries the output waveform frequency for the specified channel. The command is available when Run Mode is other than Sweep; the resolution is 1 μHz or 12 digits.

NameTypeValuesDescription
frequencyreal-Output frequency value.
qualifieroptenumMINimum | MAXimumUses the minimum or maximum allowed frequency.
real - Returns the output waveform frequency for the specified channel; with a query qualifier of MINimum or MAXimum, returns the corresponding limit.

Sets or queries the frequency sweep state. Select sine, square, or ramp waveform for sweep.

NameTypeValuesDescription
modeenumCW | FIXed | SWEepSelects whether the output frequency is controlled by the fixed-frequency command or by the sweep command set.
enum - Returns the present frequency sweep state.

Sets or queries the frequency sweep state. Select sine, square or ramp waveform for sweep.

enum - Returns the current frequency sweep state.

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

NameTypeValuesDescription
frequencyoptrealHzFrequency span value.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum frequency span.
real (Hz) - Returns the frequency span.
SOURce1:FREQuency:SPAN 900 kHz

Sets or queries the frequency sweep span for the specified channel. It is always used with the corresponding frequency center command, and the allowed range depends on the selected waveform.

NameTypeValuesDescription
frequencyrealHzFrequency span value.
real (Hz) - Returns the frequency span.
SOURce1:FREQuency:SPAN 900 kHz

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

NameTypeValuesDescription
frequencyrealHzStart frequency value.
real (Hz) - The start frequency.
SOURce1:FREQuency:STARt 10kHz

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

real (Hz) - The sweep start frequency.
SOURce1:FREQuency:STARt 10kHz

Sets or queries the stop frequency of sweep for the specified channel. This command is always used with the corresponding start frequency command; the allowable stop frequency depends on the waveform selected for sweep.

Returns the stop frequency of the specified source channel. On the AFG1022, use [SOURce1].

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 for FSK modulation.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum hop frequency.

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

real (Hz) - The hop frequency of FSK modulation.

Sets or queries the internal modulation rate of FSK modulation for the specified channel. Use this command when the internal modulation source is selected.

NameTypeValuesDescription
raterealHzModulation rate.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum rate.
real (Hz) - The current modulation rate.
SOURce1:FSKey:INTernal:RATE 50Hz

Sets or queries the internal modulation rate of FSK modulation for the specified channel. Use this command when the internal modulation source is selected.

NameTypeValuesDescription
raterealHzModulation rate value with optional units Hz, kHz, or MHz.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum modulation rate.
real (Hz) - Returns the internal modulation rate.
SOURce1:FSKey:INTernal:RATE 50Hz

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

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

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

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

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

NameTypeValuesDescription
stateenumON | OFF | <NR1>Sets the FSK modulation state.
enum - Returns the state of FSK modulation.

Returns whether FSK modulation is enabled or disabled for the selected source. ON or nonzero enables FSK modulation; OFF or zero disables it.

enum - Returns the current FSK modulation state for the selected source.
SOURce1:FSKey:STATe ON

Sets or queries the EFILe name used as an output waveform. The file name must exist in the mass storage system, and the command 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 current EFILe name as <file_name>; returns a blank string if there is no file in mass storage.
SOURce1:FUNCtion:EFILe “SAMPLE1”

Sets or queries the EFILe name used as an output waveform. The file name must exist in the mass storage system; the query returns an empty string if there is no file in mass storage.

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path with forward slashes (/); case sensitive.
string - Returns the EFILe file name currently set, or an empty string if no file is in mass storage.
SOURce1:FUNCtion:EFILe “SAMPLE1”

Sets or queries the shape of the output waveform. If the specified user memory is deleted, selecting the user memory causes an error.

Returns the current output waveform function shape for the selected source. The shape can be one of the standard waveforms or a built-in arbitrary shape name.

enum - The present function shape of the selected source.

Sets or queries the phase of the output waveform for the specified channel. The value may be set in radians or degrees; if no units are specified, RAD is assumed. The command is supported only when a waveform other than DC and Noise is selected.

NameTypeValuesDescription
phaserealradPhase value to set, in radians or degrees.
qualifieroptenumMINimum | MAXimumOptional keyword to set the phase to the minimum or maximum allowed value.
real (rad) - Returns the phase value in RAD.

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, the default is RAD. This command is supported only when a waveform other than DC and Noise is selected.

NameTypeValuesDescription
phasereal-Phase value in radians or degrees.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum phase value.
real (RAD) - Returns the phase value in RAD.

Synchronizes the phase of CH 1 and CH 2 output waveforms. The arbitrary/function generator performs the same operation if you specify either SOURce1 or SOURce2.

SOURce1:PHASe:INITiate

Sets or queries the internal modulation frequency of PM modulation for the specified channel. Use this command when the internal modulation source is selected.

NameTypeValuesDescription
frequencyreal2 mHz - 20.00 kHzInternal modulation frequency.
qualifieroptenumMINimum | MAXimumReturns or sets the minimum or maximum value.
real (Hz) - The internal modulation frequency.

Sets or queries the internal modulation frequency of PM modulation for the specified channel. Use this command when the internal modulation source is selected.

real (Hz) - Returns the internal modulation frequency.

Queries the phase modulation deviation for the specified source. If a qualifier is supplied, it can return the minimum or maximum deviation.

NameTypeValuesDescription
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum phase deviation value.
real (RAD) - Returns the phase deviation value.
SOURce1:PM:DEViation MAXimum

Sets or queries the modulating waveform of PM modulation for the specified channel. Use this command when the internal modulation source is selected; selecting EFILe when no file is defined causes an error.

NameTypeValuesDescription
modeenumSINusoid | SQUare | RAMP | PRNoise | USER<NR1> | EMEMory | EFILeModulating waveform to use for PM internal modulation.
enum - Returns the current modulating waveform of PM modulation for the specified channel.

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

enum - Returns the selected internal PM modulating waveform.

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

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

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

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path with forward slashes.
string - The file name currently used as the modulating waveform, or an empty string if there is no file in mass storage.
SOURce1:PM:INTernal:FUNCtion:EFILe “SAMPLE1”

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

Selects whether phase modulation uses an internal or external source. The query returns INT or EXT.

enum - Returns the current PM source selection.

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

NameTypeValuesDescription
stateenumON | OFF | <NR1>ON or <NR1>≠0 enables PM modulation; OFF or <NR1>=0 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.
SOURce1:PM:STATe ON

Sets or queries the internal modulation rate of PSK modulation for the specified channel. Use this command when the internal modulation source is selected.

SOURce1:PSKey:DEViation MAXimum

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

NameTypeValuesDescription
deviationreal0 PI - +1 PIPhase deviation in radians.
deviationreal0 - +180Phase deviation in degrees.
qualifieroptenumMINimum | MAXimumRequests the minimum or maximum allowed deviation.
real - The current deviation value.
SOURce1:PSKey:DEViation MAXimum

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

NameTypeValuesDescription
deviationreal0 PI - +1 PIPhase deviation in radians when units are omitted; RAD is selected automatically.
deviationreal0 - +180Phase deviation in degrees.
qualifierenumMINimum | MAXimumSelects the minimum or maximum allowed deviation when used with the setter or query syntax.
real - Returns the peak frequency deviation.
SOURce1:PSKey:DEViation MAXimum

Sets or queries the internal PSK modulation rate for the specified source channel. The rate is specified as a numeric value with optional units.

NameTypeValuesDescription
raterealHzModulation rate.
real (Hz) - Returns the internal PSK modulation rate.
SOURce1:PSKey:INTernal:RATE 50Hz

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

NameTypeValuesDescription
modeoptenumINTernal | EXTernalSelects internal or external modulation source.
enum - Returns the current modulation source.
SOURce1:PSKey:SOURce INTernal
SOURce1:PSKey:SOURce?

Sets or queries the source of modulation signal for PSK modulation on the specified channel. Internal uses the carrier waveform as the modulation source; external uses an external source.

enum - Returns the current modulation source.

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

NameTypeValuesDescription
stateoptenumINTernal | EXTernalSelects whether the carrier waveform is modulated with an internal or external source.
enum - Returns the current modulation source setting.

Enables or disables PSK modulation for the specified source channel. The query returns the state of PSK modulation.

NameTypeValuesDescription
stateenumON | OFFEnables or disables PSK modulation.
integer - Returns the state of PSK modulation as <NR1>.
SOURce1:PSKey:STATe ON

Sets or queries the duty cycle of the pulse waveform for the specified channel. For frequencies less than 1 MHz, the duty cycle is adjustable from 0.1% to 99.9% in 0.1% steps; above 1 MHz it is fixed at 50%.

Sets or queries the duty cycle of the pulse waveform for the specified source channel. The value is expressed in percent.

NameTypeValuesDescription
percentrealPCTDuty cycle value.
real (PCT) - Duty cycle in percent.
SOURce1:PULSe:DCYCle 80.5

Sets or queries the internal modulation frequency of PWM modulation for the specified channel. Use this command when the internal modulation source is selected.

NameTypeValuesDescription
frequencyreal2 mHz - 20.00 kHzInternal modulation frequency.
qualifieroptenumMINimum | MAXimumReturns or sets the minimum or maximum frequency keyword.

Sets or queries the internal modulation frequency of PWM modulation for the specified channel when the internal modulation source is selected. The frequency range is 2 mHz to 20.00 kHz with 1 mHz resolution.

real (Hz) - Returns the internal modulation frequency of PWM modulation for the specified channel.

Sets or queries the modulating waveform used for PWM internal modulation on the specified channel. Use this command only when the internal modulation source is selected; specifying EFILe when no EFILe is defined causes an error.

NameTypeValuesDescription
functionenumSINusoid | SQUare | RAMP | PRNoise | USER<NR1> | EMEMory | EFILeSelects the PWM internal modulation waveform.
enum - Returns the currently selected modulating waveform.

Sets or queries the modulating waveform of PWM modulation for the specified channel. Use it when the internal modulation source is selected; specifying EFILe without a defined file causes an error.

NameTypeValuesDescription
functionenumSINusoid | SQUare | RAMP | PRNoise | USER<NR1> | EMEMory | EFILeModulating waveform to use for PWM modulation.
enum - Returns the modulating waveform setting.

Sets or queries the EFILe name used as a modulating waveform for PWM modulation. The file name must exist 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, including path with forward slashes (/).
string - The selected EFILe file name, or a blank string if there is no file in mass storage.
SOURce1:PWM:INTernal:FUNCtion:EFILe “SAMPLE1”

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

NameTypeValuesDescription
file_namestring-File name in the mass storage system, including path with forward slashes (/).
string - The EFIle name currently used as the modulating waveform, or a blank string if there is no file in mass storage.
SOURce1:PWM:INTernal:FUNCtion:EFILe “SAMPLE1”

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

Selects the PWM modulation source for the specified channel. The query returns whether the modulating source is internal or external.

enum - Returns the PWM source as internal or external.
SOURce1:PWM:SOURce INTernal

Enables or disables PWM modulation. The query returns the state of PWM modulation; only a pulse waveform should be selected as the carrier waveform for PWM.

NameTypeValuesDescription
stateenumON | OFF | <NR1>ON or <NR1>≠0 enables PWM modulation; OFF or <NR1>=0 disables PWM modulation.

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

integer - Returns the state of PWM modulation as an NR1 value.

Sets or queries the PWM deviation in percent for the specified channel. The setting range must satisfy limits based on pulse width, pulse period, and edge times.

NameTypeValuesDescription
percentrealPCTPWM deviation percentage.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum allowable deviation.
real (PCT) - The PWM deviation in percent.
SOURce1:PWM[:DEViation]:DCYCle 5.0

Sets or queries the PWM deviation in percent for the specified channel.

real (PCT) - The PWM deviation in percent.
SOURce1:PWM[:DEViation]:DCYCle 5.0

Sets or queries the trigger source in sweep mode for the specified channel. The query returns the current trigger source as TIM, MAN, or EXT.

NameTypeValuesDescription
sourceoptenumTIMer | MANual | EXTernalSelects the trigger source for sweep mode.
enum - Returns the current sweep trigger source.
SOURce1:SWEep:SOURce EXTernal

Sets or queries the trigger source in sweep mode for the specified channel.

enum - Returns the sweep trigger source as TIM, MAN, or EXT.
SOURce1:SWEep:SOURce EXTernal

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

NameTypeValuesDescription
spacingenumLINear | LOGarithmicSelects the sweep spacing type.
enum - Returns the sweep spacing type for the specified channel.

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

enum - Returns the sweep spacing type for the specified channel.

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

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

Returns the sweep time for the specified channel. The sweep time does not include hold time or return time.

real (s) - The sweep time in seconds.
SOURce1:SWEep:TIME 100ms

Sets or queries the offset level for the specified channel.

NameTypeValuesDescription
voltagerealmV|VOffset voltage level.
qualifieroptenumMINimum | MAXimumUse MINimum or MAXimum in place of a numeric offset value.
real (mV|V) - Offset voltage level.
SOURce1:VOLTage:LEVel:IMMediate:OFFSet 500mV

Sets or queries the offset level for the specified channel.

NameTypeValuesDescription
voltagerealmV|VOffset voltage level.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum offset value.
real - Returns the offset voltage level.
SOURce1:VOLTage:LEVel:IMMediate:OFFSet 500mV

Sets or queries the output amplitude for the specified channel. The output amplitude units are set using the bezel menu selection.

NameTypeValuesDescription
amplituderealVppOutput amplitude value.
qualifieroptenumMINimum | MAXimumSelects the minimum or maximum amplitude.
real (Vpp) - Returns the amplitude setting.

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 - Error/event number and error/event description from the Error/Event queue.
SYSTEM:ERROR:NEXT?

Returns the names of user waveform memory and edit memory.

string - A series of comma-separated strings, each enclosed in quotation marks, naming user waveform memory and edit memory.
TRACE|DATA:CATALOG?
might return “USER0”,”USER4”,”EMEM”
:TRACe|DATA:COPYset / query

Copies the contents of edit memory to a specified user waveform memory, or copies a user waveform memory to edit memory.

NameTypeValuesDescription
trace_nameinteger0 - 255Specifies the user waveform memory location to copy from when used with EMEMory as the destination.
DATA:COPY USER0,EMEMory

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

NameTypeValuesDescription
memoryenumEMEMoryEdit memory destination for the waveform data.
binary_block_datablock-Waveform data in binary format.
block - Binary block data.
DATA:DATA EMEMory,#42000<DAB><DAB>...<DAB>

Sets or queries the data value at a specified point in the edit memory.

NameTypeValuesDescription
EMEMoryenumEMEMoryEdit memory target.
pointinteger-Specified point in the edit memory.
binary_block_data - Returns the binary block data.

Sets or queries the data value at a specified point in the edit memory.

NameTypeValuesDescription
EMEMoryenumEMEMoryEdit memory target.
pointinteger-Point in edit memory to access.
binary_block_data - Binary block data returned by the query.

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

NameTypeValuesDescription
EMEMory--Edit memory destination for the waveform data.
binary_block_datablock-Waveform data in binary format.
block - Binary block data.
TRACe|DATA[:DATA] EMEMory,#42000<DAB><DAB>...<DAB>

Sets or queries the number of data points for the waveform created in the edit memory.

NameTypeValuesDescription
pointsoptinteger2 - 8192Number of points for the waveform created in the edit memory.
integer - Returns the number of data points for the waveform created in the edit memory.

Sets or queries the number of data points for the waveform created in the edit memory.

NameTypeValuesDescription
EMEMoryenum-Edit memory location identifier.
pointsoptinteger2 - 8192Number of points for the waveform created in the edit memory.
qualifieroptenumMINimum | MAXimumReturns or sets the minimum or maximum number of points.
integer - Returns the number of data points for the waveform created in the edit memory, or the minimum/maximum value when queried with MIN or MAX.