
Using the Instrument Control Toolbox
1MA171_5e Rohde & Schwarz How to use Rohde & Schwarz Instruments in MATLAB
®
7
After installing your specific VXIplug&play instrument driver, the tmtool gives you a
possibility to verify the installation (see section 2.3). The installation can also be
verified via the command instrhwinfo('vxipnp', 'INSTRUMENT_DRIVER'), where
INSTRUMENT_DRIVER is the driver name. For example, a successfully installed
rsspecan instrument driver can look like this:
>
> instrhwinfo('vxipnp', 'rsspecan')
ans =
Manufacturer: 'Rohde & Schwarz GmbH'
Model: 'Rohde&Schwarz Spectrum Analyzer'
DriverVersion: '1.0'
DriverDllName: 'C:\VXIPNP\WINNT\bin\rsspecan_32.dll'
2.2 Installing MATLAB Instrument Drivers
The command makemid('driver', 'filename') creates a MATLAB
®
instrument driver from
the instrument driver’s DLL description
3
, where 'driver' is the original VXIplug&play
driver name identified by instrhwinfo or the Test & Measurement Tool (see section 2.1).
For example, the RsSpecAn instrument driver can be imported using the following
command:
>> makemid('rsspecan', 'matlab_rsspecan_driver')
In the current working directory, the MATLAB
®
instrument driver file (extension: .mdd)
will be created from the specified VXIplug&play instrument driver.
Figure 1: Creating a MATLAB
®
instrument driver from a VXIplug&play instrument driver. The result of
this process is highlighted.
3
The Instrument Control Toolbox uses the API information of the VXIplug&play
instrument driver stored in the VXIplug&play function panel (extension: .fp) file.
Commentaires sur ces manuels