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.
| Property | Description |
|---|---|
CenterFrequency |
Used on the |
Driver |
Used on the |
IQData |
Used on the |
LoopCount |
Used on the |
OutputPower | Used on the |
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 |
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)