Main Content

download

Downloads arbitrary waveform to RF signal generator

Description

download(rf, IQData, SampleRate) downloads an arbitrary waveform to the RF signal generator, rf. It accepts a complex vector of doubles containing the IQData and a double defining the SampleRate of the signal.

example

Examples

collapse all

You can download a waveform to your rfsiggen object and assign the IQData and SampleRate to use.

Create an rfsiggen object to communicate with an RF signal generator using the VISA resource string and driver associated with your own instrument.

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

When you designate the Resource and Driver properties during object creation, it automatically connects to the instrument.

Assign the IQData and SampleRate variables to use in the download.

IQData = (-0.98:0.02:1) + 1i*(-0.98:0.02:1);
SampleRate = 800000;

Perform the download.

download(rf, IQData, SampleRate)

Input Arguments

collapse all

IQ data to use in the download, specified as a vector of doubles. This example downloads the data to the RF Signal Generator object rf using the specified IQ data and sample rate.

Example: download(rf, IQData, SampleRate)

Data Types: double
Complex Number Support: Yes

Sample rate of the signal, specified as a double. This example downloads the data to the RF signal generator object rf using the specified IQ data and sample rate.

Example: download(rf, IQData, SampleRate)

Data Types: double

Version History

Introduced in R2017b