beautypg.com

Remote control methods, Scpi command overview, Syntax – RIGOL DP832A User Manual

Page 13: Remote control methods -3, Scpi command overview -3, Syntax -3

background image

Chapter 1 Programming Overview

RIGOL

DP800 Programming Guide

1-3

(3) Use the RS232 interface:

 Connect the RS232 interface with the PC or data terminal equipment (DTE) using RS232

cable.

 Press UtilityI/O ConfigRS232 to set interface parameters (such as the baud rate

and parity) that match the PC or terminal equipment.

(4) Use the GPIB interface:

 Use the USB-GPIB interface converter to extend a GPIB interface via the USB HOST interface

at the rear panel of DP800.

 Connect the instrument with your PC using a GPIB cable.
 Press UtilityI/O ConfigGPIB to set the GPIB address of the instrument.

3 Check whether the connection is successful

Run the Ultra Sigma, search for resource, right-click the resource name and select "SCPI Panel

Control" in the pop-up menu. Enter the correct command in the pop-up SCPI control panel and click

"Send Command" and then "Read Response" or click "Send & Read" directly to check whether the

connection is successful.

Remote Control Methods

1 User-defined Programming

You can program and control the instrument using the SCPI (Standard Commands for Programmable

Instruments) commands listed in chapter 2 "Command System" in various development

environments (such as Visual C++, Visual Basic and LabVIEW). For details, refer to the introductions in

chapter 4

"Programming Demos".

2 Send SCPI Commands via the PC Software

It is recommended that you control the power supply remotely by sending SCPI commands via the PC
software Ultra Sigma provided by

RIGOL

.

SCPI Command Overview

SCPI (Standard Commands for Programmable Instruments) is a standardized instrument programming

language that is built upon the standard IEEE 488.1 and IEEE 488.2 and conforms to various standards

(such as the floating point operation rules in IEEE754 standard, ISO646 7-bit coded character for

information interchange (equivalent to ASCII programming)). This section introduces the syntax, symbols,

parameters and abbreviation rules of the SCPI commands.

Syntax

SCPI commands present a hierarchical tree structure and contain multiple subsystems, each subsystem

consists of a root keyword and one or more sub-keywords. The command string usually starts with ":"; the

keywords are separated by ":" and are followed by the parameter settings available. The command

keywords and the first parameter are separated by a space. "?" is added at the end of the command string

to indicate query.

For example,

:SYSTem:COMMunicate:LAN:IPADdress

:SYSTem:COMMunicate:LAN:IPADdress?

SYSTem is the root keyword of the command. COMMunicate, LAN and IPADdress are the second-level,

third-level and forth-level keywords respectively. The command string starts with ":" which is also used to

separate the multiple-level keywords. represents the parameters available for setting. The command

This manual is related to the following products: