Opc -25, Opt? -25 – RIGOL DP832A User Manual

Page 49

Advertising
background image

Chapter 2 Command System

RIGOL

DP800 Programming Guide

2-25

*OPC

Syntax

*OPC
*OPC?

Description

After executing this command, the bit0 (OPC, "operation complete" bit) in the event

register of the standard event register is set.
Query whether the *OPC command is executed. The query returns "1" to the output

buffer when the command is executed.

Explanation

 Operation complete refers to that all the previous commands including the

*OPC command are executed.

 Sending the *OPC? command and viewing the result can ensure

synchronization.

 When setting the instrument configuration via programming (by executing the

command string), using this command as the last command can determine

when the command queue is executed (when the command queue is executed

the, bit0 (OPC, "operation complete" bit) in the event register of the standard

event register will be set).

 Send the *OPC command after sending command to load the information in

the output buffer (query data) of the power supply and you can determine

when the information is available via the "OPC" bit.

Return Format

The query returns 1 when the current operation is completed.

Example

*OPC /*Set the bit0 (OPC, "operation complete" bit) in the event register of the

standard event register after completing the current operation*/

*OPC? /*Query whether the current operation is completed and the query

returns 1*/

*OPT?

Syntax

*OPT?

Description

Query the installation status of the options.

Explanation

 The options include high resolution, analyzer, monitor, LAN, RS232 and trigger.

 For DP831A/DP832A/DP821A/DP811A, the instrument is installed with the six

options mentioned above when it leaves factory. For DP831/DP832/DP821/

DP811, to use the optional functions, please order the corresponding options

and install the options correctly (

:LIC:SET

).

Return Format

The query returns the installation status of the options and different options are

separated by commas ",". The query returns the option name if the option is

installed; otherwise, the query returns 0.

High resolution option: DP8-ACCURACY Analyzer option: DP8-ANALYZER

Monitor option: DP8-MONITOR LAN option: DP8-LAN

RS232 option: DP8-RS232 Trigger option: DP8-TRIGGER

For example, the query returns DP8-ACCURACY,DP8-ANALYZER,DP8-MONITOR,

DP8-LAN,DP8-RS232,DP8-TRIGGER, indicating that the six options mentioned

above are all installed.

Example

*OPT? /*Query the installation status of the options and the query returns

0,DP8-ANALYZER,DP8-MONITOR,DP8-LAN,DP8-RS232,DP8-TRIGGER*/

Advertising
This manual is related to the following products: