beautypg.com

B&K Precision MDL Series - Programming Manual User Manual

Page 26

background image

26

*OPC This sets the OPC status bit when all pending operations have completed. Since your

program can read this status bit on an interrupt basis, *OPC allows subsequent commands

to be executed.

NOTE: The trigger system must be in the Idle state in order for the status OPC bit to be true. Therefore,

as far as triggers are concerned, OPC is false whenever the trigger system is in the Initiated state.

Using Device Clear

You can send a device clear at any time to abort a SCPI command that may be hanging up the GPIB

interface. The status registers, error queue, and all configuration states are left unchanged when a

device clear message is received. Device clear performs the following actions:

The input and output buffers of the electronic load are cleared.

The electronic load is prepared to accept a new command string.

The following statement shows how to send a device clear over the GPIB interface using GW BASIC:

CLEAR 705

IEEE-488 Device Clear

The following statement shows how to send a device clear over the GPIB interface using the GPIB

command library for C or QuickBASIC:

IOCLEAR (705)