Question
How can I detect the completion of the 400th sweep via remote control?
How can I detect the completion of the 400th sweep via remote control?
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