R&S FSL WLAN TX Measurements – Programming Examples (Option K91/K91n)
1300.2519.12 7.35 E-11
<Meas Type> Measurement Type
STATistics:BSTReam Bit Steam
STATistics:SFIeld Signal Field
The following example shows how to select a Spectrum Mark ETSI measurement:
REM select
Spectrum Mask Select ETSI
CALL InstrWrite(analyzer, "SPECtrum:MASK:SELect:ETSI")
Running Synchronized Measurements
The following examples show how measurements can be synchronized. Synchronization is necessary to
ensure that the measurement has completed before the measurement results and markers are
requested.
PUBLIC SUB SweepSync()
REM The command INITiate[:IMMediate] starts a single sweep if the
REM command INIT:CONT OFF was previously sent. It should be ensured that
REM the next command is only then executed when the entire sweep is
REM complete.
CALL InstrWrite(analyzer, "INIT:CONT OFF")
REM –––––– First possibility: Use of *WAI ––––––––––––––––––––––––––––––
CALL InstrWrite(analyzer, "INIT:IMM;*WAI")
REM –––––– Second possibility: Use of *OPC? ––––––––––––––––––––––––––––
OpcOk$ = SPACE$(2) 'Space for *OPC? 'Provide response
CALL InstrWrite(analyzer, "INIT:IMM;*OPC?")
REM –––––– Here the controller can service other instrument–––––––––––––
CALL InstrRead(analyzer, OpcOk$) 'Wait for "1" from *OPC?
REM ––––––– Third possibility: Use of *OPC –––––––––––––––––––––––––––––
REM In order to be able to use the service request function in
REM conjugation with a National Instruments GPIB driver, the setting
REM "Disable Auto Serial Poll" must be changed to "yes" by means of
REM the GPIB configuration
REM (e.g. Windows Start menu: Settings –> Control Panel –> GPIB)!
CALL InstrWrite(analyzer, "*SRE 32") 'Permit service request for ESR
CALL InstrWrite(analyzer, "*ESE 1") 'Set event–enable bit for
'operation–complete bit
CALL InstrWrite(analyzer, "INIT:IMM;*OPC") 'Start sweep and
'synchronize with OPC
status = viWaitOnEvent(vi, VI_EVENT_SERVICE_REQ, SRQWaitTimeout, VI_NULL,
VI_NULL) 'Wait for service request