FAQs from Rohde & Schwarz

IEEE Programming - Waiting for Averaging to be Completed

Question

How can I detect the completion of the 400th sweep via remote control?

Answer

This is a program containing the commands that will detect the completion of the

400th sweep:

REM Initiate an average sweep over 400 sweeps

FSx: INIT:CONT OFF

FSx: DISP:TRAC:MODE AVER

FSx: SWE:COUNT 400

FSx: SWE:TIME 0.1

FSx: *CLS

REM With *OPC the operation complete bit will be initiated

FSx: INIT;*OPC

REM The next line will be repeated until the operation complete bit is set

WHILE FSx: *ESR? <> 1