![Rohde & Schwarz FSW13 User Manual Download Page 1090](http://html.mh-extra.com/html/rohde-and-schwarz/fsw13/fsw13_user-manual_14778471090.webp)
Remote Commands
R&S
®
FSW
1090
User Manual 1173.9411.02 ─ 19
//Configures 3 traces: 1 (default): clear/write; 2: average; 3: max hold
SENS:DET1 POS
SENS:DET2 RMS
SENS:DET3 POS
//Configures traces 1 and 3 to use the positive peak detector; trace 2 uses
//the RMS detector.
TRAC:COPY TRACE4,TRACE1
//Copies trace 1 to a new trace 4 which will then be averaged.
SENS:AVER:STAT4 ON
SENS:AVER:COUN 10
SENS:AVER:TYPE LIN
//Configures trace 4 to be averaged linearly over 10 sweeps.
CALC:MATH:STAT ON
CALC:MATH:MODE LIN
CALC:MATH (TRACE1-TRACE2)
CALC:MATH:POS 100
//Calculates the linear difference between the measured and average values.
//The resulting trace is displayed at the top of the diagram.
//--------------Performing the Measurement---------------------
INIT;*WAI
//Initiates a new measurement and waits until the last sweep has finished.
//---------------Retrieving Results----------------------------
TRAC:DATA? TRACE1
TRAC:DATA? TRACE2
TRAC:DATA? TRACE3
TRAC:DATA? TRACE4
//Returns one power and one frequency value per sweep point for each trace.
11.15.2 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 addition the ser-
vice request event must be enabled in the VISA session.
11.15.2.1
Initiate Service Request
REM ---- Example of initialization of the SRQ in the case
' of errors -------
PUBLIC SUB SetupSRQ()
CALL InstrWrite (analyzer, "*CLS") 'Reset status reporting system
CALL InstrWrite (analyzer, "*SRE 168") 'Enable service request for
'STAT:OPER, STAT:QUES and ESR
Programming Examples