Digital Storage Oscilloscope GDS-1000-U Series PROGRAMMING MANUAL GW INSTEK PART NO.
December 2011 edition This manual contains proprietary information, which is protected by copyright. All rights are reserved. No part of this manual may be photocopied, reproduced or translated to another language without prior written consent of Good Will Corporation. The information in this manual was correct at the time of printing.
TABLE OF CONTENTS Table of Contents INTERFACE OVERVIEW .................................................... 4 Rear Panel Overview .................................. 4 Configuring the USB Interface ................... 5 COMMAND OVERVIEW ................................................... 6 Command Syntax ....................................... 6 List of Command in Functional Order ........ 7 COMMAND DETAILS ..................................................... System command ................................
GDS-1000-U Programming Manual INTERFACE OVERVIEW This manual describes how to use the GDS-1000-U’s remote command functionality and lists the command details. The Overview chapter describes how to configure the GDS-1000-U USB remote control interface. Rear Panel Overview Security lock slot Fuse socket Power cord socket CAL output LINE VOLTAGE RANGE 4 USB port AC 100 240V FREQUENCY 50 60Hz FUSE RATING T1A 250V POWER MAX.
INTERFACE OVERVIEW Configuring the USB Interface USB connection Procedure PC end Type A, host GDS-1000-U end Type B, slave Speed 1.1/2.0 (full speed) 1. Connect the USB cable to the USB slave port on the GDS-1000-U. 2. When the PC asks for the USB driver, select dso_cdc_1000.inf which is downloadable from the GW website, www.gwinstek.com.tw, GDS1000-U product corner. 3. On the PC, activate a terminal application such as MTTTY (Multi-Threaded TTY). To check the COM port No.
GDS-1000-U Programming Manual COMMAND OVERVIEW The Command overview chapter lists all GDS1000-U commands in functional order as well as alphabetical order. The command syntax section shows you the basic rules you have to apply when using commands. Command Syntax Compatible standard IEEE488.
COMMAND OVERVIEW List of Command in Functional Order System *IDN.............................................................................12 *LRN ............................................................................12 *RST .............................................................................13 :SYSTem:ERRor............................................................13 :SYSTem:VERSion ........................................................13 Acquisition :ACQuire:AVERage ...............
GDS-1000-U Programming Manual Measure :MEASure:FALL ............................................................ 30 :MEASure:FOVShoot ................................................... 31 :MEASure:FPReshoot .................................................. 31 :MEASure:FREQuency ................................................. 32 :MEASure:NWIDth ...................................................... 32 :MEASure:PDUTy ........................................................ 32 :MEASure:PERiod ............
COMMAND OVERVIEW :TEMPlate:TOLerance ..................................................48 :TEMPlate:SAVe:AUTo .................................................49 Data Logging :DATALOG:STATE .......................................................50 :DATALOG:SOURce ....................................................50 :DATALOG:SAVe .........................................................51 :DATALOG:INTerval ....................................................51 :DATALOG:DURation ...........................
GDS-1000-U Programming Manual :TRIGger:PULSe:MODe ............................................... 65 :TRIGger:PULSe:TIMe ................................................. 65 :TRIGger:REJect ........................................................... 66 :TRIGger:SLOP ............................................................ 66 :TRIGger:SOURce ........................................................ 67 :TRIGger:TYPe ............................................................. 67 :TRIGger:VIDeo:FIELd .....
COMMAND DETAILS COMMAND DETAILS The Command details chapter shows sysntax in detail, the equivalent panel operation, and an example for each command. For a list of all commands, see page 7. System command .................................... Acquisition Command.............................. Autoset Command ................................... Channel / Math Command ....................... Cursor Command ..................................... Display Command ....................................
GDS-1000-U Programming Manual System command *IDN ............................................................................ 12 *LRN ............................................................................ 12 *RST ............................................................................. 13 :SYSTem:ERRor ........................................................... 13 :SYSTem:VERSion........................................................
COMMAND DETAILS *RST Description Set Resets the GDS-1000-U (recalls the default panel settings). Same as: Save/Recall key → F1 Syntax *rst :SYSTem:ERRor Query Description Returns the oscilloscope system error messages, if there are any.
GDS-1000-U Programming Manual Acquisition Command :ACQuire:AVERage ...................................................... 14 :ACQuire:MODe .......................................................... 14 :ACQuire:MEMory................................................. 15 Set :ACQuire:AVERage Description Query Selects or returns the average number of waveform acquisitions that are used in the average acquisition mode.
COMMAND DETAILS Syntax Parameter Example < Long > < Short > :acquire:mode :acq:mod :acquire:mode? :acq:mod? Mode Mode 0 Normal 2 Average 1 Peak detect :acquire:mode 2 :acquire:average 2 Selects the average acquisition mode, and select the average number 4 :ACQuire:MEMory Query Description Returns the total waveform data in the acquisition memory.
GDS-1000-U Programming Manual Data size Indicates the data size. The data size is always 8008 (4000 points per channel). Time interval Indicates the time interval between two adjacent sampling points in the floating point format, compatible with IEEE 754 standards. Note: The data is sorted in the little-endian format. Channel indicator Indicates the channel, 1 or 2. Reserved data An unused data block, 3 bytes. Waveform data The waveform data comprised of 8000 data points.
COMMAND DETAILS Autoset Command :AUToset Description Set Runs the Autoset function to automatically configure the horizontal scale, vertical scale, and trigger according to the input signal.
GDS-1000-U Programming Manual Channel / Math Command :CHANnel:BWLimit ............................................... 18 :CHANnel:COUPling ............................................ 18 :CHANnel:DISPlay ................................................ 19 :CHANnel:INVert .................................................. 19 :CHANnel:MATH .................................................. 20 :CHANnel:OFFSet ................................................. 20 :CHANnel:PROBe ............
COMMAND DETAILS :channel:coupling :chan:coup :channel:coupling? Parameter Example :chan:coup? Channel Coupling mode 1/2 CH1/2 0 AC coupling 1 DC coupling 2 Ground coupling :channel1:coupling 1 Selects the DC coupling for Channel 1 Set :CHANnel:DISPlay Description Query Turns a channel on/off or returns its status.
GDS-1000-U Programming Manual 1/2 Example CH1/2 0 off 1 on Inverts Channel 1 :channel1:invert 1 Set :CHANnel:MATH Description Query Selects or returns the math operation type.
COMMAND DETAILS Example ±5.0 –5.0V ~ +5.0V (100mV/div~500mV/div) ±50.0 –50.0V ~ +50.0V (1V/div ~ 5V/div) :channel1:scale 1.00e–2 :channel1:offset 2.00e–2 Sets the Channel 1 scale to 10mV/div Sets the Channel 1 offset to 20mV Set :CHANnel:PROBe Description Query Sets or returns the probe attenuation factor.
GDS-1000-U Programming Manual Parameter Channel Vertical scale 1/2 CH1/2 2e–3 ~ 5e+0 2mV ~ 5V (Probe x1) 2e–2 ~ 5e+1 20mV ~ 50V (Probe x10) 2e–1 ~ 5e+2 200mV ~ 500V (Probe x100) Example :channel1:probe 0 :channel1:scale 2.
COMMAND DETAILS Cursor Command :CURSor:XPosition ................................................23 :CURSor:YPosition ................................................24 :CURSor:DELta ......................................................24 :CURSor:DISplay ...................................................25 :CURSor:SOURce .........................................................26 Set :CURSor:XPosition Description Query Sets or returns the horizontal (X axis) cursor position.
GDS-1000-U Programming Manual Set :CURSor:YPosition Description Query Selects or returns the vertical (Y axis) cursor position. Same as: Cursor key →F5 (X-Y) → F2(Y1) or F3(Y2) + Vertical knob Syntax Parameter Note < Long > < Short > :cursor:yposition :curs:yp :cursor:yposition? :curs:yp? Cursor 1 or 2 Cursor position 1 Cursor Y1 1 ~ 199 point 2 Cursor Y2 1 ~ 199 When in the query mode, the returned data format is as follows.
COMMAND DETAILS Parameter Note Horizontal or vertical cursor x Horizontal cursor (X axis) y Vertical cursor (Y axis) The returned data format is as follows. CH1, CH2, Math (CH1±CH2): time (s) for horizontal cursor, voltage (V) for vertical cursor Math (FFT): frequency (Hz) for horizontal cursor, decibel (dB) for vertical cursor Example Returns the frequency (2500Hz) between the two horizontal cursors in the Math FFT mode :channel:math 3 :cursor:xdisplay 1 :cursor:xdelta? → 2.
GDS-1000-U Programming Manual Set :CURSor:SOURce Description Query Selects or returns the cursor source channel.
COMMAND DETAILS Display Command :DISPlay:ACCumulate ..................................................27 :DISPlay:CONTrast ......................................................27 :DISPlay:GRATicule .....................................................28 :DISPlay:WAVeform .....................................................28 :REFResh ......................................................................
GDS-1000-U Programming Manual Parameter Display contrast –10 ~ 10 Lowest (–10) to the Highest (+10) Example Sets the display contrast to the middle (±0) :display:contrast 0 Set :DISPlay:GRATicule Description Query Sets or returns the display grid type.
COMMAND DETAILS :REFResh Description Set Erases the existing waveform and draws a new one.
GDS-1000-U Programming Manual Measure command :MEASure:FALL ............................................................ 30 :MEASure:FOVShoot ................................................... 31 :MEASure:FPReshoot .................................................. 31 :MEASure:FREQuency ................................................. 32 :MEASure:NWIDth ...................................................... 32 :MEASure:PDUTy ........................................................ 32 :MEASure:PERiod ....
COMMAND DETAILS Example :measure:source 1 :measure:fall? Selects Channel 1, and then measures the fall time. :MEASure:FOVShoot Description Query Returns the fall overshoot amplitude. Same as: Measure key → F1~F5 → F3 (FOVShoot) Syntax < Long > < Short > :measure:fovshoot? :meas:fovs? Returns with % sign Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:fall? Selects Channel 1, and then measures the fall overshoot.
GDS-1000-U Programming Manual :MEASure:FREQuency Description Query Returns the frequency value. Same as: Measure key → F1~F5 → F3 (Frequency) Syntax < Long > < Short > :measure:frequency? :meas:freq? Returns Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:frequency? Selects Channel 1, and then measures the frequency. :MEASure:NWIDth Description Query Returns the first negative pulse width timing.
COMMAND DETAILS :measure:pduty? :meas:pdut? Returns as the percentage Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:pduty? :MEASure:PERiod Description Selects Channel 1, and then measures the positive duty cycle. Query Returns the period.
GDS-1000-U Programming Manual Example :measure:source 1 :measure:pwidth? :MEASure:RISe Description Selects Channel 1, and then measures the positive pulse width. Query Returns the first pulse rising edge timing. Same as: Measure key → F1~F5 → F3 (RiseTime) Syntax < Long > < Short > :measure:rise? :meas:ris? Returns Note Before using this command, select the measurement channel. See the example below.
COMMAND DETAILS :MEASure:RPReshoot Description Query Returns rise overshoot amplitude in percentage. Same as: Measure key → F1~F5 → F3 (RPReshoot) Syntax < Long > < Short > :measure:rpreshoot? :meas:rpr? Returns with % sign Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:rpreshoot? Selects Channel 1, and then measures the rise preshoot. Set :MEASure:SOURce Description Query Selects the measurement channel.
GDS-1000-U Programming Manual Syntax < Long > < Short > :measure:vamplitude? :meas:vamp? Returns Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:vamplitude? Selects Channel 1, and then measures the rise Voltage amplitude. :MEASure:VAVerage Description Query Returns the average voltage.
COMMAND DETAILS Example :measure:source 1 :measure:vhi? Selects Channel 1, and then measures the global high Voltage. :MEASure:VLO Description Query Returns the global low voltage. Same as: Measure key → F1~F5 → F3 (Vlo) Syntax < Long > < Short > :measure:vlo? :meas:vlo? Returns Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:vlo? Selects Channel 1, and then measures the global low Voltage.
GDS-1000-U Programming Manual :MEASure:VMIN Description Query Returns the minimum amplitude. Same as: Measure key → F1~F5 → F3 (Vmin) Syntax < Long > < Short > :measure:vmin? :meas:vmin? Returns Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:vmin? :MEASure:VPP Description Selects Channel 1, and then measures the minimum amplitude.
COMMAND DETAILS Syntax < Long > < Short > :measure:vrms? :meas:vrms? Returns Note Before using this command, select the measurement channel. See the example below. Example :measure:source 1 :measure:vrms? Selects Channel 1, and then measures the root mean square voltage.
GDS-1000-U Programming Manual Go No-Go Commands :GONogo:CLEar ........................................................... 40 :GONogo:EXECute ...................................................... 41 :GONogo:FUNCtion .................................................... 41 :GONogo:NGCount? ................................................... 42 :GONogo:NGDefine .................................................... 42 :GONogo:SOURce ...................................................... 42 :GONogo:VIOLation ...
COMMAND DETAILS Set :GONogo:EXECute Query Description Starts or stops the Go-NoGo testing. Same as: Utility key → More (F5) →Go-NoGo Menu(F1)→Go-NoGo(F4). Note Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope. Syntax < Long > < Short > :GONogo:EXECute {0|1} :GON:EXEC {0|1} :GONogo:EXECute? :GON:EXEC ? Parameter/ 0 Return parameter 1 Example Off. Stop Go-NoGo testing. On. Start Go-NoGo testing. :GON:EXEC 0 Turn Go-NoGo off.
GDS-1000-U Programming Manual Query :GONogo:NGCount? Description Returns the test result count ratio (failed count, total count). Syntax < Long > < Short > :GON:NGC? :GON:NGC? Return parameter , , Example :GON:NGC? >2,128 2 fails from 128 GoNoGo tests. Set :GONogo:NGDefine Query Description Sets or queries the Go-NoGo boundary template conditions.
COMMAND DETAILS Note Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope. Syntax < Long > < Short > :GONogo:SOURce {1|2} :GON:SOUR {1|2} :GONogo:SOURce? :GON:SOUR? Parameter/ 1 Return parameter 2 Example Sets the source to channel 1 Sets the source to channel 2 :GON:SOUR 1 Sets the source to channel 1. Set :GONogo:VIOLation Query Description Sets or queries the Go-NoGo violation conditions.
GDS-1000-U Programming Manual Note Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope. Syntax < Long > < Short > :TEMPlate:MODe {0|1} :TEMP:MOD {0|1} :TEMPlate:MODe? :TEMP:MOD? Parameter/ 0 Return parameter 1 Example Select Normal template mode. Select Auto template mode. :TEMP :MOD 1 Set to Auto mode. Set :TEMPlate:MAX Query Description Sets or queries the template used for the MAX boundary (W1~W15, RefA).
COMMAND DETAILS Set :TEMPlate:MIN Query Description Sets or queries the template used for the MIN boundary (W1~W15, RefB). Note A template can only be defined for the MAX or MIN template, not both. Before this command can be used, please set the template mode to normal using the :TEMPlate:MODe 0 command. Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope.
GDS-1000-U Programming Manual Note This command will not alter the position of the waveform (RefA, W1~15) in memory, unless the template is saved with the :TEMPlate:SAVe :MAXimum command. Before this command can be used, please set the template mode to normal using the :TEMPlate:MODe 0 command. Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope.
COMMAND DETAILS Note This command will not alter the position of the waveform (RefA, W1~15) in memory, unless the template is saved with the :TEMPlate:SAVe :MINimum command. Before this command can be used, please set the template mode to normal using the :TEMPlate:MODe 0 command. Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope.
GDS-1000-U Programming Manual :TEMPlate:SAVe:MINimum Description Set Saves the minimum template. Same as: Utility key → More (F5) →Go-NoGo Menu(F1)→Template Edit(F1)→Save & Create(F4). Note Before this command can be used, please set the template mode to normal using the :TEMPlate:MODe 0 command. Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope.
COMMAND DETAILS :TEMPlate:SAVe:AUTo Description Set Saves the auto template. Same as: Utility key → More (F5) →Go-NoGo Menu(F1)→Template Edit(F1)→Save & Create(F4). Note Before this command can be used, please set the template mode to auto using the :TEMPlate:MODe 1 command. Before any Go-NoGo command can be used, please use the :GONogo:FUNCtion 1 command to initialize the oscilloscope.
GDS-1000-U Programming Manual Data Log Commands :DATALOG:STATE ....................................................... 50 :DATALOG:SOURce .................................................... 50 :DATALOG:SAVe ......................................................... 51 :DATALOG:INTerval .................................................... 51 :DATALOG:DURation .................................................. 51 Set :DATALOG:STATE Query Description Turns the datalogging function on/off.
COMMAND DETAILS Set :DATALOG:SAVe Query Description Sets the save type as waveform or image. Syntax < Long > < Short > :DATALOG:SAVe {0|1} :DATALOG:SAV {0|1} :DATALOG:SAVe? :DATALOG:SAV? Parameter/ 0 Return parameter 1 Example Save as image Save as waveform :DATALOG:SAVe 1 Set the save type to waveform. Set :DATALOG:INTerval Query Description Sets or queries the interval time between each recording.
GDS-1000-U Programming Manual :DATALOG:DURation :DATALOG:DURation? :DATALOG:DUR :DATALOG:DUR? Parameter/ Return parameter Example 52 Discrete recording time in minutes: {5|10|15|20|25|30|60|90|120|150|180 |210|240|270|300|330|360|390|420|45 0|480|510|540|570|600|1200|1800|240 0|3000|3600|4200|4800|5400|6000} :DATALOG:DUR 5 Sets the recording time to 5 minutes.
COMMAND DETAILS Save/Recall Command :MEMory:RECall:SETup ........................................53 :MEMory:RECall:WAVeform .................................53 :MEMory:SAVe:SETup ..........................................54 :MEMory:SAVe:WAVeform ...................................54 *RCL .............................................................................55 :REF:DISPlay ..........................................................55 :REF:LOCate ......................................
GDS-1000-U Programming Manual Example 1 ~ 15 W1 ~ W15 Reference waveform 1, 2 RefA, RefB :memory1:recall:waveform 1 Recalls a waveform from the internal memory W1 and saves it to the reference waveform A :MEMory:SAVe:SETup Description Set Saves the current panel settings to an internal memory.
COMMAND DETAILS Example 0 CH1 1 CH2 2 Math 3 RefA 4 RefB :memory1:save:waveform 1 Saves the reference waveform A to the internal memory W1 *RCL Description Set Recalls a set of panel setting from one of the fifteen internal memories, S1 to S15.
GDS-1000-U Programming Manual Set :REF:LOCate Description Query Moves or returns the position of a reference waveform. Same as: Save/Recall key → F5 → Variable knob Syntax Parameter < Long > < Short > :ref:locate :ref:loc :ref:locate? :ref:loc? Reference Position 1 A –100 to +100 2 B Note Before using this command, turn on a reference waveform. See the example below.
COMMAND DETAILS *SAV Description Set Saves the current panel settings into the internal memory.
GDS-1000-U Programming Manual Time (Horizontal) command :TIMebase:DELay ......................................................... 58 :TIMebase:SCALe ........................................................ 58 :TIMebase:SWEep ....................................................... 59 :TIMebase:WINDow:DELay......................................... 59 :TIMebase:WINDow:SCALe ........................................ 60 Set :TIMebase:DELay Query Description Sets or returns the horizontal delay.
COMMAND DETAILS 100ns 100e-9 250ns 250e -9 500ns 500e-9 1us 1e-6 2.5us 2.5e-6 Example 500us 500e-6 -3 1ms 1e 2.5ms 2.5e-3 5ms 5e-3 10ms 10e-3 2.5s 2.5 5s 5 10s 10 Selects 1s/div as the horizontal scale :timetable:scale 1 Set :TIMebase:SWEep Description Query Selects or returns the horizontal sweep mode.
GDS-1000-U Programming Manual Example :timetable:window:delay 100 Sets the zoom width to 100 points Set :TIMebase:WINDow:SCALe Description Query Sets or returns the scale (length) of the zoomed window.
COMMAND DETAILS Trigger command :FORCe .........................................................................61 :RUN ............................................................................62 :SINGle .........................................................................62 :STOP ...........................................................................62 *TRG ............................................................................62 :TRIGger:COUPle ............................................
GDS-1000-U Programming Manual :RUN Description Set Starts waiting for a trigger condition. Same as: Run key Syntax :run :SINGle Description Set Selects the single trigger mode and starts waiting for a trigger condition. Same as: (Trigger) Single key Syntax :single :singl :STOP Description Set Stops waiting for a trigger condition. Same as: Stop key Syntax :stop *TRG Description Set Manually triggers the GDS-1000-U and displays the input signals.
COMMAND DETAILS Parameter :trigger:couple :trig:coup :trigger:couple? :trig:coup? Coupling mode 1 AC 2 DC Note Before using this command, select the edge or pulse trigger. See the example below. Example :trigger:type: 0 :trigger:couple 1 Selects the edge trigger and AC coupling mode :TRIGger:FREQuency Query Description Returns the trigger frequency readout.
GDS-1000-U Programming Manual Syntax Parameter < Long > < Short > :trigger:mode :trig:mod :trigger:mode? :trig:mod? Trigger mode 1 Auto 2 Normal Note Before using this command, select the edge or pulse trigger. See the example below. Example :trigger:type: 0 :trigger:mode 2 Selects the edge trigger and normal trigger mode Set :TRIGger:NREJ Description Query Turns the noise rejection mode on/off.
COMMAND DETAILS Set :TRIGger:PULSe:MODe Description Query Selects the trigger mode in the pulse trigger. Same as: Trigger key → F1(Pulse) → F3 Syntax Parameter < Long > < Short > :trigger:pulse:mode :trig:puls:mod :trigger:pulse:mode? :trig:puls:mod? Mode Mode 0 < 2 = 1 > 3 ≠ Note Before using this command, select the pulse trigger. See the example below.
GDS-1000-U Programming Manual Set :TRIGger:REJect Description Query Selects the trigger rejection filter. Same as: Trigger key → F4 → F3 Syntax Parameter < Long > < Short > :trigger:reject :trig:rej :trigger:reject? :trig:rej? Rejection filter 0 off 1 LF 2 HF Note Before using this command, select the edge or pulse trigger. See the example below.
COMMAND DETAILS Example Selects the edge trigger and negative trigger slope :trigger:type 0 :trigger:slop 1 Set :TRIGger:SOURce Description Query Selects the trigger source channel.
GDS-1000-U Programming Manual Set :TRIGger:VIDeo:FIELd Description Query Selects the trigger field in the video trigger. Same as: Trigger key → F1(Video) → F5 Syntax Parameter < Long > < Short > :trigger:video:field :trig:vid:fiel :trigger:video:field? :trig:vid:fiel? Field 0 Line 1 odd Field 2 even Note Before using this command, select the video trigger. See the example below.
COMMAND DETAILS Example Selects the video trigger, PAL, odd field triggering, and line 313 :trigger:type 1 :trigger:video:type 0 :trigger:video:field 1 :trigger:video:line 313 Set :TRIGger:VIDeo:POLarity Description Query Selects the video trigger polarity.
GDS-1000-U Programming Manual Note Before using this command, select the video trigger. See the example below.