Remote Control - Programming Examples; Introduction; Basic Programming Steps For The Visa Interface; Service Request - Rohde & Schwarz R&S FSP Series Operating Manual

Spectrum analyzer
Table of Contents

Advertisement

R&S FSP

7.1 Introduction

The following programming examples have a hierarchical structure, i.e. subsequent
examples are based on previous ones. It is thus possible to compile very easily an
operational program from the modules of the given examples. VISUAL BASIC has
been used as programming language. However, the programs can be translated into
other languages.
In progamming languages as C, C++ or programmes as MATLAB, NI Interactive
Control, a backslash starts an escape sequence (e.g. "\n" is used to start a new
line). In these progamming languages and programms, two backslashes instead of
one must be used in remote commands (for an example refer to the Quick Start
Guide, chapter "Brief Introduction to Remote Control".)
Example:
To
\\USER\\DATA\\TEST1'
instead of: MMEM:STOR:STAT 1,'D:\USER\DATA\TEST1
In this chapter, more complex programming examples are given. In the Quick Start
Guide, chapter 6, basic steps in remote control programming are provided.

7.2 Basic Programming Steps for the VISA Interface

In this section, all basic programming examples about the topic service request are
included:
"Initiate Service Request" on page 7.3
"Waiting for the Arrival of a Service Request" on page 7.3
"Waiting Without Blocking the Keyboard and Mouse" on page 7.4
"Service Request Routine" on page 7.5
"Evaluation of SCPI Status Registers" on page 7.6
"Evaluation of Event Status Register" on page 7.6
Basic examples that explain the programming of the instrument and can serve as a
basis to solve more complex programming tasks are provided in the Quick Start
Guide, chapter 6.
7.2.1

Service Request

The service request routine requires an extended initialization of the instrument in
which the relevant bits of the transition and enable registers are set. In order to use
the service request function in conjunction with a National Instruments GPIB driver,
the setting "Disable Auto Serial Poll" must be changed to "yes" by means of
IBCONF.
7.2
store
instrument
settings
Remote Control – Programming Examples
use:
MMEM:STOR:STAT
Operating Manual 1164.4556.12 - 06
Introduction
1,'D:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents