Programming
Example 3: Switch position using the *OPC command
200
Start REPEAT loop.
210
Send the *ESR? command to the switch. This queries the
switch for the Event Status Register value.
220
Read the value of the Event Status Register.
230
If the LSB of the ESR is 1 (that is, the switch is settled),
exit the loop. If the LSB is 0 (that is, switch is moving),
then loop back to line 200.
240
Return from subroutine.
4-38