Basic Steps of IEC/IEEE-Bus Programming
R&S FSMR
1166.3363.12 7.6
E-1
Command Synchronization
The possibilities for synchronization implemented in the following example are described in Chapter 5,
Section "Command Order and Command Synchronization".
REM -------- Examples of command synchronization --------------------------
PUBLIC SUB SweepSync()
REM The command INITiate[:IMMediate] starts a single sweep if the command
REM INIT:CONT OFF was previously sent. It has to be ensured that the next
REM command is only executed when the entire sweep is complete.
CALL IBWRT(analyzer%, "INIT:CONT OFF")
REM -------- First possibility: Use of *WAI ------------------------------
CALL IBWRT(analyzer%, "ABOR;INIT:IMM; *WAI")
REM -------- Second possibility: Use of *OPC? ----------------------------
OpcOk$ = SPACE$(2) 'Space for *OPC? - Provide response
CALL IBWRT(analyzer%, "ABOR;INIT:IMM; *OPC?")
REM -------- The controller can operate other instruments -------------
CALL IBRD(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 conjunction
REM with a National Instruments GPIB driver, the setting "Disable
REM Auto Serial Poll" must be changed to "yes" by means of IBCONF!
CALL IBWRT(analyzer%, "*SRE 32")
'Permit service request for ESR
CALL IBWRT(analyzer%, "*ESE 1")
'Set event enable bit for
'operation
complete
bit
CALL IBWRT(analyzer%, "ABOR;INIT:IMM; *OPC") 'Start sweep and
'synchronize
to
OPC
CALL WaitSRQ(boardID%,result%)
'Wait for service request
REM Continue main program.
END SUB
REM ***********************************************************************
Summary of Contents for FSMR
Page 1: ...R S FSMR Measuring Receiver Operating Manual Test Measurement Operating Manual 1313 9723 12 01...
Page 4: ......
Page 22: ......
Page 26: ...Contents Preparing for Operation R S FSMR 1155 5047 12 I 1 2 E 2 Fig 1 1 Front View...
Page 28: ...Front View R S FSMR 1166 3363 12 1 2 E 2 Fig 1 1 Front View...
Page 30: ...Front View R S FSMR 1166 3363 12 1 4 E 2 Fig 1 1 Front View...
Page 32: ...Front View R S FSMR 1166 3363 12 1 6 E 2 Fig 1 1 Front View...
Page 34: ...Front View R S FSMR 1166 3363 12 1 8 E 2 Fig 1 1 Front View...
Page 66: ......
Page 86: ......
Page 130: ...Menu Overview R S FSMR 1166 3363 12 3 42 E 3 Menu Overview another Keys MKR Key...
Page 141: ...R S FSMR Menu Overview 1166 3363 12 3 53 E 3 LOCAL Menu LOCAL...
Page 144: ......
Page 150: ......
Page 156: ......
Page 202: ......
Page 208: ......
Page 216: ......
Page 230: ......
Page 254: ......
Page 280: ......
Page 348: ......
Page 376: ...Configuration Setup R S FSMR 1166 3363 12 4 19 28 E 2...
Page 390: ......
Page 408: ......
Page 428: ......
Page 446: ......
Page 536: ......
Page 799: ......
Page 921: ......
Page 935: ......
Page 937: ...Contents Error Messages R S FSMR 1166 3363 12 I 9 2 E 1...