GW Instek AFG-3000 Series Owner's manual

本マニュアルについて
1
任意ファンクションジェネレータ
AFG-3000 シリーズ
英文プログラミングマニュアル
ユーザーマニュアル
GW INSTEK PART NO. 82FG-30820M01
ISO-9001 CERTIFIED MANUFACTURER

2
本マニュアルについて
ご使用に際しては、必ず本マニュアルを最後までお読みいただき、正
しくご使用ください。また、いつでも見られるよう保存してください。
本書の内容に関しましては万全を期して作成いたしましたが、万一
不審な点や誤り、記載漏れなどがございましたらご購入元または弊
社までご連絡ください。
201101 編集
このマニュアルは著作権によって保護された知的財産情報を含んで
います。 当社はすべての権利を保持します。 当社の文書による事前
承諾なしに、このマニュアルを複写、転載、翻訳することはできませ
ん。
このマニュアルに記載された情報は印刷時点のものです。製品の仕
様、機器、および保守手順は、いつでも予告なしで変更することがあり
ますので予めご了承ください。
Good Will Instrument Co., Ltd.
No. 7-1, Jhongsing Rd., Tucheng Dist., New Taipei City 236, Taiwan.

3
REMOTE INTERFACE
Establishing a Remote Connection ......................................7
Configure USB interface.........................................................7
Configure RS232 interface......................................................8
Configure GPIB interface .......................................................9
Remote control terminal connection...................................10
Command Syntax...............................................................12
Command List ...................................................................17
System Commands............................................................20
SYSTem:ERRor? ...................................................................20
*IDN? ...................................................................................20
*RST .....................................................................................21
*TST? ....................................................................................21
SYSTem:VERSion?................................................................21
*OPC ....................................................................................22
*OPC?...................................................................................22
*WAI .....................................................................................23
SYSTem:LANGuage .............................................................23
Status Register Commands ...............................................24
*CLS......................................................................................24
*ESE......................................................................................24
*ESR?....................................................................................25
*STB?....................................................................................25
*SRE .....................................................................................26
Interface Configuration Commands ...................................27
SYSTem:INTerface ...............................................................27
SYSTem:LOCal .....................................................................27
SYSTem:REMote ..................................................................27
Apply Commands ..............................................................28
SOURce[1]:APPLy:SINusoid.................................................30
SOURce[1]:APPLy:SQUare ...................................................30
SOURce[1]:APPLy:RAMP......................................................31
SOURce[1]:APPLy:PULSe .....................................................31
SOURce[1]:APPLy:NOISe.....................................................32

4
SOURce[1]:APPLy:TRIangle ................................................. 32
SOURce[1]:APPLy:DC........................................................... 33
SOURce[1]:APPLy:USER ...................................................... 33
SOURce[1]:APPLy? ............................................................... 34
Output Commands ............................................................35
SOURce[1]:FUNCtion .......................................................... 35
SOURce[1]:FREQuency ........................................................ 36
SOURce[1]:AMPlitude.......................................................... 38
SOURce[1]:DCOffset............................................................ 39
SOURce[1]:SQUare:DCYCle................................................. 40
SOURce[1]:RAMP:SYMMetry .............................................. 41
OUTPut ................................................................................ 42
OUTPut:LOAD ..................................................................... 42
SOURce[1]:VOLTage:UNIT.................................................. 43
Pulse Configuration Commands ........................................45
SOURce[1]:PULSe:PERiod ................................................... 45
SOURce[1]:PULSe:WIDTh ................................................... 46
Amplitude Modulation (AM) Commands ...........................47
AM Overview........................................................................ 47
SOURce[1]:AM:STATe.......................................................... 48
SOURce[1]:AM:SOURce ...................................................... 48
SOURce[1]:AM:INTernal:FUNCtion .................................... 49
SOURce[1]:AM:INTernal:FREQuency.................................. 49
SOURce[1]:AM:DEPTh......................................................... 50
Frequency Modulation (FM) Commands............................52
FM Overview ........................................................................ 52
SOURce[1]:FM:STATe.......................................................... 53
SOURce[1]:FM:SOURce....................................................... 53
SOURce[1]:FM:INTernal:FUNCtion .................................... 54
SOURce[1]:FM:INTernal:FREQuency .................................. 55
SOURce[1]:FM:DEViation.................................................... 55
Frequency-Shift Keying (FSK) Commands ..........................57
FSK Overview ...................................................................... 57
SOURce[1]:FSKey:STATe...................................................... 57
SOURce[1]:FSKey:SOURce .................................................. 58
SOURce[1]:FSKey:FREQuency ............................................. 58
SOURce[1]:FSKey:INTernal:RATE........................................ 59
Pulse Width Modulation (PWM) Commands .....................60
PWM Overview..................................................................... 60
SOURce[1]:PWM:STATe ...................................................... 61
SOURce[1]:PWM:SOURce ................................................... 61
SOURce[1]:PWM:INTernal:FUNction ................................. 62
SOURce[1]:PWM:INTernal:FREQuency .............................. 62

5
SOURce[1]:PWM:DUTY .......................................................63
Frequency Sweep Commands ............................................65
Sweep Overview...................................................................65
SOURce[1]:SWEep:STATe ....................................................66
SOURce[1]:FREQuency:STARt .............................................67
SOURce[1]:FREQuency:STOP..............................................67
SOURce[1]:FREQuency:CENTer ..........................................68
SOURce[1]:FREQuency:SPAN..............................................69
SOURce[1]:SWEep:SPACing ................................................69
SOURce[1]:SWEep:TIME......................................................70
SOURce[1]:SWEep:SOURce.................................................71
OUTPut[1]:TRIGger:SLOPe..................................................71
OUTPut[1]:TRIGger ..............................................................72
SOURce[1]:MARKer:FREQuency..........................................73
SOURce[1]:MARKer..............................................................74
Burst Mode Commands.....................................................75
Burst Mode Overview ..........................................................75
SOURce[1]:BURSt:STATe.....................................................77
SOURce[1]:BURSt:MODE ....................................................77
SOURce[1]:BURSt:NCYCles .................................................78
SOURce[1]:BURSt:INTernal:PERiod ....................................79
SOURce[1]:BURSt:PHASe ....................................................80
SOURce[1]:BURSt:TRIGger:SOURce ...................................80
SOURce[1]:BURSt:TRIGger:DELay.......................................81
SOURce[1]:BURSt:TRIGger:SLOPe......................................82
SOURce[1]:BURSt:GATE:POLarity .......................................83
SOURce[1]:BURSt:OUTPut:TRIGger:SLOPe .......................84
OUTPut:TRIGger..................................................................85
Arbitrary Waveform Commands .........................................86
Arbitrary Waveform Overview..............................................86
SOURce[1]:FUNCtion USER ................................................87
DATA:DAC............................................................................87
SOURce[1]:ARB:EDIT:COPY ................................................89
SOURce[1]:ARB:EDIT:DELete ..............................................89
SOURce[1]:ARB:EDIT:DELete:ALL .......................................89
SOURce[1]:ARB:EDIT:POINt ...............................................90
SOURce[1]:ARB:EDIT:LINE..................................................90
SOURce[1]:ARB:EDIT:PROTect............................................91
SOURce[1]:ARB:EDIT:PROTect:ALL ....................................91
SOURce[1]:ARB:EDIT:UNProtect.........................................91
SOURce[1]:ARB:BUILt:SINusoid .........................................92
SOURce[1]:ARB:BUILt:SQUare............................................92
SOURce[1]:ARB:BUILt:RAMP...............................................93
SOURce[1]:ARB:BUILt:SINC ................................................93
SOURce[1]:ARB:BUILt:EXPRise ...........................................94

6
SOURce[1]:ARB:BUILt:EXPFail ............................................ 94
SOURce[1]:ARB:BUILt:DC ................................................... 95
SOURce[1]:ARB:OUTPut:MARKer ....................................... 95
SOURce[1]:ARB:OUTPut...................................................... 96
Save and Recall Commands ...............................................96
*SAV..................................................................................... 96
*RCL ..................................................................................... 97
MEMory:STATe:DELete ....................................................... 97
MEMory:STATe:DELete ALL ................................................ 97
Error Messages..................................................................98
Command Error Codes ........................................................ 98
Execution Errors................................................................. 100
Query Errors....................................................................... 110
Arbitrary Waveform Errors................................................. 110
SCPI Status Registers ......................................................112
Register types..................................................................... 112
AFG-3000 Status System ................................................... 113
Questionable Status Register ............................................ 114
Standard Event Status Registers ....................................... 114
The Status Byte Register .................................................... 116
Output Queue.................................................................... 117
Error Queue........................................................................ 117

7
Establishing a Remote Connection
The AFG-3000 supports USB, RS232 and GPIB remote connections.
Configure USB interface
PC side connector
Type A, host
USB
configuration AFG-3000 side
connector
Type B, slave
Speed
1.1/2.0 (full speed)
Panel Operation 1. Press the Utility key
followed by Interface (F2)
and USB (F3).
2. Connect the USB cable to
the rear panel USB B (slave)
port.
3. When the PC asks for the USB driver, select
XXXXXXX.inf included in the software
package or download the driver from the GW
website, www.gwinstek.com.

8
Configure RS232 interface
Connector DB-9, Male
RS-232C
configuration Baud rate 9600, 19200, 38400, 57600,
115200
Parity
None/8Bits, Odd/7Bits,
Even/7Bits
Stop bits
1 (fixed)
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.
Panel Operation 1. Connect the RS-232 cable to
the rear panel RS-232 port.
RS232
2. Press the Utility key
followed by Interface (F2)
and RS-232 (F2).
1. Press Baud Rate (F1) and
choose a baud rate
(F1)~(F5). Press return

9
2. Press Parity/Bits (F2) and
choose a parity (F1)~(F3).
Press return.
Configure GPIB interface
GPIB
configuration
Connector 24 pin Female
GPIB address
1-30
GPIB constraints
• Maximum 15 devices altogether, 20m cable
length, 2m between each device
• Unique address assigned to each device
• At least 2/3 of the devices turned On
• No loop or parallel connection
Pin assignment
12 1
24 13
Pin1 Data line 1 Pin13 Data line 5
Pin2 Data line 2 Pin14 Data line 6
Pin3 Data line 3 Pin15 Data line 7
Pin4 Data line 4 Pin16 Data line 8
Pin5 EOI Pin17 REN
Pin6 DAV Pin18 Ground
Pin7 NRFD Pin19 Ground
Pin8 NDAC Pin20 Ground
Pin9 IFC Pin21 Ground
Pin10 SRQ Pin22 Ground
Pin11 ATN Pin23 Ground
Pin12 Shield (screen) Pin24 Signal ground
Panel Operation 1. Connect the GPIB cable to
the rear panel GPIB port.

10
2. Press the Utility key
followed by Interface and
GPIB. Press Address (F1).
3. Use the scroll wheel or
number pad to choose an
address.
/
4. Press Done (F5) to confirm.
Remote control terminal connection
Termin al
application
Invoke the terminal application such as MTTTY
(Multi-Threaded TTY). For RS-232C, set the COM
port, baud rate, stop bit, data bit, and parity
accordingly.
To check the COM port No, see the Device
Manager in the PC. For WinXP, Control panel →
System →Hardware tab.
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 INSTEK, AFG-3081, SN:XXXXXXXX,Vm.mm
Note: ^j or ^m can be used as the terminal
character when using a terminal program.
PC Software
The proprietary PC software, downloadable from
GWInstek website, can be used for remote control.

11
Display When a remote connection is established all panel
keys are locked bar F6.
1. Press REM/LOCK (F6) to
return the function
generator to local mode.

12
Command Syntax
Compatible
standard
• IEEE488.2, 1992 (fully compatible)
• SCPI, 1994 (partially compatible)
Command Tree The SCPI standard is an ASCII based standard that
defines the command syntax and structure for
programmable instruments.
Commands are based on a hierarchical tree
structure. Each command keyword is a node on
the command tree with the first keyword as the
root node. Each sub node is separated with a
colon.
Shown below is a section of the SOURce[1] root
node and the :PWM and :PULSe sub nodes.
Command types Commands can be separated in to three distinc
types, simple commands, compound commands
and queries.
Simple
A single command with/without
a parameter
Example *OPC
Compound
Two or more commands
separated by a colon (:)
with/without a parameter
Example SOURce:PULSe:WIDTh

13
Query
A query is a simple or compound
command followed by a question
mark (?). A parameter (data) is
returned. The maximum or
minimum value for a parameter
can also be queried where
applicable.
Example
SOURce1:FREQuency?
SOURce1:FREQuency? MIN
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.
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
SOURce1:DCOffset
SOURCE1:DCOFFSET
source1:dcoffset
SHORT
SOUR1:DCO
sour1:dco

14
Command
Format
1: command header
2: single space
3: parameter
4: message terminator
Square Brackets [] Commands that contain squares brackets indicate
that the contents are optional. The function of the
command is the same with or without the square
bracketed items. Brackets are not sent with the
command.
For example, the frequency query below can use any of
the following 3 forms:
SOURce1:FREQuency? [MINimum|MAXimum]
SOURce1:FREQuency? MAXimum
SOURce1:FREQuency? MINimum
SOURce1:FREQuency?
Braces {} Commands that contain braces indicate one item
within the braces must be chosen. Braces are not
sent with the command.
Angled Brackets
<>
Angle brackets are used to indicate that a value
must be specified for the parameter. See the
parameter description below for details. Angled
brackets are not sent with the command.
Bars | Bars are used to separate multiple parameter
choices in the command format.
Parameters Type Description Example
<Boolean>
Boolean logic 0, 1/ON,OFF
<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

15
<NRf+>
<Numeric>
NRf type with a
suffix including
MINimum,
MAXimum or
DEFault
parameters.
1, 1.5, 4.5e-1
MAX, MIN,
<aard>
Arbitrary ASCII
characters.
<discrete>
Discrete ASCII
character
parameters
IMM, EXT,
MAN
<frequency>
<peak deviation
in Hz>
<rate in Hz>
NRf+ type
including
frequency unit
suffixes.
1 KHZ, 1.0 HZ,
UHZ
<amplitude>
NRf+ type
including voltage
peak to peak.
VPP
<offset>
NRf+ type
including volt
unit suffixes.
V
<seconds>
NRf+ type
including time
unit suffixes.
NS, S MS US
<percent>
<depth in
percent>
NRf type N/A
Message
terminators
LF CR line feed code (new line) and
carriage return.
LF line feed code (new line)
EOI
IEEE-488 EOI (End-Or-Identify)
Note ^j or ^m should be used when using a terminal
program.

16
Space A space is used to separate a
parameter from a
keyword/command header.
Command
Separators
Colon (:) A colon is used to separate
keywords on each node.
Semicolon (;)
A semi colon is used to separate
subcommands that have the same
node level.
For example:
SOURce[1]:DCOffset?
SOURce[1]:OUTPut?
ÆSOURce1:DCOffset?;OUTPut?
Colon +
Semicolon (:;)
A colon and semicolon can be
used to combine commands from
different node levels.
For example:
SOURce1:PWM:SOURce?
SOURce:PULSe:WIDTh?
ÆSOURce1:PWM:SOURce?:;SOURc
e:PULSe:WIDTh?
Comma (,)
When a command uses multiple
parameters, a comma is used to
separate the parameters.
For example:
SOURce:APPLy:SQUare 10KHZ, 2.0
VPP, -1V

17
Command List
System Commands............................................................20
SYSTem:ERRor? ...................................................................20
*IDN? ...................................................................................20
*RST .....................................................................................21
*TST? ....................................................................................21
SYSTem:VERSion?................................................................21
*OPC ....................................................................................22
*OPC?...................................................................................22
*WAI .....................................................................................23
SYSTem:LANGuage .............................................................23
Status Register Commands ...............................................24
*CLS......................................................................................24
*ESE......................................................................................24
*ESR?....................................................................................25
*STB?....................................................................................25
*SRE .....................................................................................26
Interface Configuration Commands ...................................27
SYSTem:INTerface ...............................................................27
SYSTem:LOCal .....................................................................27
SYSTem:REMote ..................................................................27
Apply Commands ..............................................................28
SOURce[1]:APPLy:SINusoid.................................................30
SOURce[1]:APPLy:SQUare ...................................................30
SOURce[1]:APPLy:RAMP......................................................31
SOURce[1]:APPLy:PULSe .....................................................31
SOURce[1]:APPLy:NOISe.....................................................32
SOURce[1]:APPLy:TRIangle..................................................32
SOURce[1]:APPLy:DC...........................................................33
SOURce[1]:APPLy:USER.......................................................33
SOURce[1]:APPLy? ...............................................................34
Output Commands............................................................35
SOURce[1]:FUNCtion...........................................................35
SOURce[1]:FREQuency ........................................................36
SOURce[1]:AMPlitude ..........................................................38
SOURce[1]:DCOffset ............................................................39
SOURce[1]:SQUare:DCYCle.................................................40
SOURce[1]:RAMP:SYMMetry...............................................41
OUTPut.................................................................................42
OUTPut:LOAD .....................................................................42
SOURce[1]:VOLTage:UNIT ..................................................43
Pulse Configuration Commands ........................................45

18
SOURce[1]:PULSe:PERiod ................................................... 45
SOURce[1]:PULSe:WIDTh ................................................... 46
Amplitude Modulation (AM) Commands ...........................47
AM Overview........................................................................ 47
SOURce[1]:AM:STATe.......................................................... 48
SOURce[1]:AM:SOURce ...................................................... 48
SOURce[1]:AM:INTernal:FUNCtion .................................... 49
SOURce[1]:AM:INTernal:FREQuency.................................. 49
SOURce[1]:AM:DEPTh......................................................... 50
Frequency Modulation (FM) Commands............................52
FM Overview ........................................................................ 52
SOURce[1]:FM:STATe.......................................................... 53
SOURce[1]:FM:SOURce....................................................... 53
SOURce[1]:FM:INTernal:FUNCtion .................................... 54
SOURce[1]:FM:INTernal:FREQuency .................................. 55
SOURce[1]:FM:DEViation.................................................... 55
Frequency-Shift Keying (FSK) Commands ..........................57
FSK Overview ....................................................................... 57
SOURce[1]:FSKey:STATe...................................................... 57
SOURce[1]:FSKey:SOURce .................................................. 58
SOURce[1]:FSKey:FREQuency ............................................. 58
SOURce[1]:FSKey:INTernal:RATE........................................ 59
Pulse Width Modulation (PWM) Commands .....................60
PWM Overview .................................................................... 60
SOURce[1]:PWM:STATe ...................................................... 61
SOURce[1]:PWM:SOURce ................................................... 61
SOURce[1]:PWM:INTernal:FUNction ................................. 62
SOURce[1]:PWM:INTernal:FREQuency .............................. 62
SOURce[1]:PWM:DUTY ....................................................... 63
Frequency Sweep Commands.............................................65
Sweep Overview ................................................................... 65
SOURce[1]:SWEep:STATe.................................................... 66
SOURce[1]:FREQuency:STARt............................................. 67
SOURce[1]:FREQuency:STOP.............................................. 67
SOURce[1]:FREQuency:CENTer .......................................... 68
SOURce[1]:FREQuency:SPAN ............................................. 69
SOURce[1]:SWEep:SPACing ................................................ 69
SOURce[1]:SWEep:TIME ..................................................... 70
SOURce[1]:SWEep:SOURce................................................. 71
OUTPut[1]:TRIGger:SLOPe.................................................. 71
OUTPut[1]:TRIGger.............................................................. 72
SOURce[1]:MARKer:FREQuency ......................................... 73
SOURce[1]:MARKer ............................................................. 74
Burst Mode Commands .....................................................75

19
Burst Mode Overview...........................................................75
SOURce[1]:BURSt:STATe.....................................................77
SOURce[1]:BURSt:MODE ....................................................77
SOURce[1]:BURSt:NCYCles .................................................78
SOURce[1]:BURSt:INTernal:PERiod ....................................79
SOURce[1]:BURSt:PHASe ....................................................80
SOURce[1]:BURSt:TRIGger:SOURce ...................................80
SOURce[1]:BURSt:TRIGger:DELay.......................................81
SOURce[1]:BURSt:TRIGger:SLOPe......................................82
SOURce[1]:BURSt:GATE:POLarity .......................................83
SOURce[1]:BURSt:OUTPut:TRIGger:SLOPe .......................84
OUTPut:TRIGger..................................................................85
Arbitrary Waveform Commands .........................................86
Arbitrary Waveform Overview..............................................86
SOURce[1]:FUNCtion USER ................................................87
DATA:DAC............................................................................87
SOURce[1]:ARB:EDIT:COPY ................................................89
SOURce[1]:ARB:EDIT:DELete ..............................................89
SOURce[1]:ARB:EDIT:DELete:ALL .......................................89
SOURce[1]:ARB:EDIT:POINt ...............................................90
SOURce[1]:ARB:EDIT:LINE..................................................90
SOURce[1]:ARB:EDIT:PROTect............................................91
SOURce[1]:ARB:EDIT:PROTect:ALL ....................................91
SOURce[1]:ARB:EDIT:UNProtect.........................................91
SOURce[1]:ARB:BUILt:SINusoid .........................................92
SOURce[1]:ARB:BUILt:SQUare............................................92
SOURce[1]:ARB:BUILt:RAMP...............................................93
SOURce[1]:ARB:BUILt:SINC ................................................93
SOURce[1]:ARB:BUILt:EXPRise ...........................................94
SOURce[1]:ARB:BUILt:EXPFail ............................................94
SOURce[1]:ARB:BUILt:DC....................................................95
SOURce[1]:ARB:OUTPut:MARKer .......................................95
SOURce[1]:ARB:OUTPut......................................................96
Save and Recall Commands...............................................96
*SAV .....................................................................................96
*RCL .....................................................................................97
MEMory:STATe:DELete........................................................97
MEMory:STATe:DELete ALL ................................................97

20
System Commands
SYSTem:ERRor? System Query
Description Reads an error from the error queue. See page 117
for details regarding the error queue.
Query Syntax SYSTem:ERRor?
Return parameter <string> Returns an error string,
<256 ASCII characters.
Example SYSTem:ERRor?
-138 Suffix not allowed
Returns an error string.
*IDN? System Query
Description Returns the function generator manufacturer,
model number, serial number and firmware
version number in the following format:
GW INSTEK,AFG-3081,SN:XXXXXXXX,Vm.mm
Query Syntax IDN?
Return parameter <string>
Example *IDN?
GW INSTEK,AFG-3081,SN:XXXXXXXX,Vm.mm
Returns the identification of the function
generator.
Other manuals for AFG-3000 Series
4
Table of contents
Other GW Instek Portable Generator manuals

GW Instek
GW Instek MFG-2000 Series User manual

GW Instek
GW Instek SFG-830 User manual

GW Instek
GW Instek ASR-2000 Series User manual

GW Instek
GW Instek ASR-2000 Series Owner's manual

GW Instek
GW Instek SFG-2000 Series User manual

GW Instek
GW Instek ASR-2000 Series User manual

GW Instek
GW Instek ASR-3000 Series User manual

GW Instek
GW Instek AFG-2225 User manual

GW Instek
GW Instek GFG-8215A User manual

GW Instek
GW Instek AFG-3021 User manual