14.06.2014 Views

Operating Manual EMI TEST RECEIVER ESIB7 - Rohde & Schwarz

Operating Manual EMI TEST RECEIVER ESIB7 - Rohde & Schwarz

Operating Manual EMI TEST RECEIVER ESIB7 - Rohde & Schwarz

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ESIB<br />

Programming Examples<br />

Command synchronization<br />

The possibilities for synchronization implemented in the following example are described in Chapter 5,<br />

Section "Command Order and Command Synchronization".<br />

REM -------- Examples of command synchronization ---------<br />

REM The command INITiate[:IMMediate] starts a single sweep if the command<br />

REM INIT:CONT OFF was previously sent. It should be ensured that the next<br />

REM command is only then executed when the entire sweep is complete.<br />

CALL IBWRT(receiver%, "INIT:CONT OFF")<br />

REM -------- First possibility: Use of *WAI ---------<br />

CALL IBWRT(receiver%, "ABOR;INIT:IMM; *WAI")<br />

REM -------- Second possibility: Use of *OPC? ---------<br />

OpcOk$ = SPACE$(2) ’Space for *OPC? - Provide response<br />

CALL IBWRT(receiver%, "ABOR;INIT:IMM; *OPC?")<br />

REM -------- here the controller can service other instruments ---------<br />

CALL IBRD(receiver%, OpcOk$) ’Wait for "1" from *OPC?<br />

REM -------- Third possibility: Use of *OPC ---------<br />

REM In order to be able touse the service request function in conjugation<br />

REM with a National Instruments GPIB driver, the setting "Disable<br />

REM Auto Serial Poll" must be changed to "yes" by means of IBCONF!<br />

CALL IBWRT(receiver%, "*SRE 32") ’Permit service request for ESR<br />

CALL IBWRT(receiver%, "*ESE 1") ’Set event-enable bit for<br />

’operation-complete bit<br />

ON PEN GOSUB OpcReady ’Initialization of the<br />

’service request routine<br />

PEN ON<br />

CALL IBWRT(receiver%, "ABOR;INIT:IMM; *OPC")<br />

REM Continue main program here<br />

STOP<br />

’End of program<br />

OpcReady:<br />

REM As soon as the sweep has ended, this subroutine is activated<br />

REM Program suitable reaction to the OPC service request.<br />

ON PEN GOSUB OpcReady<br />

’Enable service request routine again<br />

RETURN<br />

REM ***********************************************************************<br />

1088.7531.12 7.3 E-16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!