Documente Academic
Documente Profesional
Documente Cultură
M. Weiss / J. Pliquett
Overview
Table of Contents
1 Overview.............................................................................................. 3
2 Software Features............................................................................... 3
8 Additional Information........................................................................ 9
Overview
1 Overview
This application note provides a MATLAB toolbox for remote control of R&S
instruments, such as a spectrum analyzer, via a LAN (or GPIB) interface.
MATLAB is a high-level technical computing language and interactive environment for
algorithm development, data visualization, data analysis and numeric computation,
which facilitates the rapid solution to many technical computing problems.
Notes
The Signal Analyzer R&S FSQ is abbreviated to FSQ for the remainder of this
Application Note. In the following "FSQ" will be used as a synonym for all signal
spectrum and network analyzers listed on the cover page of this application note.
Trademarks
MATLAB is a trademark of The MathWorks, Inc..
Other product and company names mentioned herein are trademarks or trade names
of their respective companies.
2 Software Features
The provided software package consists of several MATLAB files and the RSIB DLL
(rsib32.dll) with the corresponding MEXRSIB DLL (mexrsib.dll).
RSIB (Rohde & Schwarz Interface Bus) is a network protocol introduced by Rohde &
Schwarz before any standard network protocol (e.g. VXI-11) was widely used. RSIB is
implemented in any up-to-date R&S spectrum, signal or network analyzer and can be
used without additional requirements by simply using the RSIB.DLL file on a PC.
The MEXRSIB DLL enables MATLAB to access the RSIB functionality. In addition,
the AJO class provides overloaded functions for the commands used to access the
instrument (fopen, fwrite, fread, fclose, etc.). This makes it very easy to use the
provided solution in parallel to other remote control channels like VISA (Virtual
Instrument Software Architecture) or GPIB (General Purpose Interface Bus).
The flowchart below illustrates the usage of measurement instruments together with
the MATLAB development environment; the usage of the provided solution is
indicated by the yellow shaded region.
Software Features
To remote control the instrument via GPIB or VISA, the MALTAB Instrument Toolbox
must be installed (Not required to control the instrument via LAN).
Hardware and Software Requirements
Hard disc 10 MByte free space 50 MByte free hard disc space
PC Software Requirements
Minimum Recommended
1
Required to access the instrument via GPIB or VISA/GPIB.
2
Required to access the instrument via GPIB or VISA.
Installing the Software
Please make sure that the "@ajo" directory is created as shown in the
screenshot above. Some ZIP tools may extract all files into a single directory,
which will prevent correct use of the software.
Using the Software First Example
7 Description of Commands
The following commands are available for communicating with the instrument. For
more information on the input and output parameters, please refer to the
corresponding m-file which contains all the information commented in the header of the
source code.
ajo
AJO class constructor.
fopen
Connects an AJO object to a Rohde & Schwarz instrument.
fprintf
Sends formatted command strings to the instrument.
fscanf
Reads data from an instrument and performs text parsing.
fclose
Disconnects an AJO object from a Rohde & Schwarz instrument.
"High-Level Commands"
rs_sa_connect
Initializes and opens a connection to an instrument.
rs_sa_getID
Gets the ID string from a connected instrument.
rs_sa_capture_rf
Captures data from the RF branch into the instrument's memory.
rs_sa_capture_bb
Captures data from the baseband inputs into the instrument's memory.
rs_sa_readdata
Retrieves the data from the instrument's memory (which has been captured using
rs_sa_capture_bb or rs_sa_capture_rf).
rs_sa_disconnect
Closes an open connection to an instrument.
Additional Information
8 Additional Information
This application note and the associated software are updated from time to time.
Please visit the website http://www.rohde-schwarz.com/appnote/1EF51 in order to
download the latest version. After installation, the current program information can be
found in the file history.txt in the installation directory.
Regional contact
Europe, Africa, Middle East
+49 1805 12 42 42* or +49 89 4129 137 74
customersupport@rohde-schwarz.com
North America
1-888-TEST-RSA (1-888-837-8772)
customer.support@rsa.rohde-schwarz.com
Latin America
+1-410-910-7988
customersupport.la@rohde-schwarz.com
Asia/Pacific
+65 65 13 04 88
customersupport.asia@rohde-schwarz.com
www.rohde-schwarz.com