GW Instek GBS-1000 User Manual

Digital Storage Oscilloscope
GBS-1000 Series
PROGRAMMING MANUAL
GW INSTEK PART NO. 82BS-12040M01
ISO-9001 CERTIFIED MANUFACTURER
This manual contains proprietary information, which is protected by copyrights. 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 company.
The information in this manual was correct at the time of printing. However, Good Will continues to improve products and reserves the rights to change specification, equipment, and maintenance procedures at any time without notice.
Good Will Instrument Co., Ltd. No. 7-1, Jhongsing Rd., Tucheng City, Taipei County 236, Taiwan.
TABLE OF CONTENTS
Table of Contents
CONFIGURATION ............................................................. 4
Interface Overview ................................. 5
USB interface Configuration................... 7
RS-232C Interface Configuration ............ 8
COMMAND SET .............................................................. 11
COMMAND SET .............................................................. 11
Command List ..................................... 11
Command Syntax ................................. 16
System Commands .............................. 17
Acquisition Command .......................... 20
Auto Set Command .............................. 23
Channel / Math Command ................... 24
Data Log Commands ........................... 30
Cursor Command ................................. 33
Display Command ................................ 36
Go-NoGo Command ............................ 39
Hardcopy Command ............................ 50
Measure command .............................. 53
Memory (Save/Recall) Command ......... 70
Run/Stop Commands ........................... 77
Trigger Commands ............................... 78
Time (horizontal) Commands .............. 86
3
GBS-1000 Programming Manual
GBS-1000 series overview
Interface Overview ....................................... 5
Rear panel ...................................................................... 5
Interface type ................................................................. 5
USB interface Configuration ........................ 7
RS-232C Interface Configuration .................. 8
CONFIGURATION
This chapter describes how to configure GBS-1000 remote control interface.
4
CONFIGURATION








 


Power socket
Fuse socket
RS232C port
USB Slave Connector
Power switch
Calibration Output Terminal
GO-NoGO Output Terminal
USB Host Connector
Terminal application (USB/RS-232C)
Invoke the terminal application such as MTTTY (Multi-Threaded TTY).
For USB, set the COM port to COM7. No other
setting is required.
For RS-232C, set the COM port, baud rate, stop
bit, data bit, and parity accordingly.
To check the COM port No. for RS-232C, see the Device Manager in the PC. For WinXP, Control panel → System → Hardware tab.
Interface Overview
Rear panel
Interface type
5
GBS-1000 Programming Manual
Functionality check
Run this query command via the terminal.
*idn?
This should return the Manufacturer, Model number, Serial number, and Firmware version in the following format.
GW, GBS-1064, 000000001, V1.00
PC Software (USB only)
The PC software, FreeWave, can be used for remote control. This mode is only available for the USB interface.
1. Activate FreeWave. For
installation details, see page the FreeWave user manual.
6
CONFIGURATION
USB configuration
PC side connector
Type A, host
GBS-1000 side connector
Type B, slave
Speed
1.1/2.0 (full speed)
Panel operation
1. Press the Utility key.
Utility
2. Press F2 (Interface Menu).
Interface
Menu
F 2
3. Press F1 (Type) repeatedly
to select USB.
Type
USB
F 1
4. The interface icon at the top
of the display changes into USB type.
5. Connect the USB cable to
the rear panel slave port.
6. When the PC asks for the USB driver, select
dso_vpo.inf included on the User Manual CD or in the FreeWave software package downloadable from GW website,
www.gwinstek.com.tw, GBS-1000 product
corner.
USB interface Configuration
7
GBS-1000 Programming Manual
RS-232C configuration
Connector
DB-9, Male
Baud rate
2400, 4800, 9600, 19200, 38400
Parity
None, Odd, Even
Data bit
8 (fixed)
Stop bit
1, 2
Panel operation
1. Press the Utility key.
Utility
2. Press F2 (Interface Menu).
Interface
Menu
F 2
3. Press F1 (Type) repeatedly
to select RS-232C.
Type
RS232
F 1
4. The interface icon at the top
of the display changes into RS-232C type.
5. To change the baud rate,
press F2 (Baud Rate) repeatedly.
Baud Rate
9600
F 2
Range
2400, 4800, 9600, 19200, 38400
6. To change the stop bit, press
F3 (Stop Bit) repeatedly.
Stop Bit
2
F 3
Range
1, 2
7. Data bit is fixed at 8.
8. To change the parity, press
F4 (Parity) repeatedly.
Parity
None
F 4
RS-232C Interface Configuration
8
CONFIGURATION
Range
None, Odd, Even
9. Connect the RS-232C cable
to the rear panel port: DB-9 male connector.

Pin assignment
1 2 3 4 5
6 7 8 9
2: RxD (Receive data)
3: TxD (Transmit data)
5: GND
4, 6 ~ 9: No connection
PC connection
Use the Null Modem connection as in the below diagram.
GBS - 1000
PC
TxD
RxD
GND
Pin 2 Pin
3
Pin
5
RxD
TxD
GND
Pin 2 Pin
3
Pin
5
9
GBS-1000 Programming Manual
10
COMMAND SET
System
*IDN?.......... .................................................................17
*LRN?............ ...............................................................17
*RCL………. ...................................................................19
*RST………. ...................................................................19
*SAV……… ....................................................................19
Acquisition
:ACQuire:AVERage ...................................................... 20
:ACQuire:LENGth ........................................................21
:ACQuire:MODe ..........................................................21
:ACQuire:MEMory ...................................................... 22
:ACQuire:HORexpand ................................................ 22
Channel / Math
:CHANnel<X>:BWLimit .............................................. 24
:CHANnel<X>:COUPling ............................................ 25
:CHANnel<X>:DISPlay ............................................... 25
:CHANnel<X>:EXPand ............................................... 26
:CHANnel<X>:INVert ................................................. 26
:CHANnel<X>:MATH ................................................. 27
:CHANnel<X>:OFFSet ................................................ 28
:CHANnel<X>:PROBe ................................................ 28
:CHANnel<X>:SCALe ................................................. 29
Data Log
:DATALOG:STATE ...................................................... 30
:DATALOG:SOURce ................................................... 30
:DATALOG:SAVe .........................................................31
:DATALOG:INTerval ....................................................31
:DATALOG:DURation ..................................................31
COMMAND SET
Command List
11
GBS-1000 Programming Manual
Display
:DISPlay:ACCumulate .................................................. 36
:DISPlay:CONTrast ...................................................... 37
:DISPlay:GRATicule ..................................................... 37
:DISPlay:WAVEform .................................................... 38
:REFResh ...................................................................... 38
Go-NoGo
:GONogo:FUNction .................................................... 39
:GONogo:CLEar ........................................................... 40
:GONogo:EXECute ...................................................... 40
:GONogo:NGCount? ................................................... 41
:GONogo:NGDefine .................................................... 41
:GONogo:SOURce ...................................................... 42
:GONogo:VIOLation ................................................... 42
:TEMPlate:MAX ........................................................... 43
:TEMPlate:MIN ............................................................ 44
:TEMPlate:MODe ........................................................ 45
:TEMPlate:POSition:MAX ............................................ 46
:TEMPlate:POSition:MIN ............................................ 47
:TEMPlate:SAVe:AUTo................................................. 48
:TEMPlate:SAVe:MAXimum ........................................ 48
:TEMPlate:SAVe:MINimum ........................................ 48
:TEMPlate:TOLerance .................................................. 49
Hardcopy
:COPY…… ..................................................................... 50
:HARDcopy:INKSaver .................................................. 50
:HARDcopy:LAYout ..................................................... 51
:HARDcopy:MODe ...................................................... 51
:HARDcopy:RATio ....................................................... 52
12
COMMAND SET
Measure
:MEASure:DELAY1 ...................................................... 54
:MEASure:DELAY2 ...................................................... 55
:MEASure:FALL ........................................................... 55
:MEASure:FFFDelay .................................................... 56
:MEASure:FFRDelay .................................................... 56
:MEASure:FOVShoot .................................................. 57
:MEASure:FPReshoot ................................................. 57
:MEASure:FREQuency? .............................................. 58
:MEASure:FRFDelay .................................................... 58
:MEASure:FRRDelay ................................................... 59
:MEASure:LFFDelay .................................................... 59
:MEASure:LFRDelay .................................................... 60
:MEASure:LRFDelay .................................................... 60
:MEASure:LRRDelay ....................................................61
:MEASure:NWIDth ......................................................61
:MEASure:PDUTy? ...................................................... 62
:MEASure:PERiod? ...................................................... 62
:MEASure:PWIDth? .................................................... 63
:MEASure:RISe? .......................................................... 63
:MEASure:ROVShoot .................................................. 64
:MEASure:RPReShoot ................................................. 64
:MEASure:SOURce ..................................................... 65
:MEASure:VAMPlitude ............................................... 65
:MEASure:VAVerage ................................................... 66
:MEASure:VHI ............................................................. 66
:MEASure:VLO ............................................................ 67
:MEASure:VMAX ......................................................... 67
:MEASure:VMAX ......................................................... 68
:MEASure:VMIN ......................................................... 68
:MEASure:VPP ............................................................ 69
:MEASure:VRMS ......................................................... 69
13
GBS-1000 Programming Manual
Memory
:MEMory<X>:RECall:SETup ........................................ 70
:MEMory<X>:RECall:WAVeform ................................. 71
:MEMory<X>:SAVe:SETup .......................................... 71
:MEMory<X>:SAVe:WAVeform ................................... 72
:REFResh ...................................................................... 72
:REF<X>:DISPlay ......................................................... 72
:REF<X>:LOCate .......................................................... 73
:REF<X>:SAVe .............................................................. 74
:USB:RECall:SETup ...................................................... 74
:USB:RECall:WAVeform ............................................... 75
:USB:SAVe:ALL ............................................................ 75
:USB:SAVe:IMAGe ....................................................... 75
:USB:SAVe:SETup ........................................................ 76
:USB:SAVe:WAVeform ................................................. 76
Run/Stop
:RUN………. .................................................................. 77
:STOP….. ...................................................................... 77
Trigger
:TRIGger:COUPle ......................................................... 78
:TRIGger:FREQuency ................................................... 79
:TRIGger:LEVel ............................................................. 79
:TRIGger:MODe ........................................................... 79
:TRIGger:NREJ ............................................................. 80
:TRIGger:PULSe:MODe ............................................... 80
:TRIGger:PULSe:TIMe ................................................. 81
:TRIGger:REJect ........................................................... 81
:TRIGger:SLOPe ........................................................... 82
:TRIGger:SOURce ........................................................ 82
:TRIGger:TYPe ............................................................. 83
:TRIGger:VIDeo:FIELd ................................................. 83
:TRIGger:VIDeo:LINe .................................................. 84
:TRIGger:VIDeo:POLarity ............................................ 84
:TRIGger:VIDeo:TYPe .................................................. 85
14
COMMAND SET
Time
:TIMebase:DELay ........................................................ 86
:TIMebase:SCALe ........................................................ 86
:TIMebase:SWEep ....................................................... 87
:TIMebase:WINDow:DELay ........................................ 88
:TIMebase:WINDow:SCALe ....................................... 88
15
GBS-1000 Programming Manual
Compatible standard
IEEE488.2, 1992 (fully compatible) SCPI, 1994 (partially compatible)
Command format
trig:del:mod <NR1>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>
decimal numbers
0.1, 3.14, 8.5
<NR3>
floating point
4.5e-1, 8.25e+1
<NRf>
any of NR1, 2, 3
1, 1.5, 4.5e-1
Message terminator
Terminates a command line.
LF^END
line feed code (hexadecimal 0A) with END message
LF
line feed code
<dab>^END
last data byte with END message
Note
Commands introduced here are described in
abbreviated style (same functionality)
Commands are non-case sensitive.
Command Syntax
16
COMMAND SET
*IDN?...........................................................................17
*LRN?.................. .........................................................17
*RCL………………….. ......................................................19
*RST…………. ................................................................19
*SAV………... .................................................................19
*IDN?
Set
Query
Description
Returns oscilloscope ID as Manufacturer, Model No, Serial No, Firmware version.
Syntax
*idn?
Return parameter
<string>
Scope id
Example
*idn? > GW,GBS-1062, ZZ1234567891,V1.00 BXXXX_1
Returns the scope id.
*LRN?
Set
Query
Description
Returns the oscilloscope settings as a string
Syntax
*lrn?
Return parameter
<string>
scope settings
Example
*lrn?
>:SYSTem:TIMe 13 47 4;DATe 16 12 2013;:TRIGger:TYPe 0;COUPle 0;LEVel
0.000E+00;MODe 1;NREJ 0;REJect 0;SLOP
System Commands
17
GBS-1000 Programming Manual
0;SOURce 0;ADVance:DELay 1.000E-07;EVENt 3;LEVel 1.480E+00;MODe 0;TYPe 0;PULSe:TIMe
1.000E+01;MODe: 1;TV:FIELd 1;LINe 1;POLarity 1;TYPe 0;:ACQuire:AVERage 1;LENGth 12500;MODe 0;POINt;:DISPlay:WAVeform 0;DISPCONTrast 4;GRATicule 0;:CURSor:SOURce 1;X1Position ;X2Position ;Y1Position ;Y2Position ;XDELTa ;YDELTa ;X DISPlay 2;YDISPlay 2;:CHANnel1:BWLimit 0;COUPling 1;DISPlay 1;INVert 0;MATH 0;OFFSet
1.000e-01;PROBe 0;SCALe 1.000e­01;:CHANnel2:BWLimit 0;COUPling 0;DISPlay 1;INVert 0;MATH 0;OFFSet 2.080e-01;PROBe 0;SCALe 2.000e-01;:MEASure:SOURce 1;FALL
1.563E-06;FREQuency 1.000E+03;NWIDth 4.999E­04;PDUTy 50.00%;PERiod 1.000E-03;PWIDth
5.000E-04;RISe 1.030E-06;VAMPlitude 2.280E­01;VAVerage 2.370E-03;VHI 1.160E-01;VLO -
1.120E-01;VMAX 1.160E-01;VMIN -1.120E-01;VPP
2.280E-01;VRMS 1.000E-01;ROVShoot
0.00%;FOVShoot ?;RPReshoot ?;FPReshoot
0.00%;:MEASure:SOURce 2;FALL ?;FREQuency ?;NWIDth ?;PDUTy ?;PERio d ?;PWIDth ?;RISe ?;VAMPlitude 4.000E­02;VAVerage 1.720E-02;VHI 4.000E-02;VLO
0.000E+00;VMAX 4.000E-02;VMIN 0.000E+00;VPP
4.000E-02;VRMS 1.820E­02;ROVShoot ?;FOVShoot ?;RPReshoot ?;FPReshoo t ?;DELAY1 1;DELAY2 2;FRRDelay -1.487E­05;FRFDelay -1.487E-05;FFRDelay -5.149E­04;FFFDelay -5.149E­04;LRRDelay ?;LRFDelay ?;LFRDelay ?;LFFDelay ? ;:TIMebase:DELay 0.000e+00;SCALe 2.500e-04; SWEep 0;:AUToset;:PRINt;:REFResh;:RUN;:STOP
18
COMMAND SET
*RCL
Set
Description
Recalls a set of panel setting from one of the twenty internal memories, S1 to S20.
Same as: Save/Recall key → F5(More) → F3(Recall Setup)
Syntax
*rcl <NR1>
Parameter
<NR1>
Settings
1 to 20
S1 to S20
Example
*rcl 1
Recalls the panel settings from S1
*RST
Set
Description
Resets the GDB-1000 (recalls the default panel settings).
Same as: Save/Recall key → F1(Default Setup)
Syntax
*rst
*SAV
Set
Description
Saves the panel setting to one of the twenty internal memories, S1 to S20.
Same as: Save/Recall key → F3(Save Setup)
Syntax
*sav<NR1>
Parameter
<NR1>
Settings
1 to 20
S1 to S20
Example
*SAV 1
Saves the panel settings to S1.
19
GBS-1000 Programming Manual
:ACQuire:AVERage ...................................................... 20
:ACQuire:LENGth ........................................................ 21
:ACQuire:MODe .......................................................... 21
:ACQuire:MEMory ....................................................... 22
:ACQuire:HORexpand ................................................. 22
:ACQuire:AVERage
Set
Query
Description
Selects or returns the average number of waveform acquisition in average acquisition mode.
Same as: Acquire key → F3
Syntax
< Long >
< Short >
:acquire:average <NR1>
:acquire:average?
:acq:aver <NR1>
:acq:aver?
Parameter
<NR1>
Average No
<NR1>
Average No
1 2 5 32
2 4 6 64 3 8 7
128
4 16 8 256
Before this
command
Before selecting the average number, select the average acquisition mode using this command.
:ACQuire:MODe 2
Example
:acquire:mode 2
:acquire:average 2
Set the acquisition mode to average, then set the average number to 4
Acquisition Command
20
COMMAND SET
:ACQuire:LENGth
Set
Query
Description
Selects or returns the memory length.
Same as: Acquire key F5
Syntax
< Long >
< Short >
:acquire:length <NR1>
:acquire:length?
:acq:leng <NR1>
:acq:leng?
Parameter
<NR1>
Memory length
0 500
1 25000 (1 channel On) 12500 (2 channels On) 5000 (3 or 4 channels On)
Example
:acquire:length 0
Set the memory length to 500 (short)
:ACQuire:MODe
Set
Query
Description
Selects or returns the acquisition mode.
Same as: Acquire key F1 ~ F3
Syntax
< Long >
< Short >
:acquire:mode <NR1>
:acquire:mode?
:acq:mod <NR1>
:acq:mod?
Parameter
<NR1>
Acquisition mode
0 Normal
1 Peak detect
2 Average
Example
:acquire:mode 2
:acquire:average 2
Set the acquisition mode to average, then set the average number to 4
21
GBS-1000 Programming Manual
:ACQuire:MEMory
Query
Description
Returns the total waveform data from the acquisition memory.
Syntax
< Long >
< Short >
:acquire<X>:memory?
:acq<X>:mem?
Parameter
<X>
Channel
1/2/3/4
Channel1/2/3/4
Data format
:ACQuire:HORexpand
Set
Query
Description
Sets the horizontal expansion point from the center of the screen or from the trigger point.
Same as: Acquire keyF4
Syntax
< Long >
< Short >
:ACQuire:HORexpand {0|1} :ACQuire:HORexpand?
:ACQ:HOR {0|1} :ACQ:HOR?
Parameter/ Return parameter
<NR1>
Expand function
0
Expand from center
1 Expand from trigger
Example
:acquire:horexpand 0
Sets the horizontal
expansion as “from center”.
22
COMMAND SET
:AUToset
Set
Description
Runs Auto Set (automatically configures horizontal scale, vertical scale, trigger according to the input signal)
Same as: Auto Set key
Syntax
< Long >
< Short >
:autoset
:aut
Auto Set Command
23
GBS-1000 Programming Manual
:CHANnel<X>:BWLimit ............................................... 24
:CHANnel<X>:COUPling............................................. 25
:CHANnel<X>:DISPlay ................................................ 25
:CHANnel<X>:EXPand ................................................ 26
:CHANnel<X>:INVert .................................................. 26
:CHANnel<X>:MATH .................................................. 27
:CHANnel<X>:OFFSet ................................................. 28
:CHANnel<X>:PROBe ................................................. 28
:CHANnel<X>:SCALe .................................................. 29
:CHANnel<X>:BWLimit
Set
Query
Description
Turns On/Off the bandwidth limit or returns the status.
Same as: Channel key F3
Syntax
< Long >
< Short >
:channel<X>:bwlimit <NR1>
:channel<X>:bwlimit?
:chan<X>:bwl <NR1>
:chan:bwl?
Parameter
<X>
Channel
<NR1>
Limit
1/2/3/4
CH1/2/3/4
0
Off
1 On
Example
:channel1:bwlimit 1
Turn On bandwidth limit for Channel 1
Channel / Math Command
24
COMMAND SET
:CHANnel<X>:COUPling
Set
Query
Description
Selects or returns the coupling mode for each channel.
Same as: Channel key F1
Syntax
< Long >
< Short >
:channel<X>:coupling <NR1>
:channel<X>:coupling?
:chan<X>:coup <NR1>
:chan:coup?
Parameter
<X>
Channel
<NR1>
Coupling mode
1/2/3/4
CH1/2/3/4
0
AC coupling
1 DC coupling
2 Ground coupling
Example
:channel1:coupling 1
Select DC coupling for Channel 1
:CHANnel<X>:DISPlay
Set
Query
Description
Turns On/Off each channel or returns the status.
Same as: Channel key
Syntax
< Long >
< Short >
:channel<X>:display <NR1>
:channel<X>:display?
:chan<X>:disp <NR1>
:chan<X>:disp?
Parameter
<X>
Channel
<NR1>
Channel On/Off
1/2/3/4
CH1/2/3/4
0
Off
1 On
Example
:channel1:display 1
Turn On Channel 1
25
GBS-1000 Programming Manual
:CHANnel<X>:EXPand
Set
Query
Description
Sets the expansion mode as from ground or from center for a selected channel. Queries the Expand status of a channel.
Same as: Channel keyExpand
Syntax
< Long >
< Short >
:channel<X>:expand <Boolean>
:channel<X>:expand?
:chan<X>:exp <Boolean>
:chan<X>:exp?
Parameter
<X>
Channel
<NR1>
Expand
1/2/3/4
CH1/2/3/4
0
Ground
1 Center
Example
:channel1:expand 1
:channel1:expand?
1
Sets Channel 1 to Expand from Center.
Returns expand from
center (1) as channel 1’s
Expand status.
:CHANnel<X>:INVert
Set
Query
Description
Inverts channel or returns the status.
Same as: Channel key F2
Syntax
< Long >
< Short >
:channel<X>:invert <NR1>
:channel<X>:invert?
:chan<X>:inv <NR1>
:chan<X>:inv?
Parameter
<X>
Channel
<NR1>
Channel invert
1/2/3/4
CH1/2/3/4
0
Invert Off
1 Invert On
Example
:channel1:invert 1
Invert Channel1
26
COMMAND SET
:CHANnel<X>:MATH
Set
Query
Description
Selects or returns the math operation.
Same as: Math key F1
Syntax
< Long >
< Short >
:channel<X>:math <NR1>
:channel<X>:math?
:chan<X>:math <NR1>
:chan<X>:math?
Parameter
<X>
Channel
<NR1>
Math operation
1/2
CH1 and CH2
0
Math off
3/4
CH3 and CH4
1
Add
2 Subtract
3 Multiply
4 FFT
5 FFTrms
Example1
:channel1:math 1
CH1+CH2
Example2
:channel2:math 1
CH1+CH2
Example3
:channel2:math 4
Run FFT on CH2 signal
27
Loading...
+ 61 hidden pages