Scpi Messages - Agilent Technologies N6751A User Manual

Modular power system
Table of Contents

Advertisement

5 Introduction to Programming
Coupled Commands

SCPI Messages

70
When commands are coupled it means that the value sent by one
command is affected by the settings of another command. The
following commands are coupled:
[SOURce:]CURRent and [SOURce:]CURRent:RANGe.
[SOURce:]VOLTage and [SOURce:]VOLTage:RANGe.
If a range command is sent that places an output on a range with a
lower maximum setting than the present level, an error is generated.
This also occurs if a level is programmed with a value too large for
the present range.
These types of errors can be avoided by sending the both level and
range commands as a set, in the same SCPI message. For example,
CURRent 10,(@1);:RANGe 10,(@1)<NL>
will always be correct because the commands are not executed until
the message terminator is received. Because the range and setting
information is received as a set, no range/setting conflict occurs.
There are two types of SCPI messages, program and response.
A program message consists of one or more properly formatted
SCPI commands sent from the controller to the power system.
The message, which may be sent at any time, requests the power
system to perform some action.
A response message consists of data in a specific SCPI format
sent from the power system to the controller. The power system
sends the message only when commanded by a program message
"query."
The following figure illustrates the SCPI message structure.
Channel
Data
Keywords
VOLT : LEV 10, (@1) ;
Keyword Separator
Message Unit Separators
Message Unit
Query Indicator
PROT ON, (@1)
; : CURR? (@1)
Root Specifier
Series N6700 User's Guide
Space
<NL>
Message Terminator

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents