RIGOL DG1000Z Series User Manual

Page 43

Advertising
background image

Chapter 2 Command System

RIGOL

DG1000Z Programming Guide

2-31

*OPC

Syntax

*OPC

*OPC?

Description

Set the OPC (operation complete) bit in the standard event register after all the

previous commands that have been sent are executed.
Query whether all the previous commands that have been sent are executed. If yes,

return 1 to the output buffer.

Explanation

 Here, “operation complete” refers to that all the previous commands that have

been sent, including the *OPC command, are executed.

 You can also use the *OPC (operation complete) or *OPC? (operation complete

query) command to set the system to output signal when finishing the sweep

or burst. The *OPC commands sets the OPC (operation complete) bit in the

standard event register after all the previous commands that have been sent

are executed; when the bus is used to trigger the sweep or burst, the system

can execute other commands before this bit is set. The *OPC? command

returns 1 to the output buffer after all the previous commands that have been

sent are executed and the system cannot execute any other command before

this command is completed.

 Sending the *OPC? command (query command) and reading the result can

ensure synchronization.

 When setting the instrument by programming (by executing command strings),

taking the *OPC command as the last command of the command queue can

determine when the command queue is completed (the OPC (operation

complete) bit in the standard event register is set after the command queue is

completed).

Return Format

The query returns 1 or 0.

Example

*OPC /*Configure the instrument to set the OPC (operation complete) bit in the

standard event register after all the previous commands that have been

sent are executed*/

*OPC? /*Query whether all the previous commands that have been sent are

executed. If yes, return 1 to the output buffer*/

*OPT?

Syntax

*OPT?

Description

Query whether the 16M internal memory option (Arb 16M) has been installed.

Return Format

The query returns OFFICAL (the 16M internal memory option has been installed) or

UNINSTALL (the 16M internal memory option is not installed).

Advertising