140 and 150: Prompt the operator for the number of sweeps to
take. The number of sweeps to take is stored in the variable N.
Enter 0 to quit the program.
160: Don't takeanysweeps if N is less than 0.
170: Start a FOR/NEXT lo op to takeNsweeps.
180: Display the number of this sweep on the computer display.
190: Initiate a single sweep on the source and then wait until
the pending op eration is complete. Return a '1' when the sweep
completes.
200: Enter the resp onse to the *OPC? into the variable X. The
program execution will halt on this ENTER statementuntil the
sweep is nished.
210: Repeat the INIT:IMM sequence N times.
220: End of the IF statement to skip sweeps if N is negative.
230: Exit the program if the value of N is 0.
1-100 Getting Started Programming