fgen
Connection to Quick Control function generator instrument
Description
The Quick Control function generator can be used for any function generator that uses an underlying IVI-C driver. You do not have to directly deal with the underlying driver.
For information on the prerequisites for using fgen, see Quick-Control Function Generator Requirements.
Creation
Description
myFGen = fgen creates an object to connect to your function
generator. Without a specified resource, the fgen function does not
automatically connect to your instrument, but you can call the resources and drivers
functions on the object to learn what is available on your system. Then you connect to the
function generator using the connect function.
myFGen = fgen( creates a connection
to the function generator with the specified resource string,
resource)resource. The connection is made using the default driver for the
device; so there is no need for a separate call to the connect function. This is convenient when you have only one applicable
driver.
myFGen = fgen(
creates a connection to the function generator with the specified resource string,
resource,driver)resource, and specified driver, driver. This
allows you to select from among multiple possible drivers. The object automatically
connects to the instrument; so there is no need for a separate call to the connect function.
Input Arguments
Properties
Object Functions
Use these object functions with any Quick Control interface.
drivers | List of available instrument drivers for Quick-Control interfaces |
resources | List of available instrument resources for Quick-Control interfaces |
connect | Connect device object to instrument |
disconnect | Disconnect device object from instrument |
Use these object functions with a Quick Control function generator.
selectChannel | Specify channel for function generator output |
selectWaveform | Specify arbitrary waveform for function generator output |
downloadWaveform | Download arbitrary waveform to function generator |
removeWaveform | Remove arbitrary waveform from function generator memory |
enableOutput | Enable function generator channel output |
disableOutput | Disable function generator channel output |
reset | Reset RF spectrum analyzer to factory state |
Examples
Version History
Introduced in R2012a