142 Agilent N5181A/82A MXG Signal Generators SCPI Command Reference
Component Test Digital Commands
Dual ARB Subsystem–Option 651/652/654 ([:SOURce]:RADio[1]:ARB)
:GENerate:SINE
Supported N5182A with Option 651, 652 or 654
[:SOURce]:RADio[1]:ARB:GENerate:SINE ["<file_name>"],[<osr>],[<scale>],
[I|Q|IQ]
This command creates a sine wave waveform file and saves it in the signal generator’s volatile
waveform memory (WFM1).
"<file_name>" This variable names the file used to save the generated sine wave data. If no
[“<file_name>”] parameter is defined, the default file_name is: “SINE_TEST_WFM”.
<osr> This variable sets the oversample ratio, which must be an even number and ≥ 4.
The <osr> variable is expressed in samples. If the oversample ratio is < 60 (the
minimum number of samples or I/Q points required for a waveform), multiple
waveform periods are generated to create a waveform file with ≥ 60 samples. The
number of periods created is 60 ÷ <osr> (quotient will round up to an integer
value). A waveform with an oversample ratio ≥ 60 has one period. If no [“<osr>”]
parameter is defined, the default value is: 200.
<scale> This variable sets the scale factor for the waveform. The scale factor is a real
number from zero to one. If no [“<scale>”] parameter is defined, the default value
is: 1.
I|Q|IQ Selects I, Q, or I and Q paths for the waveform data. Sinewave data is generated
and applied to the I path if the I path is selected; Q data are set to zeros. Sine
data is generated and applied to the Q path if the Q path is selected; I data are
set to zeros. If the I and Q paths are selected, sinewave data are applied to the I
and Q paths.
Example
:RAD:ARB:GEN:SINE "Sine_Wave",60,.5,IQ
The preceding example generates an I/Q sine wave and saves the data to a file named Sine_Wave.
The oversampling ratio is 60, the scaling is set for 50%, and the data is applied to both the I and Q
paths.
The signal generator’s baseband option and available baseband memory determine the maximum
number of samples for the waveform.
:HEADer:CLEar
Supported N5182A with Option 651/652/654
[:SOURce]:RADio[1]:ARB:HEADer:CLEar
This command clears the header information from the file header used by this modulation format (i.e.
all file header fields are set to unspecified).
Range Standard: 4E0 – 8E6
OSR Option 019: 4E0 – 64E6
Scale: 0–1