Main Content

rfsiggen

Create Quick-Control RF Signal Generator object

Description

example

rf = rfsiggen() creates the RF signal generator object rf to communicate with an RF signal generator instrument. You must specify a resource or a resource and driver later.

example

rf = rfsiggen(Resource) additionally specifies the Resource, and connects it to the RF signal generator instrument designated by the resource. This is the VISA resource string for the instrument.

example

rf = rfsiggen(Resource, Driver) additionally specifies the Driver, which is the underlying driver to use with the instrument. If it is not specified, the driver is auto-detected.

Examples

collapse all

You can create the rfsiggen object without setting the resource, and then set it after object creation.

Create the RF Signal Generator object with no arguments.

rf = rfsiggen()

Find available resources using the resources function.

targets = resources(rf)

It returns a list of possible VISA resource strings, for example TCPIP0::172.28.22.99::inst0::INSTR.

Set the RF signal generator resource using the Resource property.

rf.Resource = 'TCPIP0::172.28.22.99::inst0::INSTR';

Connect to the instrument. When you assign the resource after object creation, you need to explicitly connect to the instrument.

connect(rf);

You can create the rfsiggen object and set the resource and driver during object creation. If those properties are valid, the object automatically connects to the instrument.

Create the RF signal generator object and connect using the specified resource string and driver.

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

Input Arguments

collapse all

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

Example: rf = rfsiggen('TCPIP0::172.28.22.99::inst0::INSTR')

Data Types: char | string

Underlying driver to use with the instrument, specified as a string. Set this before connecting to the instrument. If it is not specified, the driver is auto-detected.

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

Data Types: char | string

Version History

Introduced in R2017b