background image

W.Blanz 06/2007 – 1MA73_07E

 

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. 

 

Summary of Contents for Smart Instruments 300 Series

Page 1: ...mart 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...

Page 2: ...ents 3 3 Installing Instrument Drivers 4 4 Instrument Drivers 6 5 Integrating Drivers into a Project 6 6 Using FS300 Basic Measurement for the First Time 15 7 Resource String and Virtual Instrument Na...

Page 3: ...by remote control via the USB host port This means that the operating system used for remote control purposes must provide in house USB support The drivers described below support the Microsoft Windo...

Page 4: ...t environments e g LabWindows CVI and LabView and of Agilent VEE The Rohde Schwarz web site offers you a choice of three different drivers for each instrument but only two of the installation packages...

Page 5: ...the FS300 spectrum analyzer Directory Contents bin Instrument driver DLL e g rssifs_32 dll lib Library files e g rssifs lib bc Borland C msc Microfsoft C include Header files rssitype h type declarati...

Page 6: ...programmer with instrument specific functions The following sections cover these in particular 5 Integrating Drivers into a Project The following section describes how to use instrument drivers in di...

Page 7: ...ath for LIB files by using the menu sequence Tools Options Directory As mentioned above section 3 Installing Instrument Drivers the search path to the files can vary according to the type of installat...

Page 8: ...rssifs h include rssitypes h Importing the DLL in runtime DLLs are integrated during the runtime of the program Note that in this case every function that is going to be used must be explicitly integr...

Page 9: ...s Result 0 int main int argc char argv hInstance LoadLibrary c VXIPNP WinNT bin rssifs_32 dll pFunction RSSIFSINIT GetProcAddress hInstance rssifs_init function call Result pFunction resourceName IDQu...

Page 10: ...10 Rohde Schwarz 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...

Page 11: ...dard drivers in LabView after installation of the LabView drivers it is necessary for the complete directory with VISA c VXIpnp GWIN rssixx and without VISA myinstallationdrive rssifs LabView to be co...

Page 12: ...chwarz Figure 8 FS300 instrument in the project Proceed as follows o Right mouse click on the project file o Select Add file in this case the fp file e g select rssifs fp for the FS300 driver Figure 9...

Page 13: ...ment can be created in the Instrument Add submenu The interface type plays no part in this and you can press OK to confirm Figure 11 Agilent VEE Add Interface Device The name and address of the instru...

Page 14: ...ng 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 Figure 13 Agilent VEE Instrument Manager with...

Page 15: ...ted Setting action Instrument driver function Opening the instrument rssifs_init Setting the reference level rssifs_confRefLevel Setting the start and stop frequency rssifs_confStartStopFrq Setting th...

Page 16: ...e 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 contr...

Page 17: ...trument 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 A resource string comprises the following Resource string US...

Page 18: ...implify the task of exchanging instruments such as in measurement systems you have the option to enter logical instrument names These are substitutes for resource strings in the form described above T...

Page 19: ...tart programming the instruments demo programs and application notes for the various instruments e g FS300 SM300 and AM300 are available via the Rohde Schwarz home page under the keyword Smart Instrum...

Page 20: ...R S Smart Instruments Family300 Basic Programming Guide 1MA73 20 Rohde Schwarz...

Page 21: ...ug play Instrument Driver for VEE Visual Basic Visual C Borland C etc http www rohde schwarz com driver AM300VXIplugplay html SM300 Signal Generator Driver LabWindows CVI http www rohde schwarz com dr...

Page 22: ...e schwarz com drivers overview html Additional information National Instruments VISA http www ni com visa 11 Appendix Contact our hotline Should you have any questions or ideas concerning the instrume...

Page 23: ...provides instrument specific control functions to the user programmer VISA This Virtual Instrument System Architecture VISA specification defined by the VXI Plug n Play Alliance is an important step i...

Reviews: