![Rohde & Schwarz NRT 1080.9506.02/.62 Operating Manual Download Page 182](http://html.mh-extra.com/html/rohde-and-schwarz/nrt-1080-9506-02-62/nrt-1080-9506-02-62_operating-manual_1477860182.webp)
Programming Examples
NRT
1080.9506.02
D.4
E-6
Annex D.7
Command Synchronization
The options for synchronization implemented in the following example are described in Section 3.6.6,
Befehlsreihenfolge und Befehlssynchronisation.
REM ---Examples for Command Synchronization: ---------
REM ---The command TRIGer:trigger:immediate requires a relatively long execution
REM ---time (sensor-dependent). It should be ensured that the next command is only
REM ---executed after the result of the measurement has been obtained.
CALL IECOUT("SENS1:FUNC:CONC OFF")
’Only one measuring function must be
’active.
CALL IECOUT("SENS1:FUNC ’POW:FORW:AVER:BURS’") ’Switch on Average Burst
’measuring function.
REM -------------------------- First option: Use of *WAI -------------------------
CALL IECOUT("TRIG; *WAI; :SENS1:DATA? ’POW:FORW:AVER:BURS’")
CALL IECIN(Value$)
PRINT "Measured value TRIG WAI: ";Value$
REM -------------------------- Second option: Use of *OPC? -----------------------
CALL IECOUT("TRIG; *OPC?")
REM ---------------------------- here the controller can service other devices ---
CALL IECIN(OpcOk$)
’Wait for "1" from *OPC?
’i. e. the triggered measured result
’is available,
’only then the result can be
’read out.
CALL IECOUT("SENS1:DATA? ’POW:FORW:AVER:BURS’")
CALL IECIN(Value$)
PRINT "Measured value TRIG *OPC?: "; Value$
REM -------------------------- Third option: Use of *OPC ------------------------
REM ---In order to use the service request function with National Instruments
REM ---GPIB driver, the setting "Disable Auto Serial Poll" must be changed to
REM ---"yes" by means of IBCONF!
CALL IECOUT("*SRE 32")
’Enable service request for ESR,
CALL IECOUT("*ESE 1")
’Set event enable bit for
’operation complete bit.
ON PEN GOSUB OpcReady
’Initialize service
’request routine.
PEN ON
CALL IECOUT("TRIG; *OPC")
REM ------------------------------- Continue main program -----------------------
STOP
’End of program.
OpcReady:
REM --- As soon as the result of the measurement has been obtained, this subroutine
REM --- is activated.
REM --- Program reaction suitable for the OPC service request, e. g.:
CALL IECOUT("SENS1:DATA? ’POW:FORW:AVER:BURS’")
CALL IECIN(Value$)
RETURN
REM********************************************************************************
深圳德标仪器
135-1095-0799
Summary of Contents for NRT 1080.9506.02/.62
Page 2: ...深圳德标仪器 135 1095 0799 ...
Page 4: ...深圳德标仪器 135 1095 0799 ...
Page 6: ...深圳德标仪器 135 1095 0799 ...
Page 16: ...深圳德标仪器 135 1095 0799 ...
Page 18: ...深圳德标仪器 135 1095 0799 ...
Page 178: ...深圳德标仪器 135 1095 0799 ...
Page 190: ...深圳德标仪器 135 1095 0799 ...