SIGLENT TECHNOLOGIES CO., LTD. All Rights Reserved.
Trademark Information
SIGLENT is the registered trademark of SIGLENT TECHNOLOGIES CO., LTD.
Declaration
SIGLENT products are protected by patent law in and outside of P.R.C.
SIGLENT reserves the right to modify or change parts of or all the specifications or pricing policies
at the company’s sole decision.
Information in this publication replaces all previously corresponding material.
Any way of copying, extracting or translating the contents of this manual is not allowed without the
permission of SIGLENT.
Product Certification
SIGLENT guarantees this product conforms to the national and industrial standards in China and
other international standard conformance certifications are in progress.
Contact Us
If you have any problem or requirement when using our products, please contact SIGLENT
TECHNOLOGIES CO., LTD
This chapter declares the modifications of command in the most recent release of the
programming guide version.
Version E11A at Introduction
Compared with previous versions, this new document redefines the instruction format
of each group according to the SCPI specifications and adopts tree-style
management. However, not all series models support these instructions, see the next
chapter “Supported Models” for details.
4
SDS Series Programming Guide
WWW.SIGLENT.COM
Model
Version for New Commands
SDS5000X
0.9.0 and later
SDS2000X Plus
1.3.5R3 and later
SDS6000 Pro
1.1.7.0 and later
Supported Models
The commands and queries listed in this document can be used for SIGLENTs Digital
Oscilloscope Series as shown below. Models are arranged according to their initial
release dates.
5
SDS Series Programming Guide
WWW.SIGLENT.COM
Programming Overview
This chapter introduces how to build communication between the instrument and the
PC. It also introduces how to configure a system for remote instrument control.
Users can remotely control the instrument through USB and LAN interfaces, in
combination with National Instruments NI-VISA and programming languages.
Through the LAN interface, users can communicate using VXI-11, Sockets and Telnet
protocols, depending on the capabilities of the specific instrument.
Establishing Communications
Install NI-VISA
USB control requires the National Instruments NI-VISA Library for communications.
We also recommend using it for LAN communications for its ease of use, but sockets,
telnet, and VXI-11 can also be implemented via LAN connections.
Currently, NI-VISA is packaged in two versions: A full version and a Run-Time Engine
version. The full version includes the NI device drivers and a tool named NI MAX
which is a user interface to control and test remotely connected devices. The
Run-Time Engine is recommended, as it is a much smaller download than the full
version and includes the necessary tools for basic communication to instruments.
For example, you can get the NI-VISA 5.4 full version from
http://www.ni.com/download/ni-visa-5.4/4230/en/
.
You also can download NI-VISA Run-Time Engine 5.4 to your PC and install it as the
default selection. Its installation process is similar to the full version.
After you downloaded the file, follow these steps to install NI-VISA (The full version of
NI-VISA 5.4 is used in this example. Newer versions are likely and should be
compatible with SIGLENT instrumentation. Download the latest version available for
the operating system being used by the controlling computer):
a. Double click the visa540_full.exe, the dialog will be similar to that shown below:
6
SDS Series Programming Guide
WWW.SIGLENT.COM
b. Click Unzip, the installation process will automatically launch after unzipping files.
If your computer needs to install .NET Framework 4, it may auto start.
c. The NI-VISA installing dialog is shown above. Click Next to start the installation
process.
7
SDS Series Programming Guide
WWW.SIGLENT.COM
d. Set the install path. The default path is “C:\Program Files\National Instruments\”,
you can change it. Click Next, dialog shown as above.
e. Click Next twice, in the License Agreement dialog, select the “I accept the above
2 License Agreement(s).”,and click Next, dialog shown as below:
8
SDS Series Programming Guide
WWW.SIGLENT.COM
f. Click Next to begin the installation.
g. Now the installation is complete. Reboot your PC.
Connect the Instrument
Depending on the specific model, your oscilloscope may be able to communicate with
a PC through the USB or LAN interface.
Connect the instrument and the USB Host interface of the PC using a USB cable.
Assuming your PC is already turned on, turn on your oscilloscope, and then the PC
will display the “Device Setup” screen as it automatically installs the device driver as
shown below.
Wait for the installation to complete and then proceed to the next step.
9
SDS Series Programming Guide
WWW.SIGLENT.COM
Remote Control
User-defined Programming
Users can use SCPI commands via a computer to program and control the digital
oscilloscope. For details, refer to the introductions in "Programming Examples".
Send SCPI Commands via NI-MAX
NI-Measurement and Automation eXplorer (NI-MAX) is a program created and
maintained by National Instruments. It provides a basic remote control interface for
VXI, LAN, USB, GPIB, and Serial communications. It is a utility that enables you to
send commands one-at-a-time and also retrieve data from connected devices. It is a
great tool for troubleshooting and testing command sequences. The oscilloscopes
can be controlled remotely by sending SCPI commands via NI-MAX.
Using SCPI with Telnet
Telnet provides a means of communicating with the oscilloscopes over a LAN
connection. The Telnet protocol sends SCPI commands to the oscilloscopes from a
PC and is similar to communicating with the oscilloscopes over USB. It sends and
receives information interactively: one command at a time. Windows operating
systems use a command prompt style interface for the Telnet client. The steps are as
follows:
1. On your PC, click Start > All Programs > Accessories > Command Prompt.
2. At the command prompt, type in
telnet
.
3. Press the Enter key. The Telnet display screen will be displayed.
4. At the Telnet command line, type:
open XXX.XXX.XXX.XXX 5024
Where
XXX.XXX.XXX.XXX
should see a response similar to the following:
is the instrument’s IP address and 5024 is the port. You
10
SDS Series Programming Guide
WWW.SIGLENT.COM
5. At the SCPI> prompt, input the SCPI commands such as
*IDN?
to return the
company name, model number, serial number, and firmware version number.
6. To exit the SCPI> session, press the Ctrl+] keys simultaneously.
7. Type
quit
at the prompt or close the Telnet window to close the connection to the
instrument and exit Telnet.
Using SCPI with Sockets
Socket API can be used to control the SDS2000X Plus series via LAN without
installing any other libraries. This can reduce the complexity of programming.
SOCKET ADDRESS IP address+port number
IP ADDRESS SDS IP address
PORT NUMBER 5025
Please see the section "Examples of Using Sockets" for the details.
11
SDS Series Programming Guide
WWW.SIGLENT.COM
Introduction to the SCPI Language
Command and Query Structure
Commands consist of set commands and query commands (usually called
commands and queries). Commands modify oscilloscope settings or tell the
oscilloscope to perform a specific action. Queries cause the oscilloscope to return
data and status information. Not all commands have both a set and a query form.
Some commands have set only and some have query only.
Commands usually start with a colon [:]. A keyword is separated by a colon (:)
followed by optional parameter settings. A question mark (?) is added after the
command line to indicate that this function is queried. The command keyword is
separated from the first parameter by spaces.
Example:
:CHANnel:SCALe <value>
:CHANnel:SCALe?
Long and Short Form
Each command has both a long and a short form. Note that elsewhere in this
document a special notation is employed to differentiate the short form keyword from
the long form of the same keyword. The long form of the keyword is shown, with the
short form portion shown in uppercase characters, and the rest of the keyword is
shown in lowercase characters. If you want to abbreviate, you have to type all the
capital letters in the command format.
Example:
:CHANnel1:SCALe?
CHAN1:SCAL?
Syntax Notation
The following notations are used in the commands:
< > (Angle Brackets)
Angle brackets enclose words that are used as placeholders, of which there are two
types: the header path and the data parameter of a command. Parameters are
12
SDS Series Programming Guide
WWW.SIGLENT.COM
Type
Meaning
<NR1>
Signed integer value
<NR2>
Floating point value without an exponent
<NR3>
Floating point value with an exponent
distinguished by enclosing the type name in angle brackets.
:= (Defined As)
A colon followed by an equals sign separates a placeholder from the description of the
type and range of values that may be used in a command instead of the placeholder.
{ } (Braces)
Braces or curly brackets are used to enclose one or more parameters that may be
included zero or more times. The vertical bar (|) can be read as “or” and is used to
separate alternative parameter options.
[ ] (Square Brackets)
Square brackets are used to enclose a keyword that is optional when programming
the command; that is, the instrument shall process the command to have the same
effect whether the option node is omitted by the programmer or not.
… (Ellipsis)
An ellipsis (trailing dots) indicates that the preceding element may be repeated one or
more times.
Parameter Types
Enumeration
Enter these arguments as unquoted text words. Like keywords, enumeration
arguments follow the same convention where the portion indicated in uppercase is
required and that in lowercase is optional.
Numeric
Many oscilloscope commands require numeric arguments. The syntax shows the
format that the oscilloscope returns in response to a query. This is also the preferred
format when sending the command to the oscilloscope, though any of the formats will
be accepted. This documentation represents these arguments as described below.
13
SDS Series Programming Guide
WWW.SIGLENT.COM
<bin>
Signed or unsigned integer in binary format
Type
Meaning
<qstring>
Quoted string of ASCII text
Quoted String
A quoted string is simply a group of ASCII characters enclosed by double quote (").
The following is an example of a quoted string: "This is a quoted string". This
documentation represents these arguments as follows: Some commands accept or
return data in the form of a quoted string
A quoted string can include any character defined in the 7-bit ASCII character set.
Follow these rules when you use quoted strings:
1. Use a double quote character to open and close the string.
Example: "this is a valid string".
2. You can mix quotation marks within a string as long as you follow the previous rule.
But cannot include a double quote character within a string by repeating the quote.
Example: "this is an 'acceptable' string".
3. You cannot include double quotes character within a string by repeating the double
quote.
Example: "here is a "" mark". It will be recognized as "here is a ".
4. Strings can have upper or lower case characters. But the oscilloscope will
automatically convert it to uppercase.
5. A carriage return or line feed embedded in a quoted string does be recognized as
the string.
Here are some invalid strings:
"Invalid string argument' (quotes are not of the same type)
"here is a "" mark" (Duplicate double quotes inside double quotes)
14
SDS Series Programming Guide
WWW.SIGLENT.COM
Commands & Queries
This chapter introduces each command subsystem of the SIGLENT Digital
Oscilloscope Series command set. The contents of this chapter are shown as below:
Common (*) Commands
Root(:) Commands
ACQUire Commands
CHANnel Commands
CURSor Commands
DECode Commands
DIGital Commands [Option]
DISPlay Commands
FUNCtion Commands
HISTORy Commands
MEASure Commands
MTEst Commands
RECall Commands
REF Commands
SAVE Commands
SYSTem Commands
TIMebase Commands
TRIGger Commands
WAVeform Commands
15
SDS Series Programming Guide
WWW.SIGLENT.COM
Common (*) Commands
The IEEE 488.2 standard defines some general commands for querying the basic
information of an instrument or performing common basic operations. These
commands usually start with *, and the command key length is 3 characters.
*IDN
*OPC
*RST
16
SDS Series Programming Guide
WWW.SIGLENT.COM
Query
DESCRIPTION
The command query identifies the instrument type and
software version. The response consists of four different
fields providing information on the manufacturer, the scope
model, the serial number and the firmware revision.
The commandquery places an ASCII "1" in the output queue
when all pending device operations have completed. The
interface hangs until this query returns.
QUERY SYNTAX
*OPC?
RESPONSE FORMAT
1
EXAMPLE
Query message:
*OPC?
Response message:
1
*OPC
18
SDS Series Programming Guide
WWW.SIGLENT.COM
Command
DESCRIPTION
Resets the oscilloscope to the default configuration,
equivalent to the Default button on the front panel.
The Root commands for querying the basic information of an instrument or performing
common basic operations. These commands are only located at the root of the
command tree, with no next level and no parameters.
:AUToset
:PRINt
20
SDS Series Programming Guide
WWW.SIGLENT.COM
Command
DESCRIPTION
This command attempts to automatically adjust the trigger,
vertical, and horizontal controls of the oscilloscope to deliver
a usable display of the input signal. Autoset is not
recommended for use on low frequency events (< 100 Hz).
COMMAND SYNTAX
:AUToset
EXAMPLE
Command message:
:AUToset
AUT
:AUToset
21
SDS Series Programming Guide
WWW.SIGLENT.COM
Command
DESCRIPTION
The command saves the screen image and specifies the
image format.
COMMAND SYNTAX
:PRINt <type>
<type>:= {BMP|PNG}
BMP selects bitmap format
PNG selects Portable Networks Graphics format
EXAMPLE
The following command saves the screen image of the BMP
type.
Command message:
:PRINt BMP
PRIN BMP
:PRINt
22
SDS Series Programming Guide
WWW.SIGLENT.COM
ACQUire Commands
The :ACQUIRE subsystem commands control the way in which waveforms are
acquired. These commands set the parameters for acquiring and storing data.
The command sets the rate of waveform capture.This
command can provide a high-speed waveform capture rate
to help capture signal anomalies.
The query returns the current acquisition rate mode.
COMMAND SYNTAX
:ACQuire:AMODe <rate>
<rate>:= {FAST|SLOW}
FAST selects fast waveform capture
SLOW selects slow waveform capture
QUERY SYNTAX
:ACQuire:AMODe?
RESPONSE FORMAT
<rate>
<rate>:= {FAST|SLOW}
EXAMPLE
The following command sets the FAST acquisition rate
mode.
Command message:
:ACQuire:AMODe FAST
ACQ:AMOD FAST
Query message:
ACQ:AMOD?
Response message:
FAST
:ACQuire:AMODe
24
SDS Series Programming Guide
WWW.SIGLENT.COM
Command
DESCRIPTION
The command clears the sweep and restarts the acquisition.
It is equivalent to the Clear Sweeps button on the front
panel.
COMMAND SYNTAX
:ACQuire:CSWeep
EXAMPLE
The following command clears acquisition sweep.
Command message:
:ACQuire:CSWeep
ACQ:CSW
:ACQuire:CSWeep
25
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the method of interpolation.
The query returns the current method of interpolation.
COMMAND SYNTAX
:ACQuire:INTerpolation <state>
<state>:= {ON|OFF}
ON selects sinx/x (sinc) interpolation
OFF selects linear interpolation
QUERY SYNTAX
:ACQuire:INTerpolation?
RESPONSE FORMAT
<state>
<state>:= {ON|OFF}
EXAMPLE
The following command enables sinusoidal interpretation.
Command message:
:ACQuire:INTerpolation ON
ACQ:INT ON
Query message:
ACQ:INT?
Response message:
ON
:ACQuire:INTerpolation
26
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the acquisition mode of the
oscilloscope.
The query returns the current acquisition mode of the
oscilloscope.
COMMAND SYNTAX
:ACQuire:MODE <mode_type>
<mode_type>:= {YT|XY|ROLL}
YT mode plots amplitude (Y) vs. time (T)
XY mode plots channel X vs. channel Y, commonly
referred to as a Lissajous curve
Roll mode plots amplitude (Y) vs. time (T) as in YT
mode, but begins to write the waveforms from the
right-hand side of the display. This is similar to a “strip
chart” recording and is ideal for slow events that
happen a few times/second.
QUERY SYNTAX
:ACQuire:MODE?
RESPONSE FORMAT
<mode_type>
<mode_type>:= {YT|XY|ROLL}
EXAMPLE
The following command sets the mode of the oscilloscope
as YT.
Command message:
:ACQuire:MODE YT
ACQ:MODE YT
Query message:
ACQ:MODE?
Response message:
YT
:ACQuire:MODE
27
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the maximum memory depth.
The query returns the maximum memory depth.
COMMAND SYNTAX
:ACQuire:MDEPth <memory_size>
<memory_size>:= Varies by model. See the table below
for details:
Model
<memory_size>
SDS5000X
Single Channel
{250k|1.25M|2.5M|12.5M|25M|125M|
250M}
Dual-Channel
{125k|625k|1.25M|6.25M|12.5M|
62.5M|125M}
SDS2000X Plus
Single Channel
{20k|200k|2M|20M|200M}
Dual-Channel
{10k|100k|1M|10M|100M}
SDS6000 Pro
Single Channel
{1.25k|5k|25k|50k|250k|500k|
2.5M|5M|12.5M|125M|250M}
Dual-Channel
{1.25k|2.5k|12.5k|25k|125k|250k|
1.25M|2.5M|12.5M|62.5M|125M}
Note:
Single Channel Mode: Only one of C1/C2 is turned
on, and only one of C3/C4 is turned on.
Dual-Channel Mode: Both C1/C2 are turned on, or
both C3/C4 are turned on.
Turn on digital channels or set the acquisition type to
AVERage/ERES or set the acquisition mode to ROLL,
will limit the memory depth.
QUERY SYNTAX
:ACQuire:MDEPth?
RESPONSE FORMAT
<memory_size>
EXAMPLE
The following command sets the memory depth to 125
Mpts for the SDS5000X series.
:ACQuire:MDEPth
28
SDS Series Programming Guide
WWW.SIGLENT.COM
Command message:
:ACQuire:MDEPth 125M
ACQ:MDEP 125M
Query message:
:ACQ:MDEP?
Response message:
125M
RELATED COMMANDS
:ACQuire:MODE
:ACQuire:TYPE
:DIGital
29
SDS Series Programming Guide
WWW.SIGLENT.COM
Query
DESCRIPTION
The query returns the number of sampled points of the
current waveform on the screen.
QUERY SYNTAX
:ACQuire:POINts?
RESPONSE FORMAT
<point>
<point>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command queries the points of current
acquisition.
Query message:
ACQ:POIN?
Response message:
1.25E+08
:ACQuire:POINts
30
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command enables or disables sequence acquisition
mode.
The query returns whether the current sequence acquisition
switch is on or not.
COMMAND SYNTAX
:ACQuire:SEQuence <state>
<state>:= {ON|OFF}
QUERY SYNTAX
:ACQuire:SEQuence?
RESPONSE FORMAT
<state>
<state>:= {ON|OFF}
EXAMPLE
The following command turns on sequence acquisition mode.
Command message:
:ACQuire:SEQuence ON
ACQ:SEQ ON
Query message:
ACQ:SEQ?
Response message:
ON
RELATED COMMANDS
:ACQuire:SEQuence:COUNt
:ACQuire:SEQuence
31
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the number of memory segments to
acquire. The maximum number of segments may be limited
by the memory depth of your oscilloscope.
The query returns the current count setting.
COMMAND SYNTAX
:ACQuire:SEQuence:COUNt <count>
<count>:= Value in NR1 format, including an integer and no
decimal point, like 1. The range of the value varies from the
models and the current timebase, see the user manual for
details.
QUERY SYNTAX
: ACQuire:SEQuence:COUNt?
RESPONSE FORMAT
<count_value>
<count_value>:= Value in NR1 format, including an integer
and no decimal point, like 1.
EXAMPLE
The following command sets the count of sequence segment
as 5.
Command message:
:ACQuire:SEQuence:COUNt 5
ACQ:SEQ:COUN 5
Query message:
ACQ:SEQ:COUN?
Response message:
5
RELATED COMMANDS
:ACQuire:SEQuence
:ACQuire:SEQuence:COUNt
32
SDS Series Programming Guide
WWW.SIGLENT.COM
Query
DESCRIPTION
The query returns the current sampling rate.
QUERY SYNTAX
:ACQuire:SRATe?
RESPONSE FORMAT
<sample_rate>
<sample_rate>:= Value in NR3 format, including a decimal
point and exponent, like 1.23E+2.
EXAMPLE
The following command queries the current sampling rate.
Query message:
ACQ:SRAT?
Response message:
1.25E+09
:ACQuire:SRATe
33
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command selects the type of data acquisition that is to
take place.
NORMal sets the oscilloscope to normal mode.
PEAK sets the oscilloscope to peak detect mode.
AVERage sets the oscilloscope acquisition to averaging
mode.You can set the number of averages by sending the
command followed by a numeric integer value <times>.
ERES sets the oscilloscope to the enhanced resolution
mode. This is essentially a digital boxcar filter and is used
to reduce noise at slower sweep speeds. You can set the
enhanced bits by sending the command followed by the
<bits>.
Note:
The AVERage|ERES type is not available when in sequence
mode (:ACQuire:SEQuence ON).
<times>:= {4|16|32|64|128|256|512|1024}, when <type> is
AVERage.
<bits>:= {0.5|1.0|1.5|2.0|2.5|3.0} when <type> is ERES.
EXAMPLE
The following command sets the acquisition type as AVERage,
and the average number as 16.
:ACQuire:TYPE
34
SDS Series Programming Guide
WWW.SIGLENT.COM
Command message:
:ACQuire:TYPE AVERage,16
ACQ:TYPE AVER,16
Query message:
ACQ:TYPE?
Response message:
AVERage,16
35
SDS Series Programming Guide
WWW.SIGLENT.COM
CHANnel Commands
The :CHANnel<n> subsystem commands control the analog channels. Channels are
independently programmable for offset, probe, coupling, bandwidth limit, inversion,
and more functions. The channel index (1, 2, 3, or 4) specified in the command
selects the analog channel that is affected by the command.
The command enables or disables the bandwidth-limiting
low-pass filter. If the bandwidth filter is on, it will filter the
signal to reduce noise and other unwanted high frequency
components. When the filter is on, the bandwidth of the
specified channel is limited to approximately 20 MHz or 200
MHz.
The query returns the current setting of the low-pass filter.
COMMAND SYNTAX
:CHANnel<n>:BWLimit <bwlimit>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<bwlimit>:= {FULL|20M|200M}
FULL sets the oscilloscope bandwidth to full.
20M enables the 20 MHz bandwidth filter.
200M enables the 200 MHz bandwidth filter.
QUERY SYNTAX
:CHANnel<n>:BWLimit?
RESPONSE FORMAT
<bwlimit>
<bwlimit>:= {FULL|20M|200M}
EXAMPLE
The following command sets the bandwidth filter of Channel 1
to 20 MHz.
Command message:
:CHANnel1:BWLimit 20M
CHAN1:BWL 20M
Query message:
CHAN1:BWL?
Response message:
20M
:CHANnel<n>:BWLimit
37
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command selects the coupling mode of the specified
input channel.
The query returns the coupling mode of the specified
channel.
COMMAND SYNTAX
:CHANnel<n>:COUPling <coupling_mode>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<coupling_mode>:= {DC|AC|GND}
DC sets the channel coupling to DC.
AC sets the channel coupling to AC.
GND sets the channel coupling to Ground.
QUERY SYNTAX
:CHANnel<n>: COUPling?
RESPONSE FORMAT
<coupling_mode>
<coupling_mode>:= {DC|AC|GND}
EXAMPLE
The following command sets the coupling mode of Channel 1
to AC.
Command message:
:CHANnel1:COUPling AC
CHAN1:COUP AC
Query message:
CHAN1:COUP?
Response message:
AC
:CHANnel<n>:COUPling
38
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the input impedance of the selected
channel. There are two impedance values available,
depending on model. They are 1 MOhm and 50.
The query returns the current impedance setting of the
selected channel.
COMMAND SYNTAX
:CHANnel<n>:IMPedance <impedance>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<impedance>:= {ONEMeg|FIFTy}
ONEMeg means 1 Mohm.
FIFTy means 50 ohm.
Note:
When set to FIFTy, the range of legal values set by
the :CHAN<n>:SCAL commands is limited to less than 1 V.
QUERY SYNTAX
:CHANnel<n>:IMPedance?
RESPONSE FORMAT
<impedance>
<impedance>:= {ONEMeg|FIFTy}
EXAMPLE
The following command sets the impedance of Channel 2 to 1
MOhm.
Command message:
:CHANnel2:IMPedance ONEMeg
CHAN2:IMP ONEM
Query message:
CHAN2:IMP?
Response message:
ONEMeg
RELATED COMMANDS
:CHANnel<n>:SCALe
:CHANnel<n>:IMPedance
39
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command selects whether or not to mathematically invert
the input signal for the specified channel. This is a
mathematical operation and does not change the polarity of
the input signal with reference to ground.
The query returns the current state of the channel inversion.
COMMAND SYNTAX
:CHANnel<n>:INVert <state>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<state>:= {ON|OFF}
ON enables channel inversion.
Off disables channel inversion.
QUERY SYNTAX
:CHANnel<n>:INVert?
RESPONSE FORMAT
<state>
<state>:= {ON|OFF}
EXAMPLE
The following command inverts the display of Channel 2.
Command message:
:CHANnel2:INVert ON
CHAN2:INV ON
Query message:
CHAN2:INV?
Response message:
ON
:CHANnel<n>:INVert
40
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command is to turn the specified channel label on or off.
The query returns the label associated with a particular
channel.
COMMAND SYNTAX
:CHANnel<n>:LABel <state>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<state>:= {ON|OFF}
ON enables the channel label.
OFF disables the channel label.
QUERY SYNTAX
:CHANnel<n>:LABel?
RESPONSE FORMAT
<state>
<state>:= {ON|OFF}
EXAMPLE
The following command turns on the label of Channel 1.
Command message:
:CHANnel1:LABel ON
CHAN1:LAB ON
Query message:
CHAN1:LAB?
Response message:
ON
:CHANnel<n>:LABel
41
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the selected channel label to the string
that follows. Setting a label for a channel also adds the name
to the label list in non-volatile memory (replacing the oldest
label in the list)
The query returns the current label text of the selected
channel.
COMMAND SYNTAX
:CHANnel<n>:LABel:TEXT <qstring>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<qstring>:= Quoted string of ASCII text. The length of the
string is limited to 20.
Note:
All characters will be automatically converted to uppercase.
QUERY SYNTAX
:CHANnel<n>:LABel:TEXT?
RESPONSE FORMAT
<string>
EXAMPLE
The following command sets the label text of Channel 2 to
“VOUT”.
Command message:
:CHANnel2:LABel:TEXT
”
VOUT”
CHAN2:LAB:TEXT “VOUT”
Query message:
CHAN2:LAB:TEXT?
Response message:
“
VOUT
”
RELATED COMMANDS
:CHANnel<n>:LABel
:CHANnel<n>:LABel:TEXT
42
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command allows adjustment of the vertical offset of the
specified input channel. The maximum ranges depend on the
fixed sensitivity setting.
The query returns the offset value of the specified channel.
COMMAND SYNTAX
:CHANnel<n>:OFFSet <offset_value>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<offset_value>:= Value in NR3 format, including a decimal
point and exponent, like 1.23E+2.
Note:
The range of legal values varies with the value set by
the :CHANnel<n>:SCALe commands.
QUERY SYNTAX
:CHANnel<n>:OFFSet?
RESPONSE FORMAT
<offset_value>
<offset_value>:= Value in NR3 format, including a decimal
point and exponent, like 1.23E+2.
EXAMPLE
The following command sets the offset of Channel 2 to -3.8 V.
Command message:
:CHANnel2:OFFSet -3.8E+00
CHAN1:OFFS -3.8E+00
Query message:
CHAN1:OFFS?
Response message:
-3.8E+00
RELATED COMMANDS
:CHANnel<n>:SCALe
:CHANnel<n>:OFFSet
43
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command specifies the probe attenuation factor for the
selected channel. This command does not change the actual
input sensitivity of the oscilloscope. It changes the reference
constants for scaling the display factors, for making automatic
measurements, and for setting trigger levels.
The query returns the current probe attenuation factor for the
selected channel.
COMMAND SYNTAX
:CHANnel<n>:PROBe <attenuation>[,<value>]
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<attenuation>:= {DEFault|VALue}
DEFault means set to the default value 1X.
VALue means set to the <value>.
<value>:= Probe attenuation ratio in NR3 format when
<attenuation> is VALue, and the range is [1E-6, 1E6].
QUERY SYNTAX
:CHANnel<n>:PROBe?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the attenuation factor of
Channel 1 to 100:1. To ensure the data matches the true
signal voltage values, the physical probe attenuation must
match the scope attenuation values for that input channel.
The command sets the vertical sensitivity in Volts/div. If the
probe attenuation is changed, the scale value is multiplied by
the probe's attenuation factor.
The query returns the current vertical sensitivity of the
specified channel.
COMMAND SYNTAX
:CHANnel<n>:SCALe <scale>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<scale>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
Note:
The range of value varies from the models and the bandwidth
of the model. See the data sheet for details.
QUERY SYNTAX
:CHANnel<n>:SCALe?
RESPONSE FORMAT
<scale>
<scale>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2. The return value is affected by probe.
EXAMPLE
The following command sets the vertical sensitivity of
Channel 1 to 50 mV/div
Command message:
:CHANnel1:SCALe 5.00E-02
CHAN1:SCAL 5.00E-02
Query message:
CHAN1:SCAL?
Response message:
5.00E-02
5.00E-01 (when the probe attenuation ratio is 10:1)
RELATED COMMANDS
:CHANnel<n>:PROBe
:CHANnel<n>:SCALe
46
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the channel-to-channel skew factor for
the specified channel.
The query returns the current probe skew setting for the
selected channel.
COMMAND SYNTAX
:CHANnel<n>:SKEW <skew_value>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<skew_value>:= Value in NR3 format, including a decimal
point and exponent, like 1.23E+2. The range of the value is
[-1.00E-07, 1.00E-07].
QUERY SYNTAX
:CHANnel<n>:SKEW?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the skew of Channel 1 to 1.52
ns.
Command message:
:CHANnel1:SKEW 1.52E-09
CHAN1:SKEW 1.52E-09
Query message:
CHAN1:SKEW?
Response message:
1.52E-09
:CHANnel<n>:SKEW
47
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command turns the display of the specified channel on or
off.
The query returns current status of the selected channel.
COMMAND SYNTAX
:CHANnel<n>:SWITch <state>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<state>:= {OFF|ON}
QUERY SYNTAX
:CHANnel<n>:SWITch?
RESPONSE FORMAT
<state>
<state>:= {OFF|ON}
EXAMPLE
The following command displays Channel 1.
Command message:
:CHANnel1:SWITch ON
CHAN1:SWIT ON
Query message:
CHAN1:SWIT?
Response message:
ON
:CHANnel<n>:SWITch
48
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command change the unit of input signal of specified
channel. There is voltage (V) and current (A) two choice to
choose for each channel.
The query returns the current unit of the concerned channel.
COMMAND SYNTAX
:CHANnel<n>:UNIT <unit>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<unit>:= {V|A}
Note:
The related parameter units are changed to the selected unit
after processing this command. This also effects
measurement results, cursors value, channel sensitivity, and
trigger level.
QUERY SYNTAX
:CHANnel<n>:UNIT?
RESPONSE FORMAT
<unit>
<unit>:= {V|A}
EXAMPLE
The following command sets the unit of Channel 1 to A.
Command message:
:CHANnel1:UNIT A
CHAN1:UNIT A
Query message:
CHAN1:UNIT?
Response message:
A
:CHANnel<n>:UNIT
49
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command is used to whether display the waveform of the
specified channel or not.Different from the
command :CHANnel<n>:SWITch, it sets the state on the
display, and the latter sets the physical switch.
The query returns whether the waveform display function of
the selected channel is on or off.
COMMAND SYNTAX
:CHANnel<n>:VISible <display_state>
<n>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<display_state>:= {ON|OFF}
QUERY SYNTAX
:CHANnel<n>:VISible?
RESPONSE FORMAT
<display_state>
<display_state>:= {ON|OFF}
EXAMPLE
The following command sets the display of Channel 2 to ON.
Command message:
:CHANnel2:VISible ON
CHAN2:VIS ON
Query message:
CHAN2:VIS?
Response message:
ON
:CHANnel<n>:VISible
50
SDS Series Programming Guide
WWW.SIGLENT.COM
CURSor Commands
The :CURSor subsystem commands control the cursor measurement function.
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
EXAMPLE
The following command sets the source of the cursor source
2 as Channel 1.
Command message:
:CURSor:SOURce2 C1
CURS:SOUR2 C1
Query message:
CURS:SOUR2?
Response message:
C1
RELATED COMMANDS
:CURSor:SOURce1
:CURSor:SOURce2
57
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
This command specifies the position of the cursor X1.
The query returns the current position of the cursor X1.
COMMAND SYNTAX
:CURSor:X1 <value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2. The range of the value is
[-horizontal_grid/2*timebase, horizontal_grid/2*timebase].
QUERY SYNTAX
:CURSor:X1?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the value of the cursor X1 to 1
us.
Command message:
:CURSor:X1 1.00E-06
CURS:X1 1.00E-06
Query message:
CURS:X1?
Response message:
1.00E-06
RELATED COMMANDS
:CURSor:X2
:CURSor:XDELta
:CURSor:IXDelta
:CURSor:X1
58
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
This command specifies the position of the cursor X2.
The query returns the current position of the cursor X2.
COMMAND SYNTAX
:CURSor:X2 <value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2. The range of the value is
[-horizontal_grid/2*timebase, horizontal_grid/2*timebase].
QUERY SYNTAX
:CURSor:X2?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the value of the cursor X2 to 1
us.
Command message:
:CURSor:X2 1.00E-06
CURS:X2 1.00E-06
Query message:
CURS:X2?
Response message:
1.00E-06
RELATED COMMANDS
:CURSor:X1
:CURSor:XDELta
:CURSor:IXDelta
:CURSor:X2
59
SDS Series Programming Guide
WWW.SIGLENT.COM
Query
DESCRIPTION
The query returns the horizontal difference between cursor
X1 and cursor X2.
QUERY SYNTAX
:CURSor:XDELta?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command returns the current value of the
cursor X1-X2.
Query message:
CURS:XDEL?
Response message:
1.750E-01
RELATED COMMANDS
:CURSor:X1
:CURSor:X2
:CURSor:IXDelta
:CURSor:XDELta
60
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
This command specifies the expansion strategy around the
cursor X.
The query returns the expansion strategy of the cursor X.
COMMAND SYNTAX
:CURSor:XREFerence <type>
<type>:= {DELay|POSition}
DELay means that the cursor value is fixed, and the
on-screen cursor position changes for different timebase
values.
POSition means that the cursor position is fixed, and
does not change at any time. Timebase changes cause
an expansion or contraction of the waveforms around the
cursor position.
QUERY SYNTAX
:CURSor:XREFerence?
RESPONSE FORMAT
<type>
< type >:= {DELay|POSition}
EXAMPLE
The following command sets the type of the X cursor
reference to delay.
Command message:
:CURSor:XREFerence DELay
CURS:XREF DEL
Query message:
CURS:XREF?
Response message:
DELay
:CURSor:XREFerence
61
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
This command specifies the position of the cursor Y1.
The query returns the current position of the cursor Y1.
COMMAND SYNTAX
:CURSor:Y1 <value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2. The range of the value is
[-vertical_grid/2*vertical_scale, vertical_grid/2*vertical_scale].
QUERY SYNTAX
:CURSor:Y1?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the value of the cursor Y1 to 12
V.
Command message:
:CURSor:Y1 1.20E+01
CURS:Y1 1.20E+01
Query message:
CURS:Y1?
Response message:
1.20E+01
RELATED COMMANDS
:CURSor:Y2
:CURSor:YDELta
:CURSor:Y1
62
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
This command specifies the position of the cursor Y2.
The query returns the current position of the cursor Y2.
COMMAND SYNTAX
:CURSor:Y2 <value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2. The range of the value is
[-vertical_grid/2*vertical_scale, vertical_grid/2*vertical_scale]
QUERY SYNTAX
:CURSor:Y2?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the value of the cursor Y2 to 10
V.
Command message:
:CURSor:Y2 1.00E+01
CURS:Y2 1.00E+01
Query message:
CURS:Y2?
Response message:
1.00E+01
RELATED COMMANDS
:CURSor:Y1
:CURSor:YDELta
:CURSor:Y2
63
SDS Series Programming Guide
WWW.SIGLENT.COM
Query
DESCRIPTION
The query returns the vertical difference between the cursor
Y1 and cursor Y2.
QUERY SYNTAX
:CURSor:YDELta?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command returns the current value of the
cursor Y1-Y2.
Query message:
CURS:YDEL?
Response message:
1.80E+01
RELATED COMMANDS
:CURSor:Y1
:CURSor:Y2
:CURSor:YDELta
64
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
This command specifies the expansion strategy of the Y
cursor.
The query returns the expansion strategy of the Y cursor.
COMMAND SYNTAX
:CURSor:YREFerence <type>
<type>:= {OFFSet|POSition}
OFFSet means that the cursor value is fixed, and the
cursor position moves with vertical scale changes. The
cursors expand or contract if the vertical scale changes.
POSition means that the cursor position is fixed, and
does not change at any time.
QUERY SYNTAX
:CURSor:YREFerence?
RESPONSE FORMAT
<type>
<type>:= {OFFSet|POSition}
EXAMPLE
The following command sets the type of the Y cursor
reference to offset.
Command message:
:CURSor:YREFerence OFFSet
CURS:YREF OFFS
Query message:
CURS:YREF?
Response message:
OFFSet
:CURSor:YREFerence
65
SDS Series Programming Guide
WWW.SIGLENT.COM
DECode Commands
The :DECode subsystem commands control the basic decode functions of the
oscilloscope.
This command selects whether the decoding result includes
read bit and write bit.
This query returns whether the decoding result includes read
and write bits.
COMMAND SYNTAX
:DECode:BUS<n>:IIC:RWBit <state>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<state>:= {ON|OFF}.
QUERY SYNTAX
:DECode:BUS<n>:IIC:RWBit?
RESPONSE FORMAT
<state>
<state>:= {ON|OFF}
EXAMPLE
The following command selects to enable read and write bits
on bus 1.
Command message:
:DECode:BUS1:IIC:RWBit ON
DEC:BUS1:IIC:RWB ON
Query message:
DEC:BUS1:IIC:RWB?
Response message:
ON
:DECode:BUS<n>:IIC:RWBit
76
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command selects the SCL source of the IIC bus.
This query returns the current SCL source of the IIC bus.
COMMAND SYNTAX
:DECode:BUS<n>:IIC:SCLSource <source>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<source>:= {C<x>|D<m>}.
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including
an integer and no decimal point, like 1.
QUERY SYNTAX
:DECode:BUS<n>:IIC:SCLSource?
RESPONSE FORMAT
<source>
<source>:= {C<x>|D<m>}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including
an integer and no decimal point, like 1.
EXAMPLE
The following command selects the SCL source of the IIC
on bus 1 as C1.
Command message:
The command selects the SDA source of the IIC bus.
This query returns the current SDA source of the IIC bus.
COMMAND SYNTAX
:DECode:BUS<n>:IIC:SDASource <source>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<source>:= {C<x>|D<m>}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including
an integer and no decimal point, like 1.
QUERY SYNTAX
:DECode:BUS<n>:IIC:SDASource?
RESPONSE FORMAT
<source>
<source>:= {C<x>|D<m>}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including
an integer and no decimal point, like 1.
EXAMPLE
The following command selects the SDA source of the IIC
on bus 1 as C1.
Command message:
The command selects the CLK source of the SPI bus.
This query returns the current CLK source of the SPI bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:CLKSource <source>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<source>:= {C<x>|D<m>}.
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including
an integer and no decimal point, like 1.
QUERY SYNTAX
:DECode:BUS<n>:SPI:CLKSource?
RESPONSE FORMAT
<source>
<source>:= {C<x>|D<m>}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including
an integer and no decimal point, like 1.
EXAMPLE
The following command selects the CLK source of the SPI
on bus 1 as C1.
This query returns the current CS source of the SPI bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:CSSource <source>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<source>:= {C<x>|D<m>}.
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including an
integer and no decimal point, like 1.
QUERY SYNTAX
:DECode:BUS<n>:SPI:CSSource?
RESPONSE FORMAT
<source>
<source>:= {C<x>|D<m>}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including an
integer and no decimal point, like 1.
EXAMPLE
The following command sets the CS source of the SPI on bus
1 as C1.
Command message:
:DECode:BUS1:SPI:CSSource C1
DEC:BUS1:SPI:CSS C1
Query message:
DEC:BUS1:SPI:CSS?
Response message:
C1
RELATED COMMANDS
:DECode:BUS<n>:SPI:CSThreshold
:DECode:BUS<n>:SPI:CSSource
85
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the threshold of the CS on SPI bus.
This query returns the current threshold of the CS on SPI bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:CSThreshold <value>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
The range of the value varies by model, see the table below
for details.
Model
Value Range
SDS6000 Pro
[-4.5*vertical_scale-vertical_offset,
4.5*vertical_scale-vertical_offset]
SDS5000X
SDS2000X Plus
[-4.1*vertical_scale-vertical_offset,
4.1*vertical_scale-vertical_offset]
QUERY SYNTAX
:DECode:BUS<n>:SPI:CSThreshold?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the threshold of the CS to 1 V on
bus 1.
The command sets the chip selection type of the SPI bus.
This query returns the current chip selection type of the SPI
bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:CSTYpe <type>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<type>:= {NCS|CS|TIMeout[,<time>]}
CS means set to chip select state.
NCS means set to non-chip select state.
TIMeout indicates set to clock timeout status.
<time>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2. The range of the value is [1.00E-07,
5.00E-03].
QUERY SYNTAX
:DECode:BUS<n>:SPI:CSTYpe?
RESPONSE FORMAT
<type>
<type>:= {NCS|CS|TIMeout[,<time>]}
<time>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the chip selection type of the
SPI on bus 1 to CS.
Command message:
:DECode:BUS1:SPI:CSTYpe CS
DEC:BUS1:SPI:CSTY CS
Query message:
DEC:BUS1:SPI:CSTY?
Response message:
CS
:DECode:BUS<n>:SPI:CSTYpe
87
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command sets the data length of the SPI bus.
This query returns the current data length of the SPI bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:DLENgth <value>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command
<value>:= Value in NR1 format, including an integer and no
decimal point, like 1. The range of the value is [4, 32].
QUERY SYNTAX
:DECode:BUS<n>:SPI:DLENgth?
RESPONSE FORMAT
<value>
<value>:= Value in NR1 format, including an integer and no
decimal point, like 1.
EXAMPLE
The following command sets the data length of the SPI on
bus 1 to 5.
Command message:
:DECode:BUS1:SPI:DLENgth 5
DEC:BUS1:SPI:DLEN 5
Query message:
DEC:BUS1:SPI:DLEN?
Response message:
5
:DECode:BUS<n>:SPI:DLENgth
88
SDS Series Programming Guide
WWW.SIGLENT.COM
Command/Query
DESCRIPTION
The command selects the sampling edge of CLK on SPI bus.
This query returns the sampling edge of CLK on SPI bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:LATChedge <slope>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<slope>:= {RISing|FALLing}
QUERY SYNTAX
:DECode:BUS<n>:SPI:LATChedge?
RESPONSE FORMAT
<slope>
<slope>:= {RISing|FALLing}
EXAMPLE
The following command sets the threshold judgment
condition of CLK on bus 1 to RISing.
The command sets the threshold of the MISO on SPI bus.
This query returns the current threshold of the MISO.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:MISOThreshold <value>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
The range of the value varies by model, see the table below
for details.
Model
Value Range
SDS6000 Pro
[-4.5*vertical_scale-vertical_offset,
4.5*vertical_scale-vertical_offset]
SDS5000X
SDS2000X Plus
[-4.1*vertical_scale-vertical_offset,
4.1*vertical_scale-vertical_offset]
QUERY SYNTAX
:DECode:BUS<n>:SPI:MISOThreshold?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the threshold of the MISO to 1 V
on bus 1.
The command selects the MOSI source of the SPI bus.
This query returns the current MOSI source of the SPI bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:MOSISource <source>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<source>:= {C<x>|D<m>|DIS}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including an
integer and no decimal point, like 1.
DIS means no source selected
QUERY SYNTAX
:DECode:BUS<n>:SPI:MOSISource?
RESPONSE FORMAT
<source>
<source>:= {C<x>|D<m>|DIS}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including an
integer and no decimal point, like 1.
EXAMPLE
The following command selects the MOSI source of the SPI
on bus 1 as C1.
Command message:
This query returns the current threshold of the MOSI.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:MOSIThreshold <value>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
The range of the value varies by model, see the table below
for details.
Model
Value Range
SDS6000 Pro
[-4.5*vertical_scale-vertical_offset,
4.5*vertical_scale-vertical_offset]
SDS5000X
SDS2000X Plus
[-4.1*vertical_scale-vertical_offset,
4.1*vertical_scale-vertical_offset]
QUERY SYNTAX
:DECode:BUS<n>:SPI:MOSIThreshold?
RESPONSE FORMAT
<value>
<value>:= Value in NR3 format, including a decimal point and
exponent, like 1.23E+2.
EXAMPLE
The following command sets the threshold of the MOSI to 1 V
on bus 1.
This query returns the current NCS source of the SPI bus.
COMMAND SYNTAX
:DECode:BUS<n>:SPI:NCSSource <source>
<n>:= {1|2}, is attached as a suffix to BUS and defines the
bus that is affected by the command.
<source>:= {C<x>|D<m>}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including an
integer and no decimal point, like 1.
QUERY SYNTAX
:DECode:BUS<n>:SPI:NCSSource?
RESPONSE FORMAT
<source>
<source>:= {C<x>|D<m>}
<x>:= 1 to (# analog channels) in NR1 format, including an
integer and no decimal point, like 1.
<m>:= 0 to (# digital channels - 1) in NR1 format, including an
integer and no decimal point, like 1.
EXAMPLE
The following command sets the NCS source of the SPI on
bus 1 as C1.
Command message: