TEXIO DCS-2000E SERIES, DCS-2204E, DCS-2202E Programming Manual

PROGRAMMING MANUAL
DIGITAL STORAGE OSCILLOSCOPE
DCS-2000E SERIES
B71-0461-01
About a trademark, a registered trademark
A company name and the brand name mentioned in this instruction manual are the trademark or the registered trademark of each company or group in each country and region.
About this instruction manual
When copying the part or all of contents of this instruction manual,
seek the copyright holder. In addition, the specifications of the product and the contents of this instruction manual are subject to change without notice for improvement. Please check to our website for the latest version.
Contents
USING THE PRODUCT SAFELY.............................................................Ⅰ-Ⅴ
1. INTERFACE OVERVIEW ................................................. 1
1-1. Front Panel Overview ........................................................ 1
1-2. Interface Configuration ...................................................... 2
2. COMMAND OVERVIEW .................................................. 9
2-1. Command Syntax .............................................................. 9
3. COMMAND DETAILS..................................................... 10
3-1. Common Commands ......................................................... 11
3-2. Acquisition Commands ...................................................... 16
3-3. Autoscale Commands ....................................................... 21
3-4. Vertical Commands ........................................................... 22
3-5. Math Commands ............................................................... 26
3-6. Cursor Commands ............................................................ 33
3-7. Display Commands ................................ ........................... 41
3-8. Hardcopy Commands ........................................................ 44
3-9. Measure Commands ......................................................... 47
3-10. Measurement Commands ................................................ 68
3-11. Reference Commands ..................................................... 73
3-12. Run Command ................................................................ 75
3-13. Timebase Commands ...................................................... 76
3-14. Trigger Commands ......................................................... 78
3-15. System Commands ....................................................... 109
3-16. Save/Recall Commands ................................................ 110
3-17. Ethernet Commands ..................................................... 113
3-18. Time Commands ........................................................... 113
3-19. Bus Decode Commands ................................................ 114
3-20. Mark Commands ........................................................... 126
3-21. Search Commands ........................................................ 127
3-22. Label Commands ................................ .......................... 154
3-23. Segment Commands ..................................................... 158
3-24. DVM Commands ........................................................... 164
3-25. Go_NoGo Commands ................................................... 166
3-26. Data Logging Commands .............................................. 171
3-27. Remote DiskCommands ................................................ 173
4. APPENDX ................................................................ ....175
4-1. Error messages .............................................................. 175
1
1. INTERFACE OVERVIEW
This manual describes how to use the remote command functionality and lists the command details. The Overview chapter describes how to configure the USB remote control interface and Ethernet interface.
1-1. Front Panel Overview
VARIABLE
POSITION
HORIZONTAL
POSITION
POSITION
POSITION
POSITION
VERTICAL
MATH
REF
BUS
TRIGGER
LEVEL
PUSH TO
ZERO
PUSH TO
ZERO
PUSH TO
ZERO
PUSH TO
ZERO
PUSH TO
ZERO
PUSH TO
ZERO
SCALE
POWER
CH1 CH2 CH3 CH4
2V
1MW16pF
Digital Storage Oscilloscope 200 MHz 1 GS/s
Visual Persistence Oscilloscope
LCD
Variable knob and Select key
Autoset, Run/Stop, Single and Default settings
CH1~CH4
Trigger controls
Function keys
USB Host port, Probe Compensation terminals
Power button
Hardcopy key
Option key
Math, Reference and Bus keys
Bottom menu keys
Horizontal controls
Menu key
Vertical controls
Side menu keys
2
1-2. Interface Configuration 1-2-1. Configure USB Interface
USB Configuration PC side connector
Type A, host
DCS-2000E side connector
Type B, device Speed
1.1/2.0 (high speed)
USB Class
USB-CDC
OS USB Driver
Windows7(32bit/64bit) or higher TEXIO_CDC*.inf
Panel Operation
1. Press the Utility key.
Utility
2. Press I/O from the bottom menu.
3. Press USB Device Port from the side menu and select Computer.
4. Connect the USB cable to the rear panel device port.
5. When the PC asks for the USB driver or ‘Unknown device’ listed in Device Manager, install TEXIO­CDC*.inf attached CD.
6. If the computer can not recognize the new hardware due to the security, please go to update the driver from the "Other devices" in the Device Manager.
Note
You must have administrator account to install driver.
1-2-2. Configure the Ethernet Interface
Ethernet Configuration
MAC Address
Domain Name
Instrument Name
DNS IP Address
User Password
Gateway IP Address
Instrument IP Address
Subnet Mask
Background
The Ethernet interface is used for remote control using a socket server connection.
Panel Operation
1. Connect the Ethernet cable to the LAN port on the rear panel.
2. Press the Utility key.
Utility
3. Press I/O from the bottom menu.
3
4. Press Ethernet from the side menu.
5. Set DHCP/BOOTP to On or Off from the side menu.
Note
IP addresses will automatically be assigned with DHCP/BOOTP set to on. For Static IP Addresses, DHCP/BOOTP should be set to off.
6. Use the Up and Down arrows on the side menu to navigate to each Ethernet configuration item.
Items
MAC Address, Instrument Name, User Password, Instrument IP Address, Domain Name, DNS IP Address, Gateway IP Address, Subnet Mask
7. Use the Variable knob to highlight a character and use the Select key to choose a character.
VARIABLE
Select
Press Backspace to delete a character.
4
Press Save Now to save the configuration. Complete will be displayed when successful.
1-2-3. Configure Socket Server The DCS-2000E supports socket server functionality for direct and full duplex communication with a client PC or device over LAN. By default, the Socket Server is off.
Configure Socket Server
1. Configure the IP address for the DCS­2000E.
2. Press the Utility key.
Utility
3. Press I/O from the bottom menu.
4. Press Socket Server from the side menu.
5. Press Select Port and choose the port number with the Variable knob.
Range
1024~65535
6. Press Set Port to confirm the port number.
7. The Current Port icon will update to the new port number.
8. Press Server and turn the socket server On.
1-2-4. USB Functionality Check
Terminal Application (USB)
Invoke the terminal application such as PuTTY or RealTerm. For USB, set the COM port, baud rate, stop bit, data bit, and parity accordingly. To check the COM port number and associated port settings, see the Device Manager in the PC. For Windows: Control panel → Hardware and Sound→ Device
Manager
5
Example: Configuring RealTerm for RS-232C communication.
Functionality Check
Key in this query command via the terminal application. *idn? This should return the Manufacturer, Model number, Serial number, and Firmware version in the following format. TEXIO, DCS-2204E, PXXXXXX, V1.00
1-2-5. Socket Server Functionality Check
NI Measurement and Automation Explorer
To test the socket server functionality, National Instruments MAX (Measurement and Automation Explorer) can be used. This program is available on the NI website, www.ni.com. The following display and operation will differ depending on the version of MAX, Please use in accordance with the display for your MAX.
Operation
1. Configure the IP address for the DCS­2000E.
2. Configure the socket port.
3. Start the NI Measurement and
Automation Explorer (MAX) program. Using Windows, press:
Start>All Programs>National Instruments>Measurement & Automation
6
4. From the Configuration panel access;
My System>Devices and Interfaces>Network Devices
5. Right click Network Devices and select Create New Visa TCP/IP Resource…
4
5
6. Select Manual Entry of Raw Socket from the popup window.
7. Click Next.
6
7
8. Enter the IP address and socket port number of the DCS-2000E.
9. Click Validate.
10. A popup will appear to tell you if a VISA socket
session was successfully created.
11. Click Next.
7
10
11
8
9
12. Choose an alias for the socket connection if you like.
13. Click Finish to finish the configuration.
12
13
14. The DCS-2000E will now appear under Network Devices in the Configuration Panel.
Functionality Check
15. Click the Open Visa Test Panel to send a remote command to the DCS-2000E.
14
15
8
16. Click on the Configuration icon.
17. Select the I/O Settings tab.
18. Mark the Enable Termination Character
checkbox. Make sure the termination character is a line feed (/n, value: xA).
19. Click Apply Changes.
16
17
18
19
20. Click the Input/Output icon.
21. Make sure *IDN? query is selected in the Select
or Enter Command drop box.
22. Click on Query.
23. The manufacturer, model number, serial
number and firmware version will be displayed in the buffer. For example: TEXIO,DCS-2202E,PXXXXXX,V1.00
20
21
22
23
9
2. COMMAND OVERVIEW
The Command overview chapter lists all DCS-2000E commands in functional order as well as alphabetical order. The command syntax section shows you the basic syntax rules you have to apply when using commands.
2-1. Command Syntax
Compatible standard
USB CDC_ACM compatible SCPI, 1994 (partially compatible)
Command forms
Commands and queries have two different forms, long and short. The command syntax is written with the short form of the command in capitals and the remainder (long form) in lower case.
:TIMebase:SCALe?
Short
Long
Short
The commands can be written in capitals or lower-case, just so long as the short or long forms are complete. An incomplete command will not be recognized. Below are examples of correctly written commands.
LONG
:TIMebase:SCALe?
:TIMEBASE:SCALE?
:timebase:scale?
SHORT
:TIM:SCAL?
:TIM:SCAL?
Command format
:TIMebase:SCALe <NR3>LF
1 2 3 4
1: command header 2: single space 3: parameter 4: message terminator
Parameter
Type
Description
Example
<Boolean>
boolean logic
0, 1
<NR1>
Integers
0, 1, 2, 3
<NR2>
floating point
0.1, 3.14, 8.5
<NR3>
floating point with an exponent
4.5e-1, 8.25e+1
<NRf>
any of NR1, 2, 3
1, 1.5, 4.5e-1
Message terminator
LF
line feed code Note
Commands are non-case sensitive.
10
3. COMMAND DETAILS
The Command details chapter shows the detailed syntax, equivalent panel operation, and example for each command.
3-1. Common Commands ......................................................... 11
3-2. Acquisition Commands ...................................................... 16
3-3. Autoscale Commands ....................................................... 21
3-4. Vertical Commands ........................................................... 22
3-5. Math Commands ............................................................... 26
3-6. Cursor Commands ............................................................ 33
3-7. Display Commands ........................................................... 41
3-8. Hardcopy Commands ........................................................ 44
3-9. Measure Commands ......................................................... 47
3-10. Measurement Commands ................................................ 68
3-11. Reference Commands ..................................................... 73
3-12. Run Command ................................................................ 75
3-13. Timebase Commands ...................................................... 76
3-14. Trigger Commands ......................................................... 78
3-15. System Commands ....................................................... 109
3-16. Save/Recall Commands ................................................ 110
3-17. Ethernet Commands ..................................................... 113
3-18. Time Commands ........................................................... 113
3-19. Bus Decode Commands ................................................ 114
3-20. Mark Commands ........................................................... 126
3-21. Search Commands ........................................................ 127
3-22. Label Commands .......................................................... 154
3-23. Segment Commands ..................................................... 158
3-24. DVM Commands ........................................................... 164
3-25. Go_NoGo Commands ................................................... 166
3-26. Data Logging Commands .............................................. 171
3-27. Remote DiskCommands ................................................ 173
11
3-1. Common Commands
3-1-1. *IDN? ....................................................................................................... 11
3-1-2. *LRN? ...................................................................................................... 11
3-1-3. *SAV ................................................................ ................................ ........ 11
3-1-4. *RCL ................................ ................................................................ ........ 12
3-1-5. *RST ................................ ................................................................ ........ 12
3-1-6. *CLS ........................................................................................................ 12
3-1-7. *ESE ................................................................ ................................ ........ 12
3-1-8. *ESR ........................................................................................................ 13
3-1-9. *OPC ....................................................................................................... 13
3-1-10. *SRE ...................................................................................................... 14
3-1-11. *STB ...................................................................................................... 15
3-1-1. *IDN?
Query
Description
Returns the manufacturer, model, serial number and version number of the unit.
Syntax
*IDN?
Example
*IDN? TEXIO, DCS-2204E,P930116,V0.82b
3-1-2. *LRN?
Query
Description
Returns the oscilloscope settings as a data string.
Syntax
*LRN?
Example
*LRN?
:DISPlay:WAVEform VECTOR;PERSistence 2.400E­01;INTensity:WAVEform 50;INTensity:GRATicule 50;GRATicule FULL;:CHANnel CH1:DISPlay ON;BWLimit
1.000e+00;PROBe:TYPe VOLTAGE;SCALe 5.000E-
02;IMPedance 1E+6;EXPand GROUND;:CHANnel OFF
3-1-3. *SAV
Set
Description
Saves the current panel settings to the selected memory number.
Syntax
*SAV {1 | 2 | 3 |…. | 20}
Example
*SAV 1 Saves the current panel settings to Set 1
12
3-1-4. *RCL
Set
Description
Recalls a set of panel settings.
Syntax
*RCL {1 | 2 | 3 |…. | 20}
Example
*RCL 1 Recalls the selected setup from Set 1.
3-1-5. *RST
Set
Description
Resets the DCS-2000E (recalls the default panel settings).
Syntax
*RST
3-1-6. *CLS
Set
Description
Clears the error queue.
Syntax
*CLS
3-1-7. *ESE
Set
Query
Description
Sets or queries the Standard Event Status Enable register.
Syntax Query Syntax
*ESE <NR1> *ESE?
Return parameter
<NR1>
0~255
Bit Weight
Bit#
Weight
Event
Description
0 1 OPC
Operation Complete Bit
1 2 RQC
Not used
2 4 QYE
Query Error
3 8 DDE
Device Error
4
16
EXE
Execution Error
5
32
CME
Command Error
6
64
URQ
User Request
7
128
PON
Power On
Example
*ESE? >4 Indicates that there is a query error.
13
3-1-8. *ESR
Query
Description
Queries the Standard Event Status (Event) register. The Event Status register is cleared after it is read.
Query Syntax
*ESR?
Return parameter
<NR1>
0~255
Bit Weight
Bit#
Weight
Event
Description
0 1 OPC
Operation Complete Bit
1 2 RQC
Not used
2 4 QYE
Query Error
3 8 DDE
Device Error
4
16
EXE
Execution Error
5
32
CME
Command Error
6
64
URQ
User Request
7
128
PON
Power On
Example
*ESR? >4 Indicates that there is a query error.
3-1-9. *OPC
Set
Query
Description
The *OPC command sets the OPC bit (bit0) of the Standard Event Status Register when all current commands have been processed. The *OPC? Query returns 1 when all the outstanding commands have completed.
Syntax Query Syntax
*OPC *OPC?
Return parameter
1
Returns 1 when all the outstanding commands have completed.
14
3-1-10. *SRE
Set
Query
Description
Sets or queries the Service Request Enable register. The Service Request Enable register determines which registers of the Status Byte register are able to generate service requests.
Syntax Query Syntax
*SRE <NR1> *SRE?
Parameter/ Return parameter
<NR1>
0~255
Bit Weight
Bit#
Weight
Event
Description
0 1
Not used
1 2
Not used
2 4
Not used
3 8
Not used
4
16
MAV
Message Available Bit
5
32
ESB
Event Status Bit
6
64
MSS
Master Summary Bit
6
64
RQS
Request Service Bit
7
128
Not used
Example
*SRE? >48 Indicates that the MAVB and ESB bit are both set.
15
3-1-11. *STB
Query
Description
Queries the bit sum of the Status Byte register with MSS (Master summary Status) replacing the RQS bit (bit 6).
Query Syntax
*STB?
Return parameter
<NR1>
0 ~ 255
Bit Weight
Bit#
Weight
Event
Description
0 1
Not used
1 2
Not used
2 4
Not used
3 8
Not used
4
16
MAV
Message Available Bit
5
32
ESB
Event Status Bit
6
64
MSS
Master Summary Bit
6
64
RQS
Request Service Bit
7
128
Not used
Example
*STB? >16 Indicates that the MAV bit is set.
16
3-2. Acquisition Commands
3-2-1. :ACQuire:AVERage.................................................................................. 16
3-2-2. :ACQuire:MODe ....................................................................................... 16
3-2-3. :ACQuire<X>:MEMory? ........................................................................... 17
3-2-4. :ACQuire:FILTer:SOURce ........................................................................ 18
3-2-5. :ACQuire:FILTer ....................................................................................... 19
3-2-6. :ACQuire:FILTer:FREQuency .................................................................. 19
3-2-7. :ACQuire:FILTer:TRACking ...................................................................... 19
3-2-8. :ACQuire<X>:STATe? .............................................................................. 20
3-2-9. :ACQuire:RECOrdlength .......................................................................... 20
3-2-10. :HEADer................................................................................................. 21
3-2-1. :ACQuire:AVERage
Set
Query
Description
Selects or returns the number of waveform acquisitions that are averaged in the average acquisition mode.
Syntax
:ACQuire:AVERage {<NR1>| ?}
Related Commands
:ACQuire:MODe
Parameter
<NR1>
2, 4, 8 ,16, 32, 64, 128, 256
Note
Before using this command, select the average acquisition mode. See the example below.
Example
:ACQuire:MODe AVERage :ACQuire:AVERage 2 Selects the average acquisition mode, and sets the average number to 2.
3-2-2. :ACQuire:MODe
Set
Query
Description
Selects or returns the acquisition mode.
Syntax
:ACQuire:MODe {SAMPle | PDETect | AVERage | ?}
Related Commands
:ACQuire:AVERage
Parameter
SAMPle
Sample mode sampling
PDETect
Peak detect sampling
AVERage
Average sampling mode
Example
:ACQuire:MODe PDETect Sets the sampling mode to peak detection.
17
3-2-3. :ACQuire<X>:MEMory?
Query
Description
Returns the data in acquisition memory for the selected channel as a header + raw data.
Syntax
:ACQuire<X>:MEMory?
Related Commands
ACQuire:RECOrdlength :HEADer
Parameter
<X>
Channel number (1 to 4)
Return parameter
Returns acquisition settings followed by raw waveform block data. <string> Returns the acquisition settings for the selected channel. Format:
parameter(1),setting(1);parameter(2),setting(2)…para
meter(n),setting(n);Waveform Data; <waveform block data> Header followed by the raw waveform data. Format: Header: The header (in ASCII) encodes the number of bytes for the header followed by the number of data points in bytes for the raw data.
#42000
Header identifier Indicates the number
of characters that will encode the number of data points (ie. 2000 = 4 characters) after which the raw data will follow.
Indicates the number of bytes that follow (for the raw data).
ASCII
Raw Data: Each two bytes (in hex) encodes the vertical data of a data point. The data is signed hex data (2’s complement, -32768 ~ 32767). Waveform Raw Data Example: Header raw data………. Hex: 23 34 32 30 30 30 00 1C 00 1B 00 1A 00 1A 00 1B
18
……….. ASCII/Decimal: #42000 28 27 26 26 27……. The actual value of a data point can be calculated with the following formula: (Decimal value of hex data/AD Factor) * vertical scale. Note: AD Factor is fixed as 25. The vertical scale is returned with the acquisition settings that precede the raw data. For example if the raw data for a point is 001C (=28 decimal) then, (28/25) x 0.5 = 0.56V
Example
:ACQuire1:MEMory?
Format,2.0E;Memory Length,10000;IntpDistance,0; Trigger Address,4999;Trigger Level,1.160E+01; Source,CH1;Vertical Units,V;Vertical Units Div,0;Vertical Units Extend Div,15;Label,ACK ;Probe Type,0;Probe Ratio,1.000e+01;Vertical Scale,5.000e+00;Vertical Position,-
1.100e+01;Horizontal Units,S;Horizontal Scale,5.000E-
04;Horizontal Position,0.000E+00; Horizontal Mode,Main;SincET Mode,Real Time;Sampling Period,5.000e-07;Horizontal Old Scale,5.000E­04;Horizontal Old Position,0.000E+00; Firmware,V0.99b8;Time,02-Oct-14 17:00:43; Waveform Data; #520000follows waveform block data in hex…………………..
Note:
On Windows 10, data loss may occur due to
insufficient CPU power. Adjust the transfer timing with
the ":USBDelay" command and use as fast a PC as
possible.
3-2-4. :ACQuire:FILTer:SOURce
Set
Query
Description
Returns the source of the filter.
Syntax
:ACQuire:FILTer:SOURce {CH1|CH2|CH3|CH4|?}
Parameter/ Return parameter
CH1 ~ CH4
Source channel
Example
:ACQuire:FILTer:SOURce? CH1 Sets the filter source to CH1.
19
3-2-5. :ACQuire:FILTer
Set
Query
Description
Turns the filter on/off or queries its status.
Syntax
:ACQuire:FILTer {OFF | ON | ?}
Parameter/Return parameter
OFF
Turns the digital filter off.
ON
Turns the digital filter on.
Example
:ACQuire:FILTer OFF Turns the digital filter off.
3-2-6. :ACQuire:FILTer:FREQuency
Set
Query
Description
Sets or queries the filter frequency.
Syntax
:ACQuire:FILTer:FREQuency {DEFault|<NRf>|?}
Parameter/ Return parameter DEFault
Sets the filter frequency to the default.
<NRf>
Manually sets the filter frequency. (1Hz ~ 500MHz)
Example
:ACQuire:FILTer:FREQuency 1 Sets the filter frequency to 1Hz.
3-2-7. :ACQuire:FILTer:TRACking
Set
Query
Description
Turns filter tracking on/off or queries its state.
Syntax
:ACQuire:FILTer:TRACking {ON|OFF|?}
Parameter/ Return parameter
OFF
Tracking off
ON
Tracking on
Example
:ACQuire:FILTer:TRACking ON Turns filter tracking on.
20
3-2-8. :ACQuire<X>:STATe?
Query
Description
Returns the status of waveform data.
Syntax
:ACQuire<X>:STATe?
Parameter
<X>
Channel number (1 to 4)
Return parameter
0
Raw data is not ready
1 Raw data is ready
Example
:ACQuire1:STATe? 0 Returns 0. The channel 1’s raw data is not ready. Note: If the oscilloscope changes the acquisition status from STOP to RUN, the status will be reset as zero.
3-2-9. :ACQuire:RECOrdlength
Set
Query
Description
Sets or queries the record length. Please see the user manual for full details.
Syntax
:ACQuire:RECOrdlength {<NRf>| ?}
Parameter/Return
parameter
<NRf>
Record length. Settable record length: (1e+3 | 1e+4 | 1e+5 | 1e+6 | 1e+7)
Example
:ACQuire:RECOrdlength 1e+3
Sets the record length to 1000 points.
21
3-2-10. :HEADer
Set
Query
Description
Configures whether the :ACQuire:MEM or :ACQuire:LMEM return data will contain header information or not. It is set to ON by default.
Syntax
:HEADer {OFF | ON | ?}
Related Commands
:ACQuire<X>:MEMory?
Parameter <X>
Channel number (1 to 4)
ON
Add header information.
OFF
Don’t add header information.
Return parameter
Returns the configuration (ON, OFF) for the selected channel.
Example
:HEADer ON
3-3. Autoscale Commands 3-3-1. :AUTOSet
Set
Description
Runs the Autoset function to automatically configure the horizontal scale, vertical scale, and trigger according to the input signal.
Syntax
:AUTOSet
3-3-2. :AUTORSET:MODe
Set
Query
Description
Sets the Autoset mode or queries its state.
Syntax
:AUTORSET:MODe {FITScreen | ACPriority | ?}
Related Commands
:AUTOSet
Parameter/Return parameter
FITScreen
Fit Screen mode
ACPriority
AC priority mode
Example
:AUTORSET? FITSCREEN
22
3-4. Vertical Commands
3-4-1. :CHANnel<X>:BWLimit ................................................................ ............ 22
3-4-2. :CHANnel<X>:COUPling .......................................................................... 22
3-4-3. :CHANnel<X>:DESKew ........................................................................... 23
3-4-4. :CHANnel<X>:DISPlay ............................................................................. 23
3-4-5. :CHANnel<X>:EXPand ............................................................................ 23
3-4-6. :CHANnel<X>:IMPedance? ...................................................................... 24
3-4-7. :CHANnel<X>:INVert ............................................................................... 24
3-4-8. :CHANnel<X>:POSition ........................................................................... 24
3-4-9. :CHANnel<X>:PROBe:RATio ................................................................... 25
3-4-10. :CHANnel<X>:PROBe:TYPe ................................................................ .. 25
3-4-11. :CHANnel<X>:SCALe ............................................................................ 25
3-4-1. :CHANnel<X>:BWLimit
Set
Query
Description
Sets or returns the bandwidth limit on/off.
Syntax
:CHANnel<X>:BWLimit {FULL | <NR3> | ?}
Parameter
<X>
Channel 1,2,3,4
FULL
Full bandwidth
<NR3>
Sets the bandwidth limit to a pre-defined bandwidth.
100E+6: 100MHz
20E+6: 20MHz
Return Parameter
<NR3>
Returns the bandwidth.
Full
Full bandwidth
Example
:CHANnel1:BWLimit 2.000E+07 Sets the channel 1 bandwidth 20MHz
3-4-2. :CHANnel<X>:COUPling
Set
Query
Description
Selects or returns the coupling mode.
Syntax
CHANnel<X>:COUPling {AC | DC | GND | ?}
Parameter
<X>
Channel 1,2,3,4
AC
AC coupling
DC
DC coupling
GND
Ground coupling
Return parameter
Returns the coupling mode.
Example
:CHANnel1:COUPling DC Sets the coupling to DC for Channel 1.
23
3-4-3. :CHANnel<X>:DESKew
Set
Query
Description
Sets the deskew time in seconds.
Syntax
:CHANnel<X>:DESKew { <NR3> | ?}
Parameter
<X>
Channel 1,2,3,4
<NR3>
Deskew time:
-5.00E -11 to 5.00E-11
-50ns to 50 ns.
Return parameter
<NR3>
Returns the deskew time.
Example
:CHANnel1:DESKew 1.300E-9 Sets the deskew time to 1.3 nano seconds.
3-4-4. :CHANnel<X>:DISPlay
Set
Query
Description
Turns a channel on/off or returns its status.
Syntax
:CHANnel<X>:DISPlay {OFF | ON | ?}
Parameter
<X>
Channel 1,2,3,4
OFF
Channel off
ON
Channel on
Return Parameter
ON
Channel is on.
OFF
Channel is off
Example
:CHANnel1:DISPlay ON Turns on Channel 1
3-4-5. :CHANnel<X>:EXPand
Set
Query
Description
Sets Expand By Ground or Expand By Center for a channel or queries its status.
Syntax
:CHANnel<X>:EXPand {GND | CENTer | ?}
Parameter
<X>
Channel 1,2,3,4
GND
Ground
CENTer
Center
Return parameter
GND
Expand By Ground
CENTER
Expand By Center
Example
:CHANnel1:EXPand GND Sets Channel 1 to Expand By Ground.
24
3-4-6. :CHANnel<X>:IMPedance?
Query
Description
Returns the impedance of the oscilloscope.
Syntax
:CHANnel<X>:IMPedance?
Parameter
<x>
Channel
1/2/3/4
CH1/2/3/4
Return parameter
<NR3>
Returns the impedance value.
Example
:CHANnel1:IMPedance?
1.000000E+06
The impedance is 1M ohms.
3-4-7. :CHANnel<X>:INVert
Set
Query
Description
Inverts a channel or returns its status.
Syntax
:CHANnel<X>:INVert {OFF | ON | ?}
Parameter
<X>
Channel 1, 2, 3, 4
OFF
Invert off
ON
Invert on
Return parameter
ON
Invert on
OFF
Invert off
Example
:CHANnel1:INVert ON Inverts Channel 1
3-4-8. :CHANnel<X>:POSition
Set
Query
Description
Sets or returns the position level for a channel.
Note
The vertical position will only be set to closest allowed value. The position level range depends on the vertical scale. The scale must first be set before the position can be set.
Syntax
:CHANnel<X>:POSition { <NRf> | ?}
Parameter
<X>
Channel 1, 2, 3, 4
<NRf>
Position. Range depends on the vertical scale.
Return parameter
<NR3>
Returns the position value.
Example 1
:CHANnel1:POSition 2.4E–3 Sets the Channel 1 position to 2.4mV/mA
Example 2
:CHANnel1:POSition?
2.4E-3
Returns 2.4mV as the vertical position.
25
3-4-9. :CHANnel<X>:PROBe:RATio
Set
Query
Description
Sets or returns the probe attenuation factor.
Syntax
:CHANnel<X>:PROBe:RATio { <NRf> | ?}
Related Commands
:CHANnel<X>:PROBe:TYPe
Parameter
<X>
Channel 1, 2, 3, 4
<NRf>
Probe attenuation factor.
Return parameter
<NR3>
Returns the probe factor.
Example
:CHANnel1:PROBe:RATio 1.00E+0 Sets the Channel 1 probe attenuation factor to 1x
3-4-10. :CHANnel<X>:PROBe:TYPe
Set
Query
Description
Sets or returns the probe type (voltage/current).
Syntax
:CHANnel<X>:PROBe:TYPe { VOLTage | CURRent | ?}
Related Commands
:CHANnel<X>:PROBe:RATio
Parameter
<X>
Channel 1, 2, 3, 4
VOLTage
Voltage
CURRent
Current
Return parameter
Returns the probe type.
Example
:CHANnel1:PROBe:TYPe VOLTage Sets the Channel 1 probe type to voltage.
3-4-11. :CHANnel<X>:SCALe
Set
Query
Description
Sets or returns the vertical scale. The scale depends on the probe attenuation factor. Note the probe attenuation factor should be set before the scale.
Syntax
:CHANnel<X>:SCALe { <NRf> | ?}
Parameter
<X>
Channel 1, 2, 3, 4
<NRf>
Vertical scale:
2e–3 to 1e+1
2mV to 10V (Probe x1)
Return parameter
<NR3>
Returns the vertical scale in volts or amps.
Example
:CHANnel1:SCAle 2.00E–2 Sets the Channel 1 vertical scale to 20mV/div
26
3-5. Math Commands
3-5-1. :MATH:DISP ............................................................................................ 26
3-5-2. :MATH:TYPe ............................................................................................ 26
3-5-3. :MATH:DUAL:SOURce<X> ...................................................................... 27
3-5-4. :MATH:DUAL:OPERator .......................................................................... 27
3-5-5. :MATH:DUAL:POSition ................................................................ ............ 27
3-5-6. :MATH:DUAL:SCALe ............................................................................... 28
3-5-7. :MATH:FFT:SOURce ............................................................................... 28
3-5-8. :MATH:FFT:MAG ..................................................................................... 28
3-5-9. :MATH:FFT:WINDow ............................................................................... 29
3-5-10. :MATH:FFT:POSition ............................................................................. 29
3-5-11. :MATH:FFT:SCALe ................................................................................ 29
3-5-12. :MATH:FFT:HORizontal:SCALe ............................................................. 30
3-5-13. :MATH:FFT:HORizontal:POSition .......................................................... 30
3-5-14. :MATH:DEFine ....................................................................................... 31
3-5-15. :MATHVAR? .......................................................................................... 31
3-5-16. :MATHVAR:VAR<X> .............................................................................. 32
3-5-17. :MATH:ADVanced:POSition ................................................................ ... 32
3-5-18. :MATH:ADVanced:SCALe ...................................................................... 32
3-5-1. :MATH:DISP
Set
Query
Description
Turns the math display on or off on the screen.
Syntax
:MATH:DISP {OFF|ON|?}
Parameter/ Return parameter
OFF
Math is not displayed on screen
ON
Math is displayed on screen
Example
:MATH:DISP OFF Math is off.
3-5-2. :MATH:TYPe
Set
Query
Description
Queries or sets the Math type to FFT, Advanced Math or to dual channel math operations
Syntax
:MATH:TYPe { DUAL | ADVanced | FFT | ? }
Related Commands
:MATH:DISP
Parameter
DUAL
Dual channel operations
ADVanced
Advanced math operations
FFT
FFT operations
Return parameter
Returns the math type.
Example
:MATH:TYPe DUAL Sets the Math type to dual channel math operation.
27
3-5-3. :MATH:DUAL:SOURce<X>
Set
Query
Description
Sets the dual math source for source 1 or 2.
Syntax
:MATH:DUAL:SOURce<X> { CH1 | CH2 | CH3 | CH4 | REF1 | REF2 | REF3 | REF4 | ? }
Parameter
<X>
Source number 1 or 2
CH1~4
Channel 1 to 4
REF1~4
Reference waveforms 1 to 4
Return parameter
Returns the source for the source 1 or 2.
Example
:MATH:DUAL:SOURce1 CH1 Sets source1 as channel 1.
3-5-4. :MATH:DUAL:OPERator
Set
Query
Description
Sets the math operator for dual math operations.
Syntax
:MATH:DUAL:OPERator {PLUS | MINUS | MUL| DIV|?}
Parameter
PLUS
+ operator
MINUS
- operator
MUL
operator
DIV
÷ operator
Return parameter
Returns operator type.
Example
:MATH:DUAL:OPERator PLUS Sets the math operator as plus (+).
3-5-5. :MATH:DUAL:POSition
Set
Query
Description
Sets the vertical position of the displayed math result expressed by division.
Syntax
:MATH:DUAL:POSition {<NRf> | ? }
Parameter
<NRf>
Vertical position
Depends on the vertical scale (Unit/Div)
Return parameter
<NR3>
Returns the vertical position.
Example
:MATH:DUAL:POSition 1.0E+0 Sets the vertical position to 1.00 unit/div.
Loading...
+ 150 hidden pages