GW Instek AFG-3000 Series Programming Manual
Hide thumbs Also See for AFG-3000 Series:
Table of Contents

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AFG-3000 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for GW Instek AFG-3000 Series

  • Page 1 本マニュアルについて 任意ファンクションジェネレータ AFG-3000 シリーズ 英文プログラミングマニュアル ユーザーマニュアル GW INSTEK PART NO. 82FG-30820M01 ISO-9001 CERTIFIED MANUFACTURER...
  • Page 2 本マニュアルについて ご使用に際しては、必ず本マニュアルを最後までお読みいただき、正 しくご使用ください。また、いつでも見られるよう保存してください。 本書の内容に関しましては万全を期して作成いたしましたが、万一 不審な点や誤り、記載漏れなどがございましたらご購入元または弊 社までご連絡ください。 201101 編集 このマニュアルは著作権によって保護された知的財産情報を含んで います。 当社はすべての権利を保持します。 当社の文書による事前 承諾なしに、このマニュアルを複写、転載、翻訳することはできませ ん。 このマニュアルに記載された情報は印刷時点のものです。製品の仕 様、機器、および保守手順は、いつでも予告なしで変更することがあり ますので予めご了承ください。 Good Will Instrument Co., Ltd. No. 7-1, Jhongsing Rd., Tucheng Dist., New Taipei City 236, Taiwan.
  • Page 3: Table Of Contents

    EMOTE 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...
  • Page 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 ...........
  • Page 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...
  • Page 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..........
  • Page 7: Establishing A Remote Connection

    Establishing a Remote Connection The AFG-3000 supports USB, RS232 and GPIB remote connections. Configure USB interface PC side connector Type A, host configuration Type B, slave AFG-3000 side connector 1.1/2.0 (full speed) Speed 1. Press the Utility key Panel Operation followed by Interface (F2) and USB (F3).
  • Page 8: Configure Rs232 Interface

    Configure RS232 interface DB-9, Male RS-232C Connector configuration 9600, 19200, 38400, 57600, Baud rate 115200 None/8Bits, Odd/7Bits, Parity Even/7Bits 1 (fixed) Stop bits 1 2 3 4 5 2: RxD (Receive data) Pin assignment 3: TxD (Transmit data) 6 7 8 9 5: GND 4, 6 ~ 9: No connection Use the Null Modem connection as in the below...
  • Page 9: Configure Gpib Interface

    2. Press Parity/Bits (F2) and choose a parity (F1)~(F3). Press return. Configure GPIB interface 24 pin Female GPIB Connector configuration 1-30 GPIB address Maximum 15 devices altogether, 20m cable GPIB constraints • length, 2m between each device Unique address assigned to each device •...
  • Page 10: Remote Control Terminal Connection

    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. The proprietary PC software, downloadable from PC Software GWInstek website, can be used for remote control.
  • Page 11 When a remote connection is established all panel Display keys are locked bar F6. 1. Press REM/LOCK (F6) to return the function generator to local mode.
  • Page 12: Command Syntax

    Command Syntax IEEE488.2, 1992 (fully compatible) Compatible • standard SCPI, 1994 (partially compatible) • The SCPI standard is an ASCII based standard that Command Tree defines the command syntax and structure for programmable instruments. Commands are based on a hierarchical tree structure.
  • Page 13 A query is a simple or compound Query 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. SOURce1:FREQuency? Example SOURce1:FREQuency? MIN Command forms Commands and queries have two different forms, long and short.
  • Page 14 1: command header Command Format 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.
  • Page 15 NRf type with a 1, 1.5, 4.5e-1 <NRf+> <Numeric> suffix including MAX, MIN, MINimum, MAXimum or DEFault parameters. Arbitrary ASCII <aard> characters. Discrete ASCII IMM, EXT, <discrete> character parameters NRf+ type 1 KHZ, 1.0 HZ, <frequency> including <peak deviation frequency unit in Hz>...
  • Page 16 A space is used to separate a Command Space Separators parameter from a keyword/command header. A colon is used to separate Colon (:) keywords on each node. A semi colon is used to separate Semicolon (;) subcommands that have the same node level.
  • Page 17: Command List

    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 ..............
  • Page 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 ........
  • Page 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...
  • Page 20: System Commands

    Returns an error string. *IDN? System Query Returns the function generator manufacturer, Description 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...
  • Page 21: Rst

    *RST System Command Reset the function generator to its factory default Description state. Note the *RST command will not delete Note instrument save states in memory. Syntax *RST *TST? System Query Performs a system self-test and returns a pass or Description fail judgment.
  • Page 22: Opc

    Returns the year (2010) and version for that year (1). *OPC System Command This command sets the Operation Complete Bit Description (bit 0) of the Standard Event Status Register after the function generator has completed all pending operations. For the AFG-3000, the *OPC command is used to indicate when a sweep or burst has completed.
  • Page 23: Wai

    *WAI System Command This command waits until all pending operations Description have completed before executing additional commands. I.e. when the OPC bit is set. This command is only used for triggered sweep Note and burst modes. Syntax *WAI SYSTem:LANGuage System Command Sets or queries the display language.
  • Page 24: Status Register Commands

    Status Register Commands *CLS System Command The *CLS command clears all the event registers, Description the error queue and cancels an *OPC command. Syntax *CLS *ESE System Command The Standard Event Status Enable command Description determines which events in the Standard Event Status Event register can set the Event Summary Bit (ESB) of the Status Byte register.
  • Page 25: Esr

    Example *ESE? Bit 2 is set. *ESR? System Command Reads and clears the Standard Event Status Description Register. The bit weight of the standard event status register is returned. The *CLS will also clear the standard event status Note register. Query Syntax *ESR? Return Parameter Bit...
  • Page 26: Sre

    *SRE System Command The Service Request Enable Command determines Description which events in the Status Byte Register are allowed to set the MSS (Master summary bit). Any bit that is set to “1” can cause the MSS bit to be set. The *CLS command clears the status byte event Note register, but not the enable register.
  • Page 27: Interface Configuration Commands

    Interface Configuration Commands SYSTem:INTerface System Command Selects the remote interface. RS-232 is the factory Description default. There is no interface query. Note Syntax SYSTem:INTerface {GPIB|RS232|USB} Example SYST:INT USB Sets the interface to USB. SYSTem:LOCal System Command Sets the function generator to local mode. In local Description mode, all front panel keys are operational.
  • Page 28: Apply Commands

    Apply Commands The APPLy command has 8 different types of outputs (Sine, Square, Ramp, Pulse, Noise, Triangle, DC, User). The command is the quickest, easiest way to output waveforms remotely. Frequency, amplitude and offset can be specified for each function. As only basic parameters can be set with the Apply command, other parameters use the instrument default values.
  • Page 29 When setting the amplitude, MINimum, Output MAXimum and DEFault can be used. The range Amplitude depends on the function being used and the output termination (50Ω or high impedance). The default amplitude for all functions is 100 mVpp (50Ω). If the amplitude has been set and the output termination is changed from 50Ω...
  • Page 30: Source[1]:Apply:sinusoid

    The offset is also determined by the output termination (50Ω or high impedance). If the offset has been set and the output termination has changed from 50Ω to high impedance, the offset will double. Changing the output termination from high impedance to 50Ω will half the offset. Source Specific SOURce[1]:APPLy:SINusoid Command...
  • Page 31: Source[1]:Apply:ramp

    <offset> 0~4.99V (50Ω) Example SOUR1:APPL:SQU 2KHZ,MAX,MAX Sets frequency to 2kHz and sets the amplitude and offset to the maximum. Source Specific SOURce[1]:APPLy:RAMP Command Outputs a ramp wave from the selected channel Description when the command has executed. Frequency, amplitude and offset can also be set. The symmetry is set to 100%.
  • Page 32: Source[1]:Apply:noise

    Syntax SOUR[1]:APPLy:PULSe [<frequency> [,<amplitude> [,<offset>] ]] Parameter <frequency> 500uHz~50MHz amplitude < > 10mV~10V (50Ω) <offset> 0~4.99V (50Ω) Example SOUR1:APPL:PULS 1KHZ,MIN,MAX Sets frequency to 1kHz and sets the amplitude to minimum and the and offset to the maximum. Source Specific SOURce[1]:APPLy:NOISe Command Outputs Gaussian noise with a 50 MHz Description...
  • Page 33: Source[1]:Apply:dc

    Syntax SOURce[1]:APPLy:TRIangle [<frequency> [,<amplitude> [,<offset>] ]] Parameter <frequency> 1uHz~1MHz amplitude < > 10mV~10V (50Ω) <offset> 0~4.99V (50Ω) Example SOUR1:APPL:TRI 2khz, 3.0, 1.0 Sets the frequency to 1 MHz with an amplitude of 3 volts and with an offset of 1 volt. Source Specific SOURce[1]:APPLy:DC Command...
  • Page 34: Source[1]:Apply

    Frequency and amplitude cannot be used with the Note DC function; however a value (or DEFault) must be specified. The values are remembered for the next function used. Syntax SOURce[1]:APPLy:USER [<frequency> [,<amplitude> [,<offset>] ]] Parameter <frequency> 1uHz~100MHz <amplitude> 0~10V (50Ω) <offset>...
  • Page 35: Output Commands

    Output Commands Unlike the Apply commands, the Output commands are low level commands to program the function generator. This section describes the low-level commands used to program the function generator. Although the APPLy command provides the most straightforward method to program the function generator, the low-level commands give you more flexibility to change individual parameters.
  • Page 36: Source[1]:Frequency

    Sine Squ Ramp Pulse Noise ARB × × × × × × × × × × × × SWEEP × × × BRUST × × × Syntax SOURce[1]:FUNCtion {SINusoid|SQUare|RAMP| PULSe|NOISe|TRIAngle|DC| USER} Example SOUR1:FUNC SIN Sets the output as a sine function. Query Syntax SOURce[1]:FUNCtion? Return Parameter SIN, SQU, RAMP, PULS,...
  • Page 37 User 1uHz~100MHz If the function mode is changed and the current frequency setting is not supported by the new mode, the frequency setting will be altered to next highest value. The duty cycle of square waveforms depends on the frequency settings. 20% to 80% (frequency <...
  • Page 38: Source[1]:Amplitude

    Source Specific SOURce[1]:AMPlitude Command Sets the output amplitude for the Description SOURce[1]:FUNCtion command. The query command returns the current amplitude settings. The maximum and minimum amplitude depends Note on the output termination. The default amplitude for all functions is 100 mVpp (50Ω). If the amplitude has been set and the output termination is changed from 50Ω...
  • Page 39: Source[1]:Dcoffset

    Example SOUR1:AMP MAX Sets the amplitude to the maximum for the current mode. Query Syntax SOURce[1]:AMPlitude? {MINimum|MAXimum} Return Parameter <NR3> Returns the amplitude for the current mode. Example SOUR1:AMP? MAX +5.0000E+00 The maximum amplitude that can be set for the current function is 5 volts.
  • Page 40: Source[1]:Square:dcycle

    Example SOUR1:DCO MAX Sets the offset to the maximum for the current mode. Query Syntax SOURce[1]:DCOffset? {MINimum|MAXimum} Return Parameter <NR3> Returns the offset for the current mode. Example SOUR1:DCO? +3.0000E+00 The offset for the current mode is set to +3 volts. Source Specific SOURce[1]:SQUare:DCYCle Command...
  • Page 41: Source[1]:Ramp:symmetry

    Sets the duty cycle to the highest possible for the current frequency. Query Syntax SOURce[1]:SQUare:DCYCle? {MINimum|MAXimum} Return Parameter <NR3> Returns the duty cycle as a percentage. Example SOUR1:SQU:DCYC? +5.00E+01 The duty cycle is set 50%. Source Specific SOURce[1]:RAMP:SYMMetry Command Sets or queries the symmetry for ramp waves only. Description The setting is remembered if the function mode is changed.
  • Page 42: Output

    Source Specific OUTPut Command Enables/Disables or queries the front panel Description output. The default is set to off. If the output is overloaded by an external voltage, Note the output will turn off and an error message will be displayed. The overload must first be removed before the output can be turned on again with output command.
  • Page 43: Source[1]:Voltage:unit

    the output termination from high impedance to 50Ω will half the amplitude. If the output termination is set to high impedance, dBm units cannot be used. The units will default to Vpp. Syntax OUTPut:LOAD {DEFault|INFinity} Example OUTP:LOAD DEF Sets the output termination to 50Ω. Query Syntax OUTPut:LOAD? Return Parameter DEF...
  • Page 44 Example SOUR1:VOLT:UNIT? The amplitude units are set to Vpp.
  • Page 45: Pulse Configuration Commands

    Pulse Configuration Commands The pulse chapter is used to control and output pulse waveforms. Unlike the APPLy command, low level control is possible including setting the rise time, fall time, period and pulse width. Period Pulse Width Rise time Fall time Source Specific SOURce[1]:PULSe:PERiod Command...
  • Page 46: Source[1]:Pulse:width

    Example SOUR1:PULS:PER? +1.0000E+01 The period is set to 10 seconds. Source Specific SOURce[1]:PULSe:WIDTh Command Sets or queries the pulse width. The default pulse Description width is 100us. The minimum pulse width is affected by the period time. If the period is over 20 or 200 seconds, then the minimum pulse width is 1us and 10us, respectively.
  • Page 47: Amplitude Modulation (Am) Commands

    Amplitude Modulation (AM) Commands AM Overview To successfully create an AM waveform, the following commands must be executed in order. 1. Turn on AM modulation using the Enable AM Modulation SOURce[1]: AM:STAT ON command Configure Carrier 2. Use the APPLy command to select a carrier waveform.
  • Page 48: Source[1]:Am:state

    Source Specific SOURce[1]:AM:STATe Command Sets or disables AM modulation. By default AM Description modulation is disabled. AM modulation must be enabled before setting other parameters. Burst or sweep mode will be disabled if AM Note modulation is enabled. As only one modulation is allowed at any one time, other modulation modes will be disabled when AM modulation is enabled.
  • Page 49: Source[1]:Am:internal:function

    Sets the modulation source to external. Query Syntax SOURce[1]:AM:SOURce? Return Parameter INT Internal External Example SOUR1:AM:SOUR? The modulation source is set to internal. Source Specific SOURce[1]:AM:INTernal:FUNCtion Command Sets the shape of the modulating waveform from Description sine, square, triangle, upramp and dnramp. The default shape is sine.
  • Page 50: Source[1]:Am:depth

    Syntax SOURce[1]:AM:INTernal:FREQuency {<frequency>|MINimum|MAXimum} Parameter <frequency> 2 mHz~ 20 kHz Example SOUR1:AM:INT:FREQ +1.0000E+02 Sets the modulating frequency to 100Hz. Query Syntax SOURce[1]:AM:INTernal:FREQuency? [MINimum|MAXimum] Return Parameter <NR3> Returns the frequency in Example SOUR1:AM:INT:FREQ? MIN +1.0000E+02 Returns the minimum frequency allowed. Source Specific SOURce[1]:AM:DEPTh Command Sets or queries the modulation depth for internal...
  • Page 51 Example SOUR1:AM:DEPT? +1.0000E+02 The modulation depth is 100%.
  • Page 52: Frequency Modulation (Fm) Commands

    Frequency Modulation (FM) Commands FM Overview The following is an overview of the steps required to generate an FM waveform. 1. Turn on FM modulation using the SOURce[1]: Enable FM FM:STAT ON command. Modulation 2. Use the APPLy command to select a carrier Configure Carrier waveform.
  • Page 53: Source[1]:Fm:state

    Source Specific SOURce[1]:FM:STATe Command Sets or disables FM modulation. By default FM Description modulation is disabled. FM modulation must be enabled before setting other parameters. Burst or sweep mode will be disabled if FM Note modulation is enabled. As only one modulation is allowed at any one time, other modulation modes will be disabled when FM modulation is enabled.
  • Page 54: Source[1]:Fm:internal:function

    Example SOUR1:FM:SOUR EXT Sets the modulation source to external. Query Syntax SOURce[1]:FM:SOURce? Return Parameter INT Internal External Example SOUR1:FM:SOUR? The modulation source is set to internal. Source Specific SOURce[1]:FM:INTernal:FUNCtion Command Sets the shape of the modulating waveform from Description sine, square, triangle, upramp and dnramp. The default shape is sine.
  • Page 55: Source[1]:Fm:internal:frequency

    Source Specific SOURce[1]:FM:INTernal:FREQuency Command Sets the frequency of the internal modulating Description waveform only. The default frequency is 10Hz. Syntax SOURce[1]:FM:INTernal:FREQuency {<frequency>|MINimum|MAXimum} Parameter <frequency> 2 mHz~ 20 kHz Example SOUR1:FM:INT:FREQ +1.0000E+02 Sets the modulating frequency to 100Hz. Query Syntax SOURce[1]:FM:INTernal:FREQuency? [MINimum|MAXimum] Return Parameter <NR3>...
  • Page 56 equal to the peak deviation frequency. The sum of the deviation and carrier frequency must not exceed the maximum frequency for a specific carrier shape. If an out of range deviation is set for any of the above conditions, the deviation will be automatically adjusted to the maximum value allowed and an “out of range”...
  • Page 57: Frequency-Shift Keying (Fsk) Commands

    Frequency-Shift Keying (FSK) Commands FSK Overview The following is an overview of the steps required to generate an FSK modulated waveform. 1. Turn on FSK modulation using the Enable FSK Modulation SOURce[1]: FSK:STAT ON command. Configure Carrier 2. Use the APPLy command to select a carrier waveform.
  • Page 58: Source[1]:Fskey:source

    Example SOUR1:FSK:STAT ON Enables FSK modulation Query Syntax SOURce[1]:FSKey:STATe? Return Parameter 0 Disabled (OFF) Enabled (ON) Example SOUR1:FSK:STAT? FSK modulation is currently enabled. Source Specific SOURce[1]:FSKey:SOURce Command Sets or queries the FSK source as internal or Description external. Internal is the default source. If an external FSK source is selected, FSK rate is Note controlled by the Trigger INPUT terminal on the...
  • Page 59: Source[1]:Fskey:internal:rate

    For FSK, the modulating waveform is a square Note wave with a duty cycle of 50%. Syntax SOURce[1]:FSKey:FREQuency {<frequency>|MINimum|MAXimum} Parameter <frequency> 1 uHz~ 80 MHz(3081)/ 50MHz(3051) Example SOUR1:FSK:FREQ +1.0000E+02 Sets the FSK hop frequency to to 100Hz. Query Syntax SOURce[1]:FSKey:FREQuency? [MINimum|MAXimum] Return Parameter <NR3>...
  • Page 60: Pulse Width Modulation (Pwm) Commands

    Returns the maximum FSK rate allowed. Pulse Width Modulation (PWM) Commands PWM Overview The following is an overview of the steps required to generate a PWM modulated waveform. 1. Turn on PWM modulation using the Enable PWM SOURce[1]: PWM:STATe ON command. Modulation 2.
  • Page 61: Source[1]:Pwm:state

    Source Specific SOURce[1]:PWM:STATe Command Turns FSK Modulation on or off. By default FSK Description modulation is off. Burst or sweep mode will be disabled if PWM Note modulation is enabled. As only one modulation is allowed at any one time, other modulation modes will be disabled when FSK modulation is enabled.
  • Page 62: Source[1]:Pwm:internal:function

    Example SOUR1:PWM:SOUR? The PWM source is set to internal. Source Specific SOURce[1]:PWM:INTernal:FUNction Command Sets the shape of the modulating waveform from Description sine, square, triangle, upramp and dnramp. The default shape is sine. Square and triangle waveforms have a 50% duty Note cycle.
  • Page 63: Source[1]:Pwm:duty

    Parameter <frequency> 2 mHz~ 20 kHz Example SOUR1:PWM:INT:FREQ MAX Sets the frequency to the maximum value. Query Syntax SOURce[1]:PWM:INTernal:FREQuency? Return Parameter <NR3> Returns the frequency in Example SOUR1:PWM:INT:FREQ? MAX +2.0000E+04 Returns the modulating frequency. (20kHz) Source Specific SOURce[1]:PWM:DUTY Command Sets or queries the duty cycle deviation. The Description default duty cycle is 50%.
  • Page 64 Example SOUR1:PWM:DUTY? +3.0000E+01 The current duty cycle is 30%.
  • Page 65: Frequency Sweep Commands

    Frequency Sweep Commands Sweep Overview Below shows the order in which commands must be executed to perform a sweep. 1. Turn on Sweep mode modulation using the Enable Sweep Mode SOURce[1]: SWE:STAT ON command. 2. Use the APPLy command to select the Select waveform waveform shape.
  • Page 66: Source[1]:Sweep:state

    5. Choose the sweep time using the Select Sweep SOURce[1]:SWE:TIME command. Time Select the sweep 6. Select an internal or external sweep trigger trigger source source using the SOURce[1]:SOUR command. Select the marker 7. To output a marker frequency from the SYNC frequency terminal, use The SOURce[1]:MARK:FREQ command.
  • Page 67: Source[1]:Frequency:start

    Source Specific SOURce[1]:FREQuency:STARt Command Sets the start frequency of the sweep. 100Hz is the Description default start frequency. To sweep up or down, set the stop frequency Note higher or lower than the start frequency. Syntax SOURce[1]:FREQuency:STARt {<frequency>|MINimum|MAXimum} Parameter <frequency> 100uHz~ 80MHz(3081)/ 50MHz(3051) 100uHz~ 1MHz (Ramp)
  • Page 68: Source[1]:Frequency:center

    Example SOUR1:FREQ:STOP +2.0000E+03 Sets the stop frequency to 2kHz. Query Syntax SOURce[1]:FREQuency:STOP? [MINimum| MAXimum] Return Parameter <NR3> Returns the stop frequency in Hz. Example SOUR1:FREQ:STOP? MAX +8.0000E+07 Returns the maximum stop frequency allowed. Source Specific SOURce[1]:FREQuency:CENTer Command Sets and queries the center frequency of the sweep. Description 550 Hz is the default center frequency.
  • Page 69: Source[1]:Frequency:span

    Source Specific SOURce[1]:FREQuency:SPAN Command Sets and queries the frequency span of the sweep. Description 900 Hz is the default frequency span. The span frequency is equal to the stop-start frequencies. To sweep up or down, set the span as positive or Note negative.
  • Page 70: Source[1]:Sweep:time

    Query Syntax SOURce[1]:SWEep:SPACing? Return Parameter LIN Linear spacing Logarithmic spacing Example SOUR1:SWE:SPAC? The spacing is currently set as linear. Source Specific SOURce[1]:SWEep:TIME Command Sets or queries the sweep time. The default sweep Description time is 1 second. The function generator automatically determines Note the number of frequency points that are used for the sweep based on the sweep time.
  • Page 71: Source[1]:Sweep:source

    Source Specific SOURce[1]:SWEep:SOURce Command Sets or queries the trigger source as immediate Description (internal), external or manual. Immediate (internal) is the default trigger source. IMMediate will constantly output a swept waveform. EXTernal will output a swept waveform after each external trigger pulse.
  • Page 72: Output[1]:Trigger

    The Trig out signal depends on the selected trigger Note source. Trigger Source Description Immediate A square wave is output from the Trig out terminal with a 50% duty cycle at the start of every sweep. External Trigger Output is disconnected. Manual A pulse (>1 us) is output from the Trig out terminal at the start of each...
  • Page 73: Source[1]:Marker:frequency

    Example OUTP1:TRIG? The Trig out signal is enabled. Source Specific SOURce[1]:MARKer:FREQuency Command Sets or queries the marker frequency. The default Description marker frequency is 500 Hz. The marker frequency is used to output a SYNC signal from the SYNC terminal on the front panel. The SYNC signal goes logically high at the start of each sweep and goes low at the marker frequency.
  • Page 74: Source[1]:Marker

    Source Specific SOURce[1]:MARKer Command Turns the marker frequency on or off. The default Description is off. MARKer ON The SYNC signal goes logically Note high at the start of each sweep and goes low at the marker frequency. MARKer OFF The SYNC terminal outputs a square wave with a 50% duty cycle at the start of each sweep.
  • Page 75: Burst Mode Commands

    Burst Mode Commands Burst Mode Overview Burst mode can be configured to use an internal trigger (N Cycle mode) or an external trigger (Gate mode) using the Trigger INPUT terminal on the rear panel. Using N Cycle mode, each time the function generator receives a trigger, the function generator will output a specified number of waveform cycles (burst).
  • Page 76 The following is an overview of the steps required to generate a burst waveform. 1. Turn on Burst mode using the Enable Burst SOURce[1]:BURS:STAT ON command. Mode Configuration 2. Use the APPLy command to select a sine, square, ramp, pulse or triangle burst waveform*.
  • Page 77: Source[1]:Burst:state

    Source Specific SOURce[1]:BURSt:STATe Command Turns burst mode on or off. By default burst mode Description is turned off. When burst mode is turned on, sweep and any Note modulation modes are disabled. Syntax SOURce[1]:BURSt:STATe {OFF|ON} Example SOUR1:BURS:STAT OFF Turns burst mode on. Query Syntax SOURce[1]:BURSt:STATe? Return Parameter 0...
  • Page 78: Source[1]:Burst:ncycles

    Example SOUR1:BURS:MODE? TRIG The current burst mode is triggered. Source Specific SOURce[1]:BURSt:NCYCles Command Sets or queries the number of cycles (burst count) Description in triggered burst mode. The default number of cycles is 1. The burst count is ignored in gated mode.
  • Page 79: Source[1]:Burst:internal:period

    Example SOUR1:BURS:NCYC? +1.0000E+02 The burst cycles are set to 100. Source Specific SOURce[1]:BURSt:INTernal:PERiod Command Sets or queries the burst period. Burst period Description settings are only applicable when the trigger is set to immediate. The default burst period is 10 ms. During manual triggering, external triggering or Gate burst mode, the burst period settings are ignored.
  • Page 80: Source[1]:Burst:phase

    Source Specific SOURce[1]:BURSt:PHASe Command Sets or queries the starting phase for the burst. The Description default phase is 0 degrees. At 0 degrees, sine square and ramp waveforms are at 0 volts. In gated burst mode, waveforms are continuously output (burst) when the Trig signal is true. The voltage level at the starting phase is used to determine the voltage level of the signal in- between bursts.
  • Page 81: Source[1]:Burst:trigger:delay

    Immediate A burst is output at a set frequency determined by the burst period. External EXTernal will output a burst waveform after each external trigger pulse. Any additional trigger pulse signals before the end of the burst are ignored. Manual Manual triggering will output a burst waveform after the trigger softkey is pressed.
  • Page 82: Source[1]:Burst:trigger:slope

    Syntax SOURce[1]: BURSt:TRIGger:DELay {<seconds>|MINimum|MAXimum} Parameter <seconds> 0~85 seconds Example SOUR1:BURS:TRIG:DEL +1.0000E+01 Sets the trigger delay to 10 seconds. Query Syntax SOURce[1]:BURSt:TRIGger:DELay? [MINimum|MAXimum] Return Parameter <NRf> Delay in seconds Example SOUR1:BURS:TRIG:DEL +1.0000E+01 The trigger delay is 10 seconds. Source Specific SOURce[1]:BURSt:TRIGger:SLOPe Command Sets or queries the trigger edge for externally Description...
  • Page 83: Source[1]:Burst:gate:polarity

    Source Specific SOURce[1]:BURSt:GATE:POLarity Command In gated mode, the function generator will output Description a waveform continuously while the external trigger receives logically true signal from the Trigger INPUT terminal. Normally a signal is logically true when it is high. The logical level can be inverted so that a low signal is considered true.
  • Page 84: Source[1]:Burst:output:trigger:slope

    Source Specific SOURce[1]:BURSt:OUTPut:TRIGger:SLOPe Command Sets or queries the trigger edge of the trigger Description output signal. The signal is output from the trigger out terminal on the rear panel. The default trigger output slope is positive. The trigger output signal on the rear panel Note depends on the burst trigger source or mode: Immediate...
  • Page 85: Output:trigger

    Source Specific OUTPut:TRIGger Command Sets or queries the trigger output signal on or off. Description By default the signal is disabled. When enabled, a TTL compatible square wave is output. This function applies to sweep as well as burst mode. Syntax OUTPut[1]:TRIGger {OFF|ON} Parameter...
  • Page 86: Arbitrary Waveform Commands

    Arbitrary Waveform Commands Arbitrary Waveform Overview Use the steps below to output an arbitrary waveform over the remote interface. 1. Use the SOURce[1]:FUNCtion USER Output Arbitrary command to output the arbitrary waveform Waveform currently selected in memory. 2. Use the APPLy command to select frequency, Select Waveform Frequency, amplitude and DC offset.
  • Page 87: Source[1]:Function User

    Source Specific SOURce[1]:FUNCtion USER Command Use the SOURce[1]:FUNCtion USER command to Description output the arbitrary waveform currently selected in memory. The waveform is output with the current frequency, amplitude and offset settings. Syntax SOURce[1]:FUNCtion USER Example SOUR1:FUNC USER Selects and outputs the current waveform in memory.
  • Page 88 Note The integer values (±32767) correspond to the maximum and minimum peak amplitudes of the waveform. For instance, for a waveform with an amplitude of 5Vpp (0 offset), the value 32767is the equivalent of 2.5 Volts. If the integer values do not span the full output range, the peak amplitude will be limited.
  • Page 89: Source[1]:Arb:edit:copy

    Source Specific SOURce[1]:ARB:EDIT:COPY Command Copies a segment of a waveform to a specific Description starting address. Syntax SOURce[1]:ARB:EDIT:COPY [<start>[,<length>[,<paste>]]] Parameter <start> Start address: 0~1048,576 <length> 0 ~ 1048,576 <paste> Paste address: 0~1048,576 Example SOUR1:ARB:EDIT:COPY 1000, 256, 1257 Copies 256 data values starting at address 1000 and copies them to address 1257.
  • Page 90: Source[1]:Arb:edit:point

    A waveform cannot be deleted when output. Note Syntax SOURce[1]:ARB:EDIT:DELete:ALL Example SOUR1:ARB:EDIT:DEL:ALL Deletes all user waveforms from memory. Source Specific SOURce[1]:ARB:EDIT:POINt Command Edit a point on the arbitrary waveform. Description A waveform/waveform segment cannot be Note deleted when output. Syntax SOURce[1]:ARB:EDIT:POINt [<address>...
  • Page 91: Source[1]:Arb:edit:protect

    <data2> Value data2: ± 32,767 Example SOUR1:ARB:EDIT:LINE 40, 50, 100, 50 Creates a line on the arbitrary waveform at 40,50 to 100,50. Source Specific SOURce[1]:ARB:EDIT:PROTect Command Protects a segment of the arbitrary waveform from Description deletion or editing. Syntax SOURce[1]:ARB:EDIT:PROTect [<STARt>[,<LENGth>]] Parameter <STARt>...
  • Page 92: Source[1]:Arb:built:sinusoid

    Source Specific SOURce[1]:ARB:BUILt:SINusoid Command Creates a sinusoid with a specified start address, Description length and scale. Syntax SOURce[1]:ARB:BUILt:SINusoid [<STARt>[,<LENGth>[,<SCALe>]]] Parameter <STARt> Start address*: 0~1048,576 <LENGth> Length*: 0 ~ 1048,576 <SCALe> Scale: ±32767 * Start + Length ≤ 1,048,576 Example SOUR1:ARB:BUIL:SIN 1000, 1000, 100 Creates a sin wave 1000 points in length with a scale of 100 and a start address of 1000.
  • Page 93: Source[1]:Arb:built:ramp

    Source Specific SOURce[1]:ARB:BUILt:RAMP Command Creates a ramp wave with a specified start Description address, length and scale. Syntax SOURce[1]:ARB:BUILt:RAMP[<STARt>[,<LENGth>[,<S CALe>]]] Parameter <STARt> Start address*: 0~1048,576 <LENGth> Length*: 0 ~ 1048,576 <SCALe> Scale: ±32767 * Start + Length ≤ 1,048,576 Example SOUR1:ARB:BUIL:RAMP 1000, 1000, 100 Creates a ramp wave 1000 points in length with a scale of 100 and a start address of 1000.
  • Page 94: Source[1]:Arb:built:exprise

    Source Specific SOURce[1]:ARB:BUILt:EXPRise Command Creates an exponential rise wave with a specified Description start address, length and scale. Syntax SOURce[1]:ARB:BUILt:EXPRise [<STARt>[,<LENGth>[,<SCALe>]]] Parameter <STARt> Start address*: 0~1048,576 <LENGth> Length*: 0 ~ 1048,576 <SCALe> Scale: ±32767 * Start + Length ≤ 1,048,576 Example SOUR1:ARB:BUIL:EXPR 1000, 1000, 100 Creates a exponential rise wave 1000 points in...
  • Page 95: Source[1]:Arb:built:dc

    Source Specific SOURce[1]:ARB:BUILt:DC Command Creates an exponential fall wave with a specified Description start address, length and scale. Syntax SOURce[1]:ARB:BUILt:DC [<STARt>[,<LENGth>[,<SCALe>]]] Parameter <STARt> Start address*: 0~1048,576 <LENGth> Length*: 0 ~ 1048,576 <SCALe> Scale: ±32767 * Start + Length ≤ 1,048,576 Example SOUR1:ARB:BUIL:DC 1000, 1000, 100 Creates an exponential fall wave 1000 points in...
  • Page 96: Source[1]:Arb:output

    Source Specific SOURce[1]:ARB:OUTPut Command Output the current arbitrary waveform in volatile Description memory. A specified start and length can also be designated. Syntax SOURce[1]:ARB:OUTPut [<STARt>[,<LENGth>]] Parameter <STARt> Start address*: 0~1048,576 <LENGth> Length*: 0 ~ 1048,576 * Start + Length ≤ currently output arbitrary waveform Example SOUR1:ARB:OUTP 20 200 Outputs the current arbitrary waveform in...
  • Page 97: Rcl

    Instrument *RCL Command Recall previously saved instrument states from Description memory locations 0~9. Syntax *RCL {0|1|2|3|4|5|6|7|8|9} Example *RCL 0 Recall instrument state from memory location 0. Instrument MEMory:STATe:DELete Command Delete memory from a specified memory location. Description Syntax MEMory:STATe:DELete {0|1|2|3|4|5|6|7|8|9} Example MEM:STAT:DEL 0 Delete instrument state from memory location 0.
  • Page 98: Error Messages

    Error Messages The AFG-3000 has a number of specific error codes. Use the SYSTem:ERRor command to recall the error codes. For more information regarding the error queue, see page 117. Command Error Codes -101 Invalid character An invalid character was used in the command string.
  • Page 99 -112 Program mnemonic too long A command header contains more than 12 characters: OUTP:SYNCHRONIZATION ON -113 Undefined header An undefined header was encountered. The header is syntactically correct. Example: the header contains a character mistake. SOUR1:AMM:DEPT MIN -123 Exponent too large Numeric exponent exceeds 32,000.
  • Page 100: Execution Errors

    -158 String data not allowed An unexpected character string was used where none were expected. Example: A character string is used instead of a valid parameter. SOURce1:SWEep:SPACing ’TEN’ -161 Invalid block data Invalid block data was received. Example: The number of bytes sent with the DATA:DAC command doesn’t correlate to the number of bytes specified in the block header.
  • Page 101 -221 Settings conflict; infinite burst changed trigger source to MANual Example: The trigger source is changed to immediate from manual when infinite burst mode is selected. -221 Settings conflict; burst period increased to fit entire burst Example: The function generator automatically increases the burst period to allow for the burst count or frequency.
  • Page 102 -221 Settings conflict;trigger output connector used by trigger external Example: The trigger output connector is disabled when the trigger source is set to external. -221 Settings conflict;frequency reduced for pulse function Example: When the function is changed to pulse, the output frequency is automatically reduced if over range.
  • Page 103 -221 Settings conflict;AM turned off by selection of other mode or modulation Example: AM mode is disabled when burst, sweep or a modulation mode is enabled. -221 Settings conflict; sweep turned off by selection of other mode or modulation Example: Sweep mode is disabled when burst or a modulation mode is enabled.
  • Page 104 -221 Settings conflict;not able to burst dc, burst turned off Example: The burst function cannot be used with the dc voltage function. -221 Settings conflict;not able to sweep noise, sweep turned off Example: A waveform cannot be swept using the noise function.
  • Page 105 -221 Settings conflict;offset changed due to amplitude Example: The offset is not a valid offset value, it is automatically adjusted, considering the amplitude. |offset|≤ max amplitude – Vpp/2 -221 Settings conflict;amplitude changed due to offset Example: The amplitude is not a valid value, it is automatically adjusted, considering the offset.
  • Page 106 -222 Data out of range;frequency; value clipped to ... Example: If the frequency was set to a value out of range, it is automatically set to an upper or lower limit. -222 Data out of range;user frequency; value clipped to upper limit Example: If the frequency is set to a value out of range for an arbitrary waveform using, SOURce[1]: APPL: USER or SOURce[1]: FUNC:USER, it is...
  • Page 107 -222 Data out of range; burst period limited by length of burst; value clipped to upper limit Example: The burst period must be greater than burst count divided by the frequency + 200 ns. The burst period is adjusted to satisfy these conditions. burst period >...
  • Page 108 -222 Data out of range;marker confined to sweep span; value clipped to ... Example: The marker frequency is set to a value outside the start or stop frequencies. The marker frequency is automatically adjusted to either the start or stop frequency (whichever is closer to the set value).
  • Page 109 -313 Calibration memory lost;memory corruption detected Indicates that a fault (check sum error) has occurred with the non-volatile memory that stores the calibration data. -314 Save/recall memory lost;memory corruption detected Indicates that a fault (check sum error) has occurred with the non-volatile memory that stores the save/recall files.
  • Page 110: Query Errors

    Query Errors -410 Query INTERRUPTED Indicates that a command was received but the data in the output buffer from a previous command was lost. -420 Query UNTERMINATED The function generator is ready to return data, however there was no data in the output buffer. For example: Using the APPLy command.
  • Page 111 800 Block length must be even Example: As block data (DATA:DAC VOLATILE) uses two bytes to store each data point, there must be an even number or bytes for a data block.
  • Page 112: Scpi Status Registers

    SCPI Status Registers The status registers are used to record and determine the status of the function generator. The function generator has a number of register groups: Questionable Status Registers Standard Event Status Registers Status Byte Register As well as the output and error queues. Each register group is divided into three types of registers: condition registers, event registers and enable registers.
  • Page 113: Afg-3000 Status System

    AFG-3000 Status System...
  • Page 114: Questionable Status Register

    Questionable Status Register The Questionable Status Registers will show if any Description faults or errors have occurred. Bit Summary Register Bit Weight Voltage overload Over temperature Loop unlock Ext Mod Overload Cal Error External Reference Standard Event Status Registers The Standard Event Status Registers indicate when Description the *OPC command has been executed or whether any programming errors have occurred.
  • Page 115 Bit Summary Register Bit Weight Operation complete bit Query Error Device Error Execution Error Command Error Power On Operation The operation complete bit is set Error Bits complete when all selected pending operations are complete. This bit is set in response to the *OPC command.
  • Page 116: The Status Byte Register

    The Status Byte Register The Status Byte register consolidates the status Description events of all the status registers. The Status Byte register can be read with the *STB? query or a serial poll and can be cleared with the *CLS command.
  • Page 117: Output Queue

    Standard Event The Event Status bit is set if an “enabled” event in the Standard Event Status Event Register has occurred. Master The Master Summary Status is Summary/ used with the *STB? query. When Service the *STB? query is read the MSS Request bit bit is not cleared.
  • Page 118 NDEX AM ..........65 Arbitrary waveforms ....134 Burst..........106 display .......... 135 FM ........... 73 editing .......... 142 FSK..........81 inserting ........152 PWM..........88 output ........... 171 Operation saving ........... 163 Beeper ........130 Amplitude ........61 Frequency ........59 Caution symbol......
  • Page 119 System and Settings ....126 UK power cord......10 Service operation Updating Firmware ....126 about disassembly ......7 Set output impedance ..... 128 remote control interface .... 175 Setting up the instrument ..19 Warning symbol......6 software download....178 Specifications......288...

Table of Contents