List of available instrument drivers for Quick-Control interfaces
drivers(rf) lists the drivers for RF signal generator
rf. It returns a list of drivers for the Quick-Control
RF Signal Generator, Quick-Control Oscilloscope, or Quick-Control Function
Generator objects. It also lists instrument model information for each
List Drivers and Connect to RF Signal Generator
drivers function can list drivers
available for any of the Quick-Control interface objects: RF signal
oscilloscope), or function generator
fgen). This example uses Quick-Control RF Signal
Generator, but the function also works in the same way for the other two
Create an RF signal generator object without assigning the resource or driver.
rf = rfsiggen;
List the drivers.
ans = Driver: AgRfSigGen_SCPI Supported Models: E4428C, E4438C Driver: RsRfSigGen_SCPI Supported Models: SMW200A, SMBV100A, SMU200A, SMJ100A, AMU200A, SMATE200A Driver: AgRfSigGen Supported Models: E4428C,E4438C,N5181A,N5182A,N5183A,N5171B,N5181B,N5172B N5182B,N5173B,N5183B,E8241A,E8244A,E8251A,E8254A,E8247C
In this case, it finds the drivers for a Keysight™ (formerly Agilent®) SCPI-based RF signal generator, a Rohde & Shwartz SCPI-based generator, and another Keysight generator. You can see that it lists supported models in each case.
Set the RF signal generator resource using the
Resource property, which is the VISA resource
rf.Resource = 'TCPIP0::172.28.22.99::inst0::INSTR';
Set the RF signal generator driver using the
property. The driver name came from using the
function in step 2.
rf.Driver = 'AgRfSigGen';
You can now connect to the instrument.