XDM1000 Digital Multimeter Programming Manual
XDM1000 Digital Multimeter Programming Manual
www.owon.com
Content
Table of Contents
Introduction to the SCPI Language ..........................................................................................1
Syntax Rules.............................................................................................................................1
Usage of symbols...........................................................................................................1
Contact Us ................................................................................................................................4
*IDN ...........................................................................................................................................5
*RST ............................................................................................................................................5
[SENSe:]FUNCtion[1|2] .................................................................................................1
[SENSe:]TEMPerature:RTD:TYPe .................................................................................3
[SENSe:]TEMPerature:RTD:UNIT ................................................................................3
[SENSe:]TEMPerature:RTD:SHOW .............................................................................4
[SENSe:]CONT:THREshold ...................................................................................................4
CONFigure command sub system ...............................................................................................4
CONFigure[:SCALar][:VOLTage]:{AC|DC}..................................................................4
CONFigure[:SCALar]:CURRent:{AC|DC} ....................................................................5
CONFigure[:SCALar]:{RESistance|FRESistance} ......................................................5
i
Content
CONFigure[:SCALar]:{FREQuency|PERiod} ..............................................................6
CONFigure[:SCALar]:CAPacitance .............................................................................6
CONFigure[:SCALar]:TEMPerature:RTD....................................................................7
CONFigure[:SCALar]:DIODe ........................................................................................7
CONFigure[:SCALar]:CONTinuity ...............................................................................8
CALCulate:AVERage:ALL? .............................................................................................8
CALCulate:AVERage:AVERage?...................................................................................9
CALCulate:AVERage:MAXimum? ...............................................................................9
CALCulate:AVERage:MINimum? ..............................................................................10
CALCulate:DB:REFerence............................................................................................10
CALCulate:DBM:REFerence........................................................................................11
CALCulate:FUNCtion ...................................................................................................11
CALCulate:NULL:OFFSet .............................................................................................12
CALCulate:STATe ...........................................................................................................12
SYSTem:BEEPer:STATe..................................................................................................13
SYSTem:LOCal................................................................................................................13
SYSTem:REMote............................................................................................................14
AUTO................................................................................................................................14
RANGE .............................................................................................................................15
ii
Content
RATE .................................................................................................................................15
MEAS? .............................................................................................................................16
MEAS1? ...........................................................................................................................16
MEAS2? ...........................................................................................................................17
iii
Introduction to the SCPI Language
Syntax Rules
SCPI language itself defines a group of sub-system keywords, and at the same time allows users
to add or reduce keywords. Those keywords can be some meaningful English words and are easy
to remember, which are called mnemonics. Mnemonic has long and short types. The short are
the abbreviation of the long. Use specific character to separate keywords, data and sentences.
1) If the letter number of an English word is less than or equal to 4, then the word itself can be
2) If the letter number of an English word exceeds 4, then the first four letters will be the
3) If the forth letter is vowel, then mnemonic uses the former three letters. Vowels consists of a,
4) If it is not a word but a sentence, then use the first letters of the former words and the whole
Usage of symbols
1) Space
1
Introduction to the SCPI Language
2) Colon:
If the colon is in front of the first character, it means the following is Root Command. When the
colon is set between two keywords, then it means moving from the current level to the next level.
3) *asterisk
The commands start with asterisk are named Common Command, which is used to execute
4) Braces{}
The parameters enclosed in the braces are optional and are usually separated by the vertical bar
"|". When using this command, one of the parameters must be selected.
5) Vertical Bar |
The vertical bar is used to separate multiple parameters and one of the parameters must be
The parameter enclosed in the triangle brackets must be replaced by an effective value .
Parameter Type
1) Value
The command required to use value type parameter. It’s compatible with all the common
decimal display terms including optional symbol, decimal point, scientific notation and etc.
VOLTage:{AC|DC}:RANGe {<range>|MINimum|MAXimum}
2
Introduction to the SCPI Language
2) Discrete
TEMPerature:RTD:UNIT {C|F|K}
3) Integer
Unless otherwise noted, the parameter can be any integer (NR1 format) within the effective value
range. Note that, do not set the parameter to a decimal, otherwise errors will occur.
4) Bool
TEMPerature:RTD:NULL {OFF|ON}
Command Abbreviation
Each SCPI command can be written mixed with uppercase and lowercase according to the syntax
rules, and the capital letter part is just the abbreviation of the command. If abbreviation is used,
all the capital letters in the command must be written completely. For parameters with units,
VOLTage:DC:RANGe
Abbreviation Below:
VOLT:DC:RANG
3
Introduction to the SCPI Language
Contact Us
If you have any problem or requirement when using our products, please contact OWON.
E-mail: [email protected]
Website:www.owon.com.cn
Third-party API
The SCPI protocol of this product adopts USB port or LAN port to communication.
If you want to use the software of our company, after you open the software, click to enter
remote control, then click the SCPI command on the remoter control interface to enable SCPI
4
IEEE488.2 Common Commands
*IDN
Description
Return Format
OWON,<model>,<serial number>,X.XX.XX,{3}
Example
OWON,XDM2041,1546011,V1.0.0,3
*RST
5
SCPI Command List
SenSe subsystem configuration. The basic SenSe command is [SENSe:]FUNCtion[1|2], which can
choose main display and sub display measurement function. FUNCtion[1|2] to switch mode.
Other SenSe command only change specific mode parameter, don’t change mode, for example:
VOLT:AC:RANGE:AUTO ON command will start AC voltage mode and auto-measure, but don’t
[SENSe:]FUNCtion[1|2]
Command format
[SENSe:]FUNCtion[2] "<function>"
[SENSe:]FUNCtion[1|2]?
Function description
Select measure function, some functions can only be selected as main display.
Parameter
[1|2]
1 for main display, 2 for sub display. If leave out this parameter, display defaults at 1 (main display).
The parameter for [SENSe:]FUNCtion[2] "<function>", that is, can only been used as sub
display:
1
SCPI Command List
Return format
Four-wire Resistance
FRES
measure
For FUNCtion2? command, if not start dual display, then return NONe.
2
SCPI Command List
[SENSe:]TEMPerature:RTD:TYPe
Syntax
Description
Parameter
Return format
[SENSe:]TEMPerature:RTD:UNIT
Syntax
[SENSe:]TEMPerature:RTD:UNIT {C|F|K}
Description
Select temperature unit for temperature measurement, optional for C (Celsius), F(Fahrenheit),
K(Kelvin).
Return format
3
SCPI Command List
[SENSe:]TEMPerature:RTD:SHOW
Syntax
[SENSe:]TEMPerature:RTD:SHOW {TEMP|MEAS|ALL}
Description
Select temperature measurement display mode, optional for TEMP (only display temperature),
MEAS (only display measured value), ALL (display both temperature and measured value)
Return format
[SENSe:]CONT:THREshold
Syntax
[SENSe:]CONT:THREshold <values>
Description
CONFigure[:SCALar][:VOLTage]:{AC|DC}
Syntax
CONFigure[:SCALar][:VOLTage]:{AC|DC} [{<range>|MINimum|MAXimum|DEF|AUTO}]
4
SCPI Command List
Description
Restore all the measurement and trigger parameters to default, process AC/DC voltage
Parameter
CONFigure[:SCALar]:CURRent:{AC|DC}
Syntax
CONFigure[:SCALar]:CURRent:{AC|DC} [{<range>|MINimum|MAXimum|DEF|AUTO}]
Description
Restore all the measurement and trigger parameters to default, process AC/DC current
Parameter
CONFigure[:SCALar]:{RESistance|FRESistance}
Syntax
CONFigure[:SCALar]:{RESistance|FRESistance} [{<range>|MINimum|MAXimum|DEF|AUTO}]
5
SCPI Command List
Description
Restore all the measurement and trigger parameters to default, process RESistance and
Parameter
CONFigure[:SCALar]:{FREQuency|PERiod}
Syntax
CONFigure[:SCALar]:{FREQuency|PERiod}
Description
Restore all the measurement and trigger parameters to default, process FREQuency/PERiod
measurement.
CONFigure[:SCALar]:CAPacitance
Syntax
CONFigure[:SCALar]:CAPacitance [{<range>|MINimum|MAXimum|DEF|AUTO}]
Description
Restore all the measurement and trigger parameters to default, process capacitance
6
SCPI Command List
Parameter
CONFigure[:SCALar]:TEMPerature:RTD
Syntax
Description
Restore all the measurement and trigger parameters to default, process temperature
Parameter
CONFigure[:SCALar]:DIODe
Syntax
CONFigure[:SCALar]:DIODe
Description
Restore all the measurement and trigger parameters to default, process diode measurement.
7
SCPI Command List
Parameter
CONFigure[:SCALar]:CONTinuity
Syntax
CONFigure[:SCALar]:CONTinuity
Description
Restore all the measurement and trigger parameters to default, process continuity test.
Parameter
CALCulate command is used to manage math function (Sum up, db/dbm, relative value),
Function command is used to switch math mode (from three modes). AVERage, DB,DBM, NULL
command is used to set corresponding function parameter, won’t change the current math
function.
CALCulate:AVERage:ALL?
Syntax
CALCulate:AVERage:ALL?
Description
8
SCPI Command List
Query returns the minimum value, maximum value , average value and count of all
Parameter
(none)
CALCulate:AVERage:AVERage?
Syntax
CALCulate:AVERage:AVERage?
Description
Query returns the average value of all measurements taken since the statistics were last cleared.
Parameter
(none)
CALCulate:AVERage:MAXimum?
Syntax
CALCulate:AVERage:MAXimum?
Description
9
SCPI Command List
Query returns the maximum value of all measurements taken since the statistics were last
cleared.
Parameter
(none)
CALCulate:AVERage:MINimum?
Syntax
CALCulate:AVERage:MINimum?
Description
Query returns the minimum value of all measurements taken since the statistics were last
cleared.
Parameter
(none)
CALCulate:DB:REFerence
Syntax
Description
10
SCPI Command List
Parameter
CALCulate:DBM:REFerence
Syntax
Description
Parameter
CALCulate:FUNCtion
Syntax
CALCulate:FUNCtion {NULL|DB|DBM|AVERage}
CALCulate:FUNCtion?
Description
11
SCPI Command List
CALCulate:NULL:OFFSet
Syntax
CALCulate:NULL:OFFSet {<value>|MINimum|MAXimum}
CALCulate:NULL:OFFSet? [MINimum|MAXimum]
Description
Parameter
CALCulate:STATe
Syntax
CALCulate:STATe {OFF}
Description
Parameter
12
SCPI Command List
SYSTem:BEEPer:STATe
Syntax
SYSTem:BEEPer:STATe {ON|OFF}
SYSTem:BEEPer:STATe?
Description
Parameter
Return format
SYSTem:LOCal
Syntax
SYSTem:LOCal
Description
Parameter
13
SCPI Command List
SYSTem:REMote
Syntax
SYSTem:REMote
Description
Parameter
Other commands
AUTO
Syntax
AUTO
AUTO?
Description
Enable autoscale
Parameter
Return format
14
SCPI Command List
RANGE
Syntax
RANGE {<range1>|DEF}
Description
Parameter
RATE
Syntax
RATE <speed>
RATE?
Description
Set speed.
Parameter
15
SCPI Command List
Return format
Return current speed, F for high speed, M for middle speed, L for low speed.
MEAS?
Syntax
MEAS?
Description
If start dual display, return main and sub display measured value; or return main display measure
value.
Parameter
Return format
Return measured result by scientific notation. If start dual display, the return format is: main
MEAS1?
Syntax
MEAS1?
Description
16
SCPI Command List
Parameter
Return format
MEAS2?
Syntax
MEAS2?
Description
Parameter
Return format
17