RIGOL  Chapter 2 Command System 
2-144  DG800 Programming Guide 
Example 
:SYST:CHAN:CUR CH2    /*Selects CH2 as the current channel.*/ 
:SYST:CHAN:CUR?       /*Queries the current channel and the query returns CH2.*/ 
 
 
:SYSTem:CHANnel:NUMber? 
 
Syntax 
:SYSTem:CHANnel:NUMber? 
 
Description 
Queries the number of the output channels of the instrument. 
 
Return Format 
The query returns an integer. 
 
Example 
:SYST:CHAN:NUM?    /*Queries the number of the output channels of the instrument and the query 
returns 2.*/ 
 
 
:SYSTem:COMMunicate:GPIB[:SELF]:ADDRess 
 
Syntax   
:SYSTem:COMMunicate:GPIB[:SELF]:ADDRess <integer> 
:SYSTem:COMMunicate:GPIB[:SELF]:ADDRess? 
 
Description 
Sets the GPIB address of the instrument. 
Queries the GPIB address of the instrument. 
 
Parameter 
 
Remarks 
To use the GPIB interface, please make sure that your PC has installed the GPIB card. Connect the USB 
terminal of the USB-GPIB interface converter to the USB HOST interface on the rear panel of the generator. 
Connect its GPIB terminal to the GPIB card terminal of the PC. 
 
Return Format 
The query returns the GPIB address in integer. 
 
Example 
:SYST:COMM:GPIB:ADDR 7    /*Sets the GPIB address of the instrument to 7.*/ 
:SYST:COMM:GPIB:ADDR?     /*Queries the GPIB address of the instrument and the query returns 7.*/