Instructions

RIGOL Chapter 2 Command System
2-150 DG2000 Programming Guide
:SYSTem:ERRor?
Syntax
:SYSTem:ERRor?
Description
Queries and clears an error message from the error queue.
Remarks
The error will be cleared when you read the error queue. You can also clear the error queue by using the
*CLS command or the *RST command; or by turning on/off the instrument.
Return Format
The query returns a string consisting of two parts separated by commas. The first part is the number of the
error message and the second part is the content of the error message. The content is a string enclosed by
double quotation marks. For example, -113,"Undefined header; keyword cannot be found". "-113" is the
number of the error message. "Undefined header; keyword cannot be found" (i.g. the content enclosed by
the double quotation marks) is the content of the error message.
:SYSTem:KLOCk
Syntax
:SYSTem:KLOCk <key>,{ON|1|OFF|0}
:SYSTem:KLOCk? <key>
Description
Locks or unlocks the specified key or the knob.
Queries whether the specified key or the knob is locked or not.
Parameter
Name
Type
Range
Default
<key>
Discrete
Refer to "Remarks".
None
{ON|1|OFF|0}
Bool
ON|1|OFF|0
OFF
Remarks
The parameter <key> indicates a specified key, and its range is as follows:
HOME|SHIFT|SINE|SQUARE|RAMP|PULSE|
NOISE|ARB|ALIGN|
/*Function keys*/
LEFT|RIGHT|KNOB|
/*Arrow keys and knob*/
OUTPUt1|OUTPUt2|
/*Output control keys*/
COUNTER|
/*Frequency counter key*/
ALL
/*All the keys and the knob on the front panel */
{ON|OFF|0|1} is used to lock or unlock the keys. ON|1 denotes locking the specified key and OFF|0
denotes unlocking the specified key.
DG2000 allows users to lock the specified key or knob on the front panel to avoid the danger caused by
misoperation.
Return Format
The query returns 1 or 0.
Example
:SYST:KLOC SHIFT,1 /*Locks the Shift key on the front panel.*/
:SYST:KLOC? SHIFT /*The query returns 1.*/
:SYST:KLOC SHIFT,OFF /*Unlocks the Shift key on the front panel.*/
:SYST:KLOC? SHIFT /*The query returns 0.*/