SCPI for the Arbitrary Waveform Generator

The eLABin1 four-channel Arbitrary Waveform Generator (AWG) can be remotely controlled by SCPI commands.

Below are the SCPI commands for each of the subsystems of the AGW listed in tables.


AWG

Communication with the device

Table 1. Communication with the AWG
Command Description
AWG Switches to the AWG from the main screen or from another instrument

Common commands

The following Common Commands apply to the entire configuration of the Arbitrary Waveform generator only when the Arbitrary Waveform generator is the instrument in foreground. As Common Commands are based in the current context, they apply to the current instrument, when the current view is the main screen. Commands apply for the entire configuration of the eLABin1.

Table 2. Common Commands
Command Description
AWG:*IDN? Returns the SCPI identification string of the Arbitrary Waveform Generator.
AWG:*RST Resets the Arbitrary Waveform Generator
AWG:*SAV {A|B|C|D} Saves the Arbitrary Waveform Generator state on the selected memory slot.
AWG:*WAI The Wait-to-Continue (WAI) command causes the waveform generator to wait until all pending commands are completed, before executing any other commands.

Basic waveform commands

Table 3. Basic Waveform Commands
Command Example 1 Example 2 Description
AWG:Channel{1|2|3|4}:OUTPut {ON|OFF} AWG:C1:OUTP ON AWG:C4:OUTP OFF Turns on/off the ouput in the specified channel.
AWG:Channel{1|2|3|4}:WaVeForM {SINE|SQUARE|PULSE|RAMP} AWG:C2:WVFM SINE AWG:C2:WVFM RAMP Sets the waveform in the specified channel.
AWG:Channel{1|2|3|4}:FREQuency <number>{Hz|KHz|MHz|GHz} AWG:C2:FREQ 1MHZ AWG:C2:FREQ 10KHZ Sets the waveform frequency in the specified channel, if wavetype is noise, you can not set this parameter
AWG:Channel{1|2|3|4}:AMPlitude <number>{V|mV|uV} AWG:C4:AMP 1V AWG:C2:AMP 0.5V Sets the waveform Amplitude in the specified channel.
AWG:Channel{1|2|3|4}:OFFSet <number>{V|mV|uV} AWG:C2:OFFS .3V AWG:C3:OFFS 200mV Sets the waveform Offset in the specified channel.
AWG:Channel{1|2|3|4}:PHaSE <number>{DEG} AWG:C3:PHSE 20DEG AWG:C2:PHSE 15DEG Sets the waveform Phase in the specified channel, if wavetype is noise, you can not set this parameter.
AWG:Channel{1|2|3|4}:DUTY <number>{%} AWG:C2:DUTY 30 AWG:C1:DUTY 20 Sets the waveform Duty in the specified channel, only square waveform can set this parameter.
AWG:Channel{1|2|3|4}:PulseWIDth <number>{s|ms|us|ns} AWG:C1:PWID 200mS AWG:C2:PWID 500mS Sets the pulse width in the specified channel, only pulse waveform can set this parameter.
AWG:Channel{1|2|3|4}:EDGE <number>{s|ms|us|ns} AWG:C4:EDGE 20mS AWG:C1:EDGE 100mS Sets the edge time in the specified channel, only pulse waveform can set this parameter.
AWG:Channel{1|2|3|4}:SYMmetry <number>{%} AWG:C3:SYM 40 AWG:C1:SYM 20 Sets the symmetry in the specified channel, only ramp waveform can set this parameter.

Modulate Wave commands

Table 4. Modulate Wave Commands
Command Example 1 Example 2 Description
AWG:Channel{1|2|3|4}:MoDulateWaVe {ON|OFF} AWG:C2:MDWV ON AWG:C3:MDWV OFF Turns on/off the modulate wave mode.
AWG:Channel{1|2|3|4}:MoDulateWaVe {AM|FM|PM|PWM} AWG:C4:MDWV AM AWG:C1:MDWV FM Sets the modulation type in the specified channel.
AWG:Channel{1|2|3|4}:MoDulateWaVe:AM:SouRCe {INT|EXT} AWG:C1:MDWV:AM:SRC INT AWG:C2:MDWV:AM:SRC EXT Sets the AM modulation source.
AWG:Channel{1|2|3|4}:MoDulateWaVe:AM:MDSP {SINE|SQUARE} AWG:C2:MDWV:AM:MDSP SINE AWG:C3:MDWV:AM:MDSP SQUARE AM modulation wave. Only AM signal source is set to INT.
AWG:Channel{1|2|3|4}:MoDulateWaVe:AM:FREQuency <number>{Hz|KHz|MHz|GHz} AWG:C1:MDWV:AM:FREQ 20kHZ AWG:C1:MDWV:AM:FREQ 1MHZ AM frequency. Only AM signal source is set to INT.
AWG:Channel{1|2|3|4}: MoDulateWaVe:FM:SouRCe {INT|EXT} AWG:C4:MDWV:FM:SRC INT AWG:C4:MDWV:FM:SRC EXT Sets the FM modulation source.
AWG:Channel{1|2|3|4}: MoDulateWaVe:FM:MDSP {SQUARE|RAMP} AWG:C2:MDWV:FM:MDSP SQUARE AWG:C2:MDWV:FM:MDSP RAMP FM modulation wave. Only FM signal source is set to INT.
AWG:Channel{1|2|3|4}:MoDulateWaVe:FM:FREQuency <number>{Hz|KHz|MHz|GHz} AWG:C3:MDWV:FM:FREQ 1kHZ AWG:C3:MDWV:AM:FREQ 20HZ FM frequency. Only FM signal source is set to INT.
AWG:Channel{1|2|3|4}:MoDulateWaVe:FM:FRequencyDEViation <number>{Hz|KHz|MHz|GHz} AWG:C2:MDWV:FM:FRDEV 100kHZ AWG:C2:MDWV:FM:FRDEV 500HZ FM frequency deviation. Only FM signal source is set to INT.
AWG:Channel{1|2|3|4}: MoDulateWaVe:PM:SouRCe {INT|EXT} AWG:C3:MDWV:PM:SRC INT AWG:C1:MDWV:PM:SRC EXT Sets the PM modulation source.
AWG:Channel{1|2|3|4}: MoDulateWaVe:PM:MDSP {RAMP|PULSE} AWG:C2:MDWV:PM:MDSP RAMP AWG:C2:MDWV:PM:MDSP PULSE PM modulation wave. Only PM signal source is set to INT.
AWG:Channel{1|2|3|4}:MoDulateWaVe:PM:FREQuency <number>{Hz|KHz|MHz|GHz} AWG:C1:MDWV:PM:FREQ 100HZ AWG:C1:MDWV:PM:FREQ 2KHZ PM frequency. Only PM signal source is set to INT.
AWG:Channel{1|2|3|4}:MoDulateWaVe:PM:AMPLitude <number>{V|mV|uV} AWG:C3:MDWV:PM:AMP 100mV AWG:C3:MDWV:PM:AMP 300mV PM Amplitude. Only PM signal source is set to INT.
AWG:Channel{1|2|3|4}:MoDulateWaVe:PM:OFFSet <number>{V|mV|uV} AWG:C3:MDWV:PM:OFFS 200mV AWG:C2:MDWV:PM:OFFS 100mV PM Offset. Only PM signal source is set to INT.
AWG:Channel{1|2|3|4}:MoDulateWaVe:PM:PHaSE <number>{DEG} AWG:C1:MDWV:PM:PHSE 20DEG AWG:C3:MDWV:PM:PHSE 40DEG PM phase. Only PM signal source is set to INT.
AWG:Channel{1|2|3|4}: MoDulateWaVe:PWM:SouRCe {INT|EXT} AWG:C1:MDWV:PWM:SRC INT AWG:C1:MDWV:PWM:SRC EXT Sets the PWM modulation source
AWG:Channel{1|2|3|4}: MoDulateWaVe:PWM:MDSP {PULSE|RAMP} AWG:C4:MDWV:PWM:MDSP PULSE AWG:C4:MDWV:PM:MDSP RAMP PWM modulation wave. Only carry wave is PULSE wave.
AWG:Channel{1|2|3|4}:MoDulateWaVe:PWM:FREQuency <number>{Hz|KHz|MHz|GHz} AWG:C1:MDWV:PWM:FREQ 10HZ AWG:C1:MDWV:PWM:FREQ 12KHZ PWM frequency. Only carry wave is PULSE wave.
AWG:Channel{1|2|3|4}:MoDulateWaVe:CARRier:WaVeTyPe {RAMP|SINE} AWG:C2:MDWV:CARR:WVTP RAMP AWG:C2:MDWV:CARR:WVTP SINE Sets the carrier wavetype.
AWG:Channel{1|2|3|4}:MoDulateWaVe:CARRier:FREQuency <number>{Hz|KHz|MHz|GHz} AWG:C2:MDWV:CARR:FREQ 20HZ AWG:C2:MDWV:CARR:FREQ 2KHZ Sets the carrier frequency value.
AWG:Channel{1|2|3|4}:MoDulateWaVe:CARRier:AMP <number>{V|mV|uV} AWG:C3:MDWV:CARR:AMP 200mV AWG:C3:MDWV:CARR:AMP 500mV Sets the carrier amplitude value.

Sweep Wave commands

Table 5. Sweep Wave Commands
Command Example 1 Example 2 Description
AWG:Channel{1|2|3|4}:SWEep {ON|OFF} AWG:C3:SWE ON AWG:C1:SWE OFF Turns on/off the sweep mode.
AWG:Channel{1|2|3|4}:SWEep:STARt <number>{Hz|KHz|MHz|GHz} AWG:C4:SWE:STAR 200HZ AWG:C4:SWE:STAR 2KHZ Sets the start frequency in sweep mode.
AWG:Channel{1|2|3|4}:SWEep:STOP <number>{Hz|KHz|MHz|GHz} AWG:C2:SWE:STOP 1KHZ AWG:C1:SWE:STOP 340HZ Sets the stop frequency in sweep mode.
AWG:Channel{1|2|3|4}:SWEep:SPAN <number>{Hz|KHz|MHz|GHz} AWG:C1:SWE:SPAN 500KHZ AWG:C1:SWE:SPAN 200HZ Sets the span frequency in sweep mode.
AWG:Channel{1|2|3|4}:SWEep:CENTer <number>{Hz|KHz|MHz|GHz} AWG:C3:SWE:CENT 1MHZ AWG:C3:SWE:SPAN 600HZ Sets the center frequency in sweep mode.
AWG:Channel{1|2|3|4}:SWEep:TIME <number>{s|ms|us|ns} AWG:C1:SWE:TIME 200mS AWG:C1:SWE:TIME 100mS Sets the sweep time .
AWG:Channel{1|2|3|4}:SWEep:POINt <number>{PTS} AWG:C2:SWE:POIN 20 AWG:C2:SWE:POIN 40 Sets the total frequency points in sweep mode.
AWG:Channel{1|2|3|4}:SWEep:DWELl <number>{s|ms|us|ns} AWG:C4:SWE:DWEL 0.3S AWG:C4:SWE:DWELl 0.5S Sets the Dwell time in sweep mode.
AWG:Channel{1|2|3|4}:SWEep:SPACing {LIN|LOG} AWG:C1:SWE:SPAC LIN AWG:C1:SWE:SPAC LOG Sets the spacing between frequency points (linear or logaritmic)
AWG:Channel{1|2|3|4}:SWEep:TRIGger:SOURce{SING|AUTO} AWG:C3:SWE:TRIG:SOUR SING AWG:C3:SWE:TRIG:SOUR AUTO Sets the frequency sweep mode (single or periodic).

Burst Wave commands

Table 6. Burst Wave Commands
Command Example 1 Example 2 Description
AWG:Channel{1|2|3|4}:BURST {ON|OFF} AWG:C3:BURST ON AWG:C4:BURST OFF Turns on/off the burst mode.
AWG:Channel{1|2|3|4}:BURST:PeRioD <number>{s|ms|us|ns} AWG:C2:BURST:PRD 0.2S AWG:C2:BURST:PRD 500mS Sets the burst period.
AWG:Channel{1|2|3|4}:BURST:STartPhaSe <number>{DEG} AWG:C4:BURST:STPS 20DEG AWG:C4:BURST:STPS 30DEG Sets the burst phase.

Other Control Commands

Table 7. Other Control Commands
Command Example 1 Example 2 Description
AWG:LOAD:STATe {A|B|C|D} AWG:LOAD:STAT A AWG:LOAD:STAT C Loads the storaged data on the specified memory state.

AWG Query Commands

Table 8. AWG Query Commands
Command Example Return Description
AWG:Channel{1|2|3|4}:WaVeForM? AWG:C2:WVFM? AWG:C2 WVFM SINE; FREQ 200KHZ; AMP 200mV; OFFS 0mV; PHSE 30 DEG Asks for the waveform parameters configured on the specified channel (Waveform, frequency, amplitude, etc).
AWG:Channel{1|2|3|4}:MoDulateWaVe? AWG:C1:MDWV? AWG:C1:MDWV FM FREQ 20KHZ; SRC INT; MDSP SQUARE; FRDEV 1KHZ Asks for the modulated waveform parameters configured on the specified channel.
AWG:Channel{1|2|3|4}:SWEeep? AWG:C2:SWE? AWG:C2:SWE ON; STAR 200HZ; STOP 1KHZ; SPAN 500KHZ; CENT 1MHZ: TIME 200mS; POIN 20; DWEL 0.3S; SPAC LIN; SOUR SING Asks for the information configured in the sweep wave mode.
AWG:Channel{1|2|3|4}:BURST? AWG:C2:BURST? AWG:C2:BURST ON; PRD 0.2S; STPS 20DEG Asks for the information configured in the burst wave mode.

Preset Values

Table 9. Preset values
Variable Preset Value
Channel 1 Channel 2 Channel 3 Channel 4
Channel State ON ON ON ON
Waveform SINE SQUARE SINE SINE
Frequency 5MHz 5MHz 5MHz 5MHz
Amplitude 500mV 500mV 500mV 500mV
Phase
Offset 0 V 0 V 0 V 0 V
Duty 50% 50% 50% 50%
Symmetry 50% 50% 50% 50%
Pulse Width 5µS 5µS 5µS 5µS
Edge Time 1µS 1µS 1µS 1µS