18.12.2012 Views

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

R&S FSQ Signal Analyzer - Rohde & Schwarz

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

R&S <strong>FSQ</strong> Remote Control – Programming Examples<br />

7.1 Introduction<br />

Introduction<br />

The following programming examples have a hierarchical structure, i.e. subsequent<br />

examples are based on previous ones. It is thus possible to compile very easily an<br />

operational program from the modules of the given examples. VISUAL BASIC has<br />

been used as programming language. However, the programs can be translated into<br />

other languages.<br />

In progamming languages as C, C++ or programmes as MATLAB, NI Interactive<br />

Control, a backslash starts an escape sequence (e.g. “\n” is used to start a new<br />

line). In these progamming languages and programms, two backslashes instead of<br />

one must be used in remote commands (for an example refer to the Quick Start<br />

Guide, chapter “Brief Introduction to Remote Control“.)<br />

Example:<br />

To store instrument settings use: MMEM:STOR:STAT 1,'D:<br />

\\USER\\DATA\\TEST1'<br />

instead of: MMEM:STOR:STAT 1,'D:\USER\DATA\TEST1<br />

In this chapter, more complex programming examples are given. In the Quick Start<br />

Guide, chapter 6, basic steps in remote control programming are provided.<br />

7.2 Basic Programming Steps for the VISA Interface<br />

In this section, all basic programming examples about the topic service request are<br />

included:<br />

• “Initiate Service Request” on page 7.3<br />

• “Waiting for the Arrival of a Service Request” on page 7.3<br />

• “Waiting Without Blocking the Keyboard and Mouse” on page 7.4<br />

• “Service Request Routine” on page 7.5<br />

• “Evaluation of SCPI Status Registers” on page 7.6<br />

• “Evaluation of Event Status Register” on page 7.6<br />

Basic examples that explain the programming of the instrument and can serve as a<br />

basis to solve more complex programming tasks are provided in the Quick Start<br />

Guide, chapter 6.<br />

7.2.1 Service Request<br />

The service request routine requires an extended initialization of the instrument in<br />

which the relevant bits of the transition and enable registers are set. In order to use<br />

the service request function in conjunction with a National Instruments GPIB driver,<br />

the setting "Disable Auto Serial Poll" must be changed to "yes" by means of<br />

IBCONF.<br />

7.2 Operating Manual 1313.9681.12 - 01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!