Summary of Contents for Rohde & Schwarz Smart Instruments FS315
Page 1
Products: Rohde&Schwarz Smart Instruments™ Family300 (SM300, FS300, FS315, AM300, UP300/350) Rohde&Schwarz Smart Instruments™ Family300 Basic Programming Guide Introduction to the fundamentals of programming the R&S Smart Instruments™ Family 300 in different development environments. W.Blanz 06/2007 – 1MA73_07E...
R&S Smart Instruments™ Family300 Basic Programming Guide 1 Introduction Rohde&Schwarz provides instrument drivers available for all Smart Instruments™. These drivers allow you to access instruments from various programming environments under Microsoft Windows XP/2000. The "Smart Instruments™ Programming Guide" deals with programming the Smart Instruments™...
R&S Smart Instruments™ Family300 Basic Programming Guide 3 Installing Instrument Drivers The instrument drivers can be obtained from the Rohde&Schwarz web site (http://www.rohde-schwarz.de/drivers/overview.html). The site contains the latest versions of the instrument drivers together with examples and installations notes. The following should be noted when installing and using the drivers: if a VISA library has been installed on your PC, the instrument drivers are embedded in its directory structure (e.g.
Page 5
R&S Smart Instruments™ Family300 Basic Programming Guide Directory structure: After the instrument drivers are installed directory structures can differ, depending whether or not the VISA library is installed on your PC. With VISA Without VISA (standard installation directory) In an installation with the VISA library you find the same directories and files in the sub-directory "WinNT"...
R&S Smart Instruments™ Family300 Basic Programming Guide UnInst.isu (uninstall information) \GWinNT LabView files rssifs.chm (HTML based Help) rssifs_xx.mnu (several LabView menu files) rssifs.llb (LabView library) 4 Instrument Drivers The Smart Instruments™ Family300 has instrument drivers which can be used within Windows in all programming languages that can access DLLs. The instrument drivers consist of different DLLs which carry out various control tasks.
Page 7
R&S Smart Instruments™ Family300 Basic Programming Guide Settings->Link "Object/Library Modules" and entering the desired LIB file, e.g. rssifs.lib for the FS300 spectrum analyzer. Figure 2: Adding the LIB file to the current project The compiler must be notified of the path so that it can find the LIB file. You therefore need to add a new search path for LIB files by using the menu sequence Tools->Options..->Directory.
Page 8
R&S Smart Instruments™ Family300 Basic Programming Guide Figure 4: Adding the search path for C header files The general settings for your Visual C++ project have now been entered. The header files must now be integrated into those of your modules which are intended to call the driver functions.
Page 10
R&S Smart Instruments™ Family300 Basic Programming Guide Figure 5: Integrating the reference Figure 6: Selecting the reference If the instrument drivers are not listed, use the Browse button to search for the DLL in the installation directory where the instrument driver is located (e.g.
Page 11
R&S Smart Instruments™ Family300 Basic Programming Guide The following DLLs are available: Instrument driver DLL name FS300 and FS315 spectrum rssifs_32.dll analyzers SM300 signal generator rssism_32.dll AM300 arbitrary/function rssiam_32.dll generator UP300 and UP350 audio rssiup_32.dll analyzers Select "Browse" to search for the DLL Figure 7: Searching for the reference National Instruments LabView The following process refers to National Instruments LabView Express...
Page 12
R&S Smart Instruments™ Family300 Basic Programming Guide Right mouse-click on the project file Figure 8: FS300 instrument in the project Proceed as follows: Right mouse-click on the project file Select "Add file" -> in this case the fp file (e.g. select rssifs.fp for the FS300 driver).
Page 13
R&S Smart Instruments™ Family300 Basic Programming Guide Agilent VEE The following process refers to Agilent VEE Pro 7.0. In order to use the driver under Agilent VEE, the instrument driver must be created with the aid of the "Instrument Manager" function. Figure 10 Agilent VEE Instrument Manager A new instrument can be created in the “Instrument->Add..“...
Page 14
R&S Smart Instruments™ Family300 Basic Programming Guide enter its resource string or the virtual instrument name (see 7 "Resource String" and "Virtual Instrument Name"). Figure 12 Agilent VEE Plug&play Driver When the OK button is clicked the instrument is available in the Instrument Manager.
R&S Smart Instruments™ Family300 Basic Programming Guide Figure 14 Agilent VEE FS300 object 6 Using "FS300 Basic Measurement" for the First Time Now that the drivers are available under the individual development environments, the following sections deal with a typical application that has been programmed for all four development environments.
Page 16
R&S Smart Instruments™ Family300 Basic Programming Guide Figure 15: SiScan (Smart Instruments™ Scanning Tool) The SiMonitor is a component of the SiScan program, and displays the Register of the instrument that is to be controlled. Since polling the Register affects the speed of the instrument, it would be better to display only those that will also be used in the remote control application.
R&S Smart Instruments™ Family300 Basic Programming Guide Figure 17: SiMonitor (part of the SiScan tool) 7 "Resource String" and "Virtual Instrument Name" When initializing an instrument, an object known as a "resource string" is used for addressing (e.g. USB::0x0AAD::0x0006::100015 for an FS300 with the serial number 100015).
Page 18
R&S Smart Instruments™ Family300 Basic Programming Guide When programming the Smart Instruments™ Family300 the instrument identification code and the serial number change in accordance with the instrument. The following table lists the instrument identification codes for the whole Smart Instruments™ Family300: Instrument Instrument identification code...
R&S Smart Instruments™ Family300 Basic Programming Guide Where to Find Help on the Driver Functions You can find online Help and sample demo programs for each driver. Online Help The Help files are installed along with the driver. Text-based Windows Help files (e.g.
R&S Smart Instruments™ Family300 Basic Programming Guide 10 References The following list contains a summary of the web sites and documents that deal with programming Smart Instruments™. FS300/315 Spectrum Analyzer Driver LabWindows/CVI (http://www.rohde- schwarz.com/driver/FS300LabWindowsCVI.html) LabVIEW (http://www.rohde-schwarz.com/driver/FS300LabView.html) VXIplug&play Instrument Driver for VEE, Visual Basic, Visual C++, Borland C++ etc.
R&S Smart Instruments™ Family300 Basic Programming Guide 12 Keywords Universal Serial Bus (http://www.usb.org) USB driver This refers to a Windows specific driver that makes the basic communication with the instrument available to the Windows operating system via the USB. Instrument driver The instrument driver forms the interface between the USB driver and the controlling program.
Need help?
Do you have a question about the Smart Instruments FS315 and is the answer not in the manual?
Questions and answers