Main Content

Quick-Control RF Signal Generator Properties

The Quick-Control RF Signal Generator can use the following properties on the rfsiggen, download, or start functions. See the examples to learn how to set the properties.

PropertyDescription
CenterFrequency

Used on the start function, this argument is the center frequency for the waveform, specified as a double in Hz.

Driver

Used on the rfsiggen function, this argument specifies the underlying driver used to communicate with an instrument as a string. It is optional, and, if not specified, the driver is auto-detected.

IQData

Used on the download function, this argument specifies the IQ data to use in the download.

LoopCount

Used on the start function, this argument is the number of times the waveform should be repeated, specified as a double.

OutputPower

Used on the start function, this argument is the output power, specified as a double in dBm.

Resource

The VISA resource string for your instrument, specified as a string. Set this before connecting to the instrument. It is optional during object creation, and can be used if you know the resource string for your instrument. Otherwise you can set it after object creation.

SampleRate

Used on the download function, this argument specifies the sample rate to use in the download.

Set Driver or Resource During Object Creation

You can optionally set the Driver and Resource property values during the rfsiggen object creation.

The Driver property specifies the underlying driver used to communicate with an instrument, and is specified as a string. It is optional, and if not specified the driver is auto-detected.

The Resource property specifies the VISA resource string for your instrument, and is specified as a string. It is optional and can be used if you know the resource string for your instrument.

This example shows how to create the RF Signal Generator object rf and specify the resource string shown and a driver named AgRFSigGen.

rf = rfsiggen('TCPIP0::172.28.22.99::inst0::INSTR','AgRFSigGen')

Set IQ Data and Sample Rate for Download

You can set the IQData and SampleRate property values during the download operation.

This example shows how to create the RF Signal Generator object, assign values to the properties, and then perform the download.

rf = rfsiggen('TCPIP0::172.28.22.99::inst0::INSTR','AgRFSigGen')
IQData = (-0.98:0.02:1) + 1i*(-0.98:0.02:1);
SampleRate = 500000;
download(rf, IQData, SampleRate)

Set Signal Generation Properties

You can set property values that are used when you start the RF signal generator signal output and modulation output with the start function.

This example shows how to create the RF Signal Generator object, assign values to the properties, and then perform the signal generation.

rf = rfsiggen('TCPIP0::172.28.22.99::inst0::INSTR','AgilentRFSigGen')
CenterFrequency = 2000000
OutputPower = 0
LoopCount = inf
start(rf, CenterFrequency, OutputPower, LoopCount)

Related Topics