GW Instek AFG-4000 Series Programming Manual
GW Instek AFG-4000 Series Programming Manual

GW Instek AFG-4000 Series Programming Manual

Arbitrary function generator
Hide thumbs Also See for AFG-4000 Series:
Table of Contents

Advertisement

Quick Links

Arbitrary Function Generator
AFG-4000 Series
Programming Manual
GW INSTEK PART NO.
ISO-9001 CERTIFIED MANUFACTURER

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for GW Instek AFG-4000 Series

  • Page 1 Arbitrary Function Generator AFG-4000 Series Programming Manual GW INSTEK PART NO. ISO-9001 CERTIFIED MANUFACTURER...
  • Page 2 This manual contains proprietary information, which is protected by copyright. All rights are reserved. No part of this manual may be photocopied, reproduced or translated to another language without prior written consent of Good Will Corporation. The information in this manual was correct at the time of printing. However, Good Will continues to improve its products and therefore reserves the right to change the specifications, equipment, and maintenance procedures at any time without notice.
  • Page 3: Table Of Contents

    Table of Contents Table of Contents SAFETY INSTRUCTIONS ........ 5 Safety Precaution before Operation ........10 Electro-static Discharge (ESD) Protection ......12 First Time to Power on ............ 13 GETTING STARTED ........14 Main Features ..............15 Panel Overview ............... 17 Boot Up ................
  • Page 4 AFG-4000 Series Programming Manual 4Frequency-Shift Keying (4FSK) Commands ..... 98 Phase Modulation (PM)Commands ....... 101 Phase Shift Keying (PSK)Commands ......105 Binary Phase Shift Keying (BPSK)Commands ....108 Quadrature Phase Shift Keying (QPSK)Commands ..111 Output Shift Keying (OSK)Commands ......114 SUM Modulation (SUM) Commands ......
  • Page 5: Safety Instructions

    SAFETY INSTRUCTIONS AFETY INSTRUCTIONS This chapter contains important safety instructions that you must follow during operation and storage. Read the following before any operation to insure your safety and to keep the instrument in the best possible condition. Safety Symbols These safety symbols may appear in this manual or on the instrument.
  • Page 6: Safety Guidelines

    AFG-4000 Series Programming Manual Do not dispose electronic equipment as unsorted municipal waste. Please use a separate collection facility or contact the supplier from which this instrument was purchased. Safety Guidelines General • Do not place any heavy object on the AFG-4000.
  • Page 7 SAFETY INSTRUCTIONS • Fuse Fuse type: F2A/250V. • Only qualified technicians should replace the fuse. WARNING • To ensure fire protection, replace the fuse only with the specified type and rating. • Disconnect the power cord and all test leads before replacing the fuse.
  • Page 8 AFG-4000 Series Programming Manual (Pollution Degree) EN 61010-1 specify the pollution degrees and their requirements as follows. The AFG-4000 falls under degree 2. Pollution refers to <addition of foreign matter, solid, liquid, or gaseous (ionized gases), that may produce a reduction of dielectric strength or surface resistivity=.
  • Page 9: Power Cord For The United Kingdom

    SAFETY INSTRUCTIONS Power cord for the United Kingdom When using the function generator in the United Kingdom, make sure the power cord meets the following safety instructions. NOTE: This lead/appliance must only be wired by competent persons WARNING: THIS APPLIANCE MUST BE EARTHED IMPORTANT: The wires in this lead are coloured in accordance with the following code: Green/ Yellow:...
  • Page 10: Safety Precaution Before Operation

    AFG-4000 Series Programming Manual Safety Precaution before Operation Check Power Supply The analyzer is equipped with a three-wire power cord in accordance with international safety standards. The product must be grounded properly before being powered on, as floating or improper ground may cause damage to the instrument or personal injury.
  • Page 11 SAFETY INSTRUCTIONS Improper grounding may cause damage to the WARNING instrument, or result in personal injury. Make sure the grounding conductor of the function generator is grounded before turning on the instrument. Always use a well-grounded power source. Do not use an external power cable, power cord or an auto transformer without grounded protection.
  • Page 12: Electro-Static Discharge (Esd) Protection

    AFG-4000 Series Programming Manual Electro-static Discharge (ESD) Protection ESD is an issue often ignored by users. Damage from ESD on the instrument is unlikely to occur immediately but will significantly reduce the reliability of it. Therefore, ESD precautions should be implemented in the work environment, and applied daily.
  • Page 13: First Time To Power On

    First Time to Power on Connect the three-pin AC power cord into the instrument. Insert the plug into a power socket provided with a protective ground. Check the power source before turning on the WARNING function generator, to protect the device from damage.
  • Page 14: Getting Started

    AFG-4000 Series Programming Manual ETTING STARTED The Getting started chapter introduces the function generator’s main features, appearance, set up procedure and power-up. Main Features ..............15 Panel Overview .............. 17 AFG-4125E Front Panel ................ 17 AFG-4125AE Front Panel ..............17 AFG-4225E/4235/4260/4280/4210H/4225H Front Panel.....
  • Page 15: Main Features

    GETTING STARTED Main Features • Provide single-channel or dual-channel output - AFG-4125E/ 4125AE: single channel - AFG-4225E/ 4235/ 4260/ 4280/ 4210H/ 4225H: dual-channel • Built-in Sine, Square, Triangle, Ramp, Pulse, Noise, Harmonic wave, Arbitrary wave • Min. resolution is 1uHz •...
  • Page 16 AFG-4000 Series Programming Manual - AFG-4125E/ 4125AE/ 4225E provide USB interface 8= TFT LCD Display, 800*480 resolution • - Multi-Touch Display: AFG-4235/ 4260/ 4280/ 4210H/ 4225H - Without Touch Display: AFG-4125E/ 4125AE/ 4225E...
  • Page 17: Panel Overview

    GETTING STARTED Panel Overview AFG-4125E Front Panel AFG-4125AE Front Panel...
  • Page 18: Afg-4225E/4235/4260/4280/4210H/4225H Front Panel

    AFG-4000 Series Programming Manual AFG-4225E/4235/4260/4280/4210H/4225H Front Panel l k j i h g f 1 LCD Display the user interface. 2 Menu soft The F1 to F6 function keys directly keys correspond to the soft keys on the right- hand side of display.
  • Page 19 GETTING STARTED Output modulation waveform; Sweep Sweep sine, square, triangle or arbitrary waves; Burst Generate pulse trains of sine waves, square waves, triangle waves, pulse waves, noise waves or arbitrary waves; Trigger Manual trigger button; Counter Frequency counter button; Utility Auxiliary function button;...
  • Page 20 AFG-4000 Series Programming Manual 7 CH2 When Utility → CH1/2 Settings → CH2 Synchronous Synchronization is set to On, this output terminal outputs a synchronization terminal signal that matches the current configuration of CH2. 8 CH2 Signal Turn on or off the output of CH2...
  • Page 21: Afg-4125E/4125Ae/4225E Rear Panel

    GETTING STARTED AFG-4125E/4125AE/4225E Rear Panel AFG-4235/4260/4280/4210H/4225H Rear Panel k j i 1. Handle 2. Heat sink fan Power input: 100-240V±10% AC 3. AC Power Input Socket 50-60Hz. 4. Fuse box F2A/250V 5. Stool To adjust the angle of the device.
  • Page 22 AFG-4000 Series Programming Manual 6. LAN Port LAN interface for remote control. 7. USB Device Port USB type-B device port is used to connect the function generator to a PC for remote control. 8. Security Lock Users can use the security lock (buy...
  • Page 23: Boot Up

    GETTING STARTED Boot Up Confirm AC Before turning on the power, confirm that the voltage input power meets the conditions of 100-240 V (±10%), 50/60 Hz. The fuse is a 250 V, F2AL slow-blow type, and Connect the AC power cord connects the AC power cord to the rear panel receptacle.
  • Page 24: Display

    AFG-4000 Series Programming Manual Display NO Description Display areas of CH1 and CH2. Indicate Channel Status whether the corresponding channel is selected and turned on (ON/OFF).The area of the channel currently selected is highlighted and the on/off state of the channel currently turned on is "ON".
  • Page 25 GETTING STARTED Menu Display the operation menu corresponding to the function currently selected. For example, the "Sine" function menu is displayed in the above figure. LAN status light When the instrument is correctly connected to the LAN, this indicator will light. USB status light When the generator detects a USB storage device, this indicator will light.
  • Page 26 AFG-4000 Series Programming Manual Offset Display the current waveform DC offset in each channel. Press the corresponding softkey Offset and use the numeric keyboard or direction keys and knob to modify this parameter. The parameter that can be modified currently will be highlighted and the lightspot above the number indicates current cursor location.
  • Page 27: Remote Interface

    REMOTE INTERFACE EMOTE INTERFACE Establishing a Remote Connection ........28 Configure USB interface ............... 28 Configure LAN interface ............... 30 Command Syntax ............31 Command List ............... 36 Error Messages ............. 155 Command Error Codes ..............155 Query Errors ..................157 Arbitrary Waveform Errors ..............
  • Page 28: Establishing A Remote Connection

    AFG-4000 Series Programming Manual Establishing a Remote Connection AFG-4000 has 2 remote communication interfaces which are USB and LAN. These two communication modes can be used simultaneously. Configure USB interface Description Communication via USB interface, using USB Device TMC mode.
  • Page 29 REMOTE INTERFACE Function Click the "Open VISA Test Panel" key on the page to pop up the VISA Test Panel, click the Measurement Input/Output key in the VISA Test Panel, in the Select or Enter Command box, you can execute all statements including query, setting, measurement, reading and etc.
  • Page 30: Configure Lan Interface

    AFG-4000 Series Programming Manual Configure LAN interface Description When using the LAN interface, set the relevant parameters on the front panel. Interface Connect the LAN cable to the rear panel LAN port. Parameter settings Parameter Mode:Choose DHCP (obtain IP address...
  • Page 31: Command Syntax

    REMOTE INTERFACE Command Syntax • Compatible IEEE488.2, 1992 (fully compatible) standard • 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.
  • Page 32 AFG-4000 Series Programming Manual 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. SOURce1:FREQuency? Example...
  • Page 33 REMOTE INTERFACE Command 1: command header offset SOURce1:DCOffset < >LF 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 34 AFG-4000 Series Programming Manual <NRf+> NRf type with a 1, 1.5, 4.5e-1 <Numeric> suffix including MAX, MIN, MINimum, MAXimum or DEFault parameters. <aard> Arbitrary ASCII characters. <discrete> Discrete ASCII IMM, EXT, character parameters NRf+ type 1 KHZ, 1.0 HZ, <frequency>...
  • Page 35 REMOTE INTERFACE Command Space A space is used to separate a Separators parameter from a keyword/command header. A colon is used to separate Colon (:) keywords on each node. Semicolon (;) A semi colon is used to separate subcommands that have the same node level.
  • Page 36: Command List

    AFG-4000 Series Programming Manual Command List System Commands............41 *IDN?....................41 *RST..................... 41 *TST? ....................41 *OPC....................42 *OPC? ....................42 *TRG ....................42 Status Register Commands ..........43 *CLS ..................... 43 *ESE ..................... 43 *ESR? ....................44 *STB? ....................44 *SRE.....................
  • Page 37 REMOTE INTERFACE SOURce[1|2]:APPLy:PULSe ..............56 SOURce[1|2]:APPLy:NOISe ..............57 SOURce[1|2]:APPLy:HARMonic ............57 SOURce[1|2]:APPLy:USER ..............58 SOURce[1|2]:APPLy? ................58 Output Commands ............59 SOURce[1|2]:FUNCtion ................ 59 SOURce[1|2]:FREQuency ..............61 SOURce[1|2]:AMPLitude ..............63 SOURce[1|2]:DCOffset ................. 64 SOURce[1|2]:RAMP:SYMMetry ............. 65 OUTPut[1|2] ..................66 OUTPut[1|2]:LOAD ................66 SOURCE[1|2]:PHASe ................
  • Page 38 AFG-4000 Series Programming Manual SOURce[1|2]:ASKey:INTernal RATE ............87 Frequency Modulation (FM) Commands ......88 FM Overview ..................88 SOURce[1|2]:FM:STATe ................ 89 SOURce[1|2]:FM:SOURce ..............89 SOURce[1|2]:FM:INTernal:FUNCtion ........... 90 SOURce[1|2]:FM:INTernal:FREQuency ..........91 SOURce[1|2]:FM:DEViation ..............91 Frequency-Shift Keying (FSK) Commands ......93 FSK Overview ..................93 SOURce[1|2]:FSKey:STATe ..............
  • Page 39 REMOTE INTERFACE Quadrature Phase Shift Keying (QPSK)Commands ..111 QPSK Overview .................. 111 SOURce[1|2]:QPSKey:STATe .............. 111 SOURce[1|2]:QPSKey:PHASE ............. 112 SOURce[1|2]:QPSKey:INTernal RATE ..........112 Output Shift Keying (OSK)Commands......114 OSK Overview ..................114 SOURce[1|2]:OSKey:STATe ..............114 SOURce[1|2]:OSKey:TIME ..............115 SOURce[1|2]:OSKey:INTernal RATE ........... 115 SUM Modulation (SUM) Commands ......
  • Page 40 AFG-4000 Series Programming Manual SOURce[1|2]:FUNCtion USER ............140 SOURce[1|2]:DATA:DAC ..............141 SOURce[1|2]:ARB:EDIT:COPY ............142 SOURce[1|2]:ARB:EDIT:DELete ............142 SOURce[1|2]:ARB:EDIT:DELete:ALL............ 143 SOURce[1|2]:ARB:EDIT:POINt ............143 SOURce[1|2]:ARB:EDIT:LINE .............. 144 SOURce[1|2]:ARB:EDIT:PROTect ............144 SOURce[1|2]:ARB:EDIT:PROTect:ALL ..........145 SOURce[1|2]:ARB:EDIT:UNProtect ............. 145 SOURce[1|2]:ARB:OUTPut ..............145 COUNTER ..............147 COUNTER:STATE................
  • Page 41: System Commands

    REMOTE INTERFACE System Commands *IDN? System Query Returns the function generator manufacturer, Description model number, serial number and firmware version number in the following format: Manufacturer, Model,SN:XXXXXXXX,Vm.mm Query Syntax *IDN? Return parameter <string> Example *IDN? Manufacturer, Model,SN:XXXXXXXX,Vm.mm Returns the identification of the function generator.
  • Page 42: Opc

    AFG-4000 Series Programming Manual Fail judgment Example *TST? The function generator passed the self-test. *OPC System Command Description This command sets the Operation Complete Bit (bit 0) of the Standard Event Status Register after the function generator has completed all pending operations.
  • Page 43: Status Register Commands

    REMOTE INTERFACE Description Generate a trigger event for both CH1 and CH2. Note Before the OPC bit is set, other commands may be executed. Syntax *TRG Status Register Commands *CLS System Command Description The *CLS command clears all the event registers, the error queue and cancels an *OPC command.
  • Page 44: Esr

    AFG-4000 Series Programming Manual Error Queue Master Summary Questionable Not used Data Example *ESE? Bit 2 is set. *ESR? System Command Description Reads and clears the Standard Event Status Register. The bit weight of the standard event status register is returned.
  • Page 45: Sre

    REMOTE INTERFACE *SRE System Command Description The Service Request Enable Command determines 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. Note The *CLS command clears the status byte event register, but not the enable register.
  • Page 46: System Remote Commands

    AFG-4000 Series Programming Manual System Remote Commands SYSTem:LOCal System Command Sets the function generator to local mode. In local Description mode, all front panel keys are operational. Syntax SYSTem:LOCal Example SYST:LOC SYSTem:REMote System Command Description Disables the front panel keys and puts the function...
  • Page 47: System:language

    REMOTE INTERFACE Return parameter <string> Example SYST:VERS? VX.XXX_XXXX Returns the version infmation. SYSTem:LANguage System Command Description Sets the language that the instrument uses to display information on the screen . Different languages may support different types of languages . Note SCHinese|ENGLish specifies which language will be used to display instrument information on the screen.
  • Page 48: System:beeper:state

    AFG-4000 Series Programming Manual Syntax SYSTem:BEEPer:STATe {ON|OFF} Example SYSTEM:BEEPER:STATE ON Enable the beeper function. SYSTem:BEEPer:STATe? System Query Description Queries the status of the beeper. Query Syntax SYSTem:BEEPer:STATe? Return parameter OFF Example SYSTem:BEEPer:STATe? Queries the on/off status of the beeper and the query returns OFF.
  • Page 49: Display Commands

    REMOTE INTERFACE DISPlay Commands DISPlay:BRIGhtness Display Command Description Sets the screen brightness. DISPlay:BRIGhtness Syntax {<brightness>|MINimum|MAXimum} Example DISP:BRIG 51 Sets the screen brightness to 51%. DISPlay:BRIGhtness? Display Query Description Queries the screen brightness. Syntax DISPlay:BRIGhtness? Example DISP:BRIG? Queries the screen brightness and the query returns 5.100000E+01 DISPlay:SAVer:DELay Display Command...
  • Page 50: Display:saver[:State]

    AFG-4000 Series Programming Manual Example DISPlay:SAVer:DELay? Queries delay time for the screen saver function and the query returns 10 minutes. DISPlay:SAVer[:STATe] Display Command Description Enables or disables the screen saver function. Syntax DISPlay:SAVer[:STATe] {ON|OFF} Example DISPLAY:SAVER:STATE OFF Disables the screen saver function:.
  • Page 51: Hcopy Commands

    REMOTE INTERFACE HCOPy Commands HCOPy:SDUMp[:IMMeddiate] Hcopy Command Copy a screen image and saves the image file to a Description USB memory. The default file name is n.BMP, where n is a consecutive number from 0. The image files are saved in a folder named Model/IMAGE (Model is the instrument model) in the USB memory.
  • Page 52: Memory Commamds

    AFG-4000 Series Programming Manual MEMory Commamds MEMory:CATalog? Memory Query This query-only command returns the current state Description of the mass storage system (USB memory). Syntax MEMory:CATalog? Example MEMory:CATalog? 21973685,16851047,"Test_folder,DIR,0",=Firmware. upp,,7791=,=memo.txt,,2566= The USB memory includes the Test_folder folder, a Firmware.upp file, and a memo.txt file.
  • Page 53: Apply Commands

    REMOTE INTERFACE Apply Commands The APPLy command has 7 different types of outputs (Sine, Square, Ramp, Pulse, Noise,Harmonic,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 54 AFG-4000 Series Programming Manual 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Ω).
  • Page 55: Source[1|2]:Apply:sinusoid

    REMOTE INTERFACE 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|2]:APPLy:SINusoid Command Description Outputs a sine wave from the selected channel when the command has executed.
  • Page 56: Source[1|2]:Apply:ramp

    AFG-4000 Series Programming Manual Source Specific SOURce[1|2]:APPLy:RAMP Command Description Outputs a ramp wave from the selected channel when the command has executed. Frequency, amplitude and offset can also be set. The symmetry is set to 100%. Syntax SOURce[1|2]:APPLy:RAMP [<frequency> [,<amplitude> [,<offset>] ]] Parameter <frequency>...
  • Page 57: Source[1|2]:Apply:noise

    REMOTE INTERFACE Sets frequency to 1kHz and sets the amplitude to minimum and the and offset to the maximum. Source Specific SOURce[1|2]:APPLy:NOISe Command Description Outputs Gaussian noise (no set bandwidth ). Amplitude and offset can also be set. Frequency cannot be used with the noise function; Note however a value (or DEFault) must be specified.
  • Page 58: Source[1|2]:Apply:user

    AFG-4000 Series Programming Manual Parameter <frequency> 1μHz~125MHz <amplitude> 1mV~10V (50Ω) <offset> ±5 Vpk ac +dc (50Ω) Example SOUR1:APPL:HARM 2KHZ,MAX,MAX Sets the frequency to 2kHz and sets the amplitude and offset to the maximum. Source Specific SOURce[1|2]:APPLy:USER Command Description Outputs an arbitrary waveform from the selected channel.
  • Page 59: Output Commands

    REMOTE INTERFACE Example SOUR1:APPL? SIN +5.0000000000000E+03 +3.0000E+00 -2.50E+00 Returns a string with the current function and parameters, Sine, 5kHz 3 Vpp -2.5V offset. 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.
  • Page 60 AFG-4000 Series Programming Manual Sine Squ Ramp Pulse Noise Harm ARB    ✓ ✓ ✓ ✓ DSBAM ✓     ✓ ✓    ✓ ✓ ✓ ✓    ✓ ✓ ✓ ✓...
  • Page 61: Source[1|2]:Frequency

    REMOTE INTERFACE Source Specific SOURce[1|2]:FREQuency Command Description Sets the output frequency for the the SOURce[1|2] :FUNCtion command. The query command returns the current frequency setting. The maximum and minimum frequency depends Note on the function mode.
  • Page 62 AFG-4000 Series Programming Manual Sine 1μHz~25MHz (35MHz AFG-4235 60MHz AFG-4260 80MHz AFG-4280 100MHz AFG-4210H 250MHz AFG-4225H) 1uHz~5MHz Square (15MHz AFG-4235 30MHz AFG- 4260/4280/4210H 50MHz AFG-4225H) 1μHz~1MHz Ramp (3MHz AFG- 4235/4260/4280/4210H 5MHz AFG-4225H) 1μHz~5MHz Pulse (15MHz AFG-4235 25MHz AFG- 4260/4280/4210H/4225H) Not applicable Noise 1μHz~12.5MHz...
  • Page 63: Source[1|2]:Amplitude

    REMOTE INTERFACE 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. Syntax SOURce[1|2]:FREQuency {<frequency>|MINimum|MAXimum} Example SOUR1:FREQ MAX Sets the frequency to the maximum for the current mode.
  • Page 64: Source[1|2]:Dcoffset

    AFG-4000 Series Programming Manual If the output termination is set to high impedance, dBm units cannot be used. The units will default to Vpp. The output amplitude can be affected by the function and unit chosen. Vpp and Vrms or dBm values may have different maximum values due to differences such as crest factor.
  • Page 65: Source[1|2]:Ramp:symmetry

    REMOTE INTERFACE |Voffset| < Vmax – Vpp/2 If the output specified is out of range, the maximum offset will be set. 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Ω...
  • Page 66: Output[1|2]

    AFG-4000 Series Programming Manual Return Parameter <NR3> Returns the symmetry as a percentage. Example SOUR1:RAMP:SYMMetry? +5.00E+01 Sets the symmetry to the 50%. Source Specific OUTPut[1|2] Command Description Enables/Disables or queries the front panel output. The default is set to off.
  • Page 67: Source[1|2]:Phase

    REMOTE INTERFACE Description Sets or queries the output termination. Two impedance settings can be chosen, DEFault (50Ω) and INFinity (high impedance >10 kΩ). The output termination is to be used as a reference only. If the output termination is set 50Ω but the actual load impedance is not 50Ω, then the amplitude and offset will not be correct.
  • Page 68: Pulse Configuration Commands

    AFG-4000 Series Programming Manual Sets the phase to the maxium value. Example SOURce1:PHASe 25 Sets the phase of channel 1 to 25°. Query Syntax SOURce[1|2]:PHASe? {MAX|MIN} Return Parameter <NRf> Returns the current phase in degrees. Example SOURce1:PHASe? +2.500E+01 Returns the phase of channel 1 as 25°.
  • Page 69: Source[1|2]:Pulse:dcycle

    REMOTE INTERFACE Description Sets or queries the pulse width. The default pulse width is 500us. Pulse width is defined as the time from the rising to falling edges (at a threshold of 50%). Note The pulse width is restricted to the following limitations: Pulse Width g Minimum Pulse Width Pulse Width <...
  • Page 70: Source[1|2]:Pulse:transition:leading

    AFG-4000 Series Programming Manual Pulse Duty Cycle < 100%×(1-2*Minimum Pulse Width÷Pulse Period) Syntax SOURCE[1|2]:PULSe:DCYCle{<percent>|MINimum|M AXimum} Example SOURCE1:PULS:DCYC MAX Sets the duty to the maximum allowed. Query Syntax SOURCE1:PULSe:DCYCle? [MINimum|MAXimum] 0.01%~99.99%(limited by Return Parameter <NR3> the current frequency setting) Example SOURCE1:PULS:DCYC? +1.0000E+01...
  • Page 71: Source[1|2]:Pulse:transition:trailing

    REMOTE INTERFACE ≧32ns( Return Parameter <seconds> 8ns AFG- 4235/4260/4280/4210H, 7ns AFG-4225H. limited by the current frequency and pulse width settings) Example SOURCE1:PULS:TRANsition:LEADing? +8.0000E-08 The pulse transition trailing is set to 80 nanoseconds. Source Specific SOURCE[1|2]:PULSe:TRANsition:TRAIling Command Description Sets or queries the pulse trailing edge time. The default rise time is 10ns.
  • Page 72: Harmonic Commands

    AFG-4000 Series Programming Manual ≧32ns( Return Parameter <seconds> 8ns AFG- 4235/4260/4280/4210H, 7ns AFG-4225H. limited by the current frequency and pulse width settings) Example SOURCE1:PULS:TRANsition:TRAIling? +8.0000E-08 The pulse transition trailing is set to 80 nanoseconds. Harmonic Commands Source Specific SOURce[1|2]:HARMonic:TOTAl Command...
  • Page 73: Source[1|2]:Harmonic:type

    REMOTE INTERFACE Source Specific SOURce[1|2]:HARMonic:TYPE Command Specifies which harmonics are output; odd, even, Description allor user specified. SOURce[1|2]:HARMonic:TYPE Syntax {EVEN|ODD|ALL|USER,10000001} Example SOURce1:HARMonic:TYPE USER,11000001 Outputs only the 2 and 8 harmonic.(1 harmonic is the fundamental frequency) Query Syntax SOURce[1|2]:HARMonic:TYPE? Output all even orders Parameter <EVEN>...
  • Page 74 AFG-4000 Series Programming Manual Sets the 2 harmonic to 3.0Vpp and a phase of 180º. Query Syntax SOURce[1|2]:HARMonic:ORDEr? <id> Returns the <id>:,<amplitude>,<phase>. <NR1> Order number: 2 Parameter <id> /Return Parameter <amplitude> <NR2> Amplitude of the selected order: 1mV ~ 10V (50ohm impedance) <phase>...
  • Page 75: Amplitude Modulation (Am) Commands

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

    AFG-4000 Series Programming Manual Source Specific SOURce[1|2]:AM:STATe Command Description Sets or disables AM modulation. By default AM 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 77: Source[1|2]:Am:internal:function

    REMOTE INTERFACE Sets the modulation source to external. Query Syntax SOURce[1|2]:AM:SOURce? Return Parameter INT Internal External Example SOUR1:AM:SOUR? The modulation source is set to internal. Source Specific SOURce[1|2]:AM:INTernal:FUNCtion Command Sets the shape of the modulating waveform from Description sine, square, ramp, noise and ARB. The default shape is sine.
  • Page 78: Source[1|2|]:Am:internal:frequency

    AFG-4000 Series Programming Manual Source Specific SOURce[1|2|]:AM:INTernal:FREQuency Command Description Sets the frequency of the internal modulating waveform only. The default frequency is 100Hz. Syntax SOURce[1|2]:AM:INTernal:FREQuency {<frequency>|MINimum|MAXimum} Parameter <frequency> 2 mHz~ 1MHz Example SOUR1:AM:INT:FREQ +1.0000E+02 Sets the modulating frequency to 100Hz.
  • Page 79 REMOTE INTERFACE Query Syntax SOURce[1|2]:AM:DEPTh? [MINimum|MAXimum] Return Parameter <NR3> Return the modulation depth as a percentage. Example SOUR1:AM:DEPT? +5.0000E+01 The modulation depth is 50%.
  • Page 80: Double-Sideband Amplitude Modulation (Dsbam) Commands

    AFG-4000 Series Programming Manual Double-sideband amplitude Modulation (DSBAM) Commands DSBAM Overview To successfully create an DSBAM waveform, the following commands must be executed in order. Enable DSBAM 7. Turn on DSBAM modulation using the Modulation SOURce[1|2]:DSBAm:STAT ON command 8. Use the APPLy command to select a carrier Configure Carrier waveform.
  • Page 81: Source[1|2]:Dsbam:state

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

    AFG-4000 Series Programming Manual Example SOUR1:DSBA:SOUR EXT Sets the modulation source to external. Query Syntax SOURce[1|2]:DSBAm:SOURce? Return Parameter INT Internal External Example SOUR1:DSBA:SOUR? The modulation source is set to internal. Source Specific SOURce[1|2]:DSBAm:INTernal:FUNCtion Command Description Sets the shape of the modulating waveform from sine, square and ramp.
  • Page 83: Source[1|2|]:Dsbam:internal:frequency

    REMOTE INTERFACE Source Specific SOURce[1|2|]:DSBAm:INTernal:FREQuency Command Description Sets the frequency of the internal modulating waveform only. The default frequency is 100Hz. Syntax SOURce[1|2]:DSBAm:INTernal:FREQuency {<frequency>|MINimum|MAXimum} Parameter <frequency> 2 mHz~ 1MHz Example SOUR1:DSBA:INT:FREQ +1.0000E+02 Sets the modulating frequency to 100Hz. Query Syntax SOURce[1|2]:DSBAm:INTernal:FREQuency? [MINimum|MAXimum] Returns the frequency in...
  • Page 84 AFG-4000 Series Programming Manual Query Syntax SOURce[1|2]:DSBAm:DEPTh? [MINimum|MAXimum] Return Parameter <NR3> Return the modulation depth as a percentage. Example SOUR1:DSBAm:DEPT? +5.0000E+01 The modulation depth is 50%.
  • Page 85: Amplitude Shift Keying (Ask) Commands

    REMOTE INTERFACE Amplitude Shift Keying (ASK) Commands ASK Overview The following is an overview of the steps required to generate an ASK modulated waveform. Enable ASK 1. Turn on ASK modulation using the Modulation SOURce[1|2]: ASK:STAT ON command. 2. Use the APPLy command to select a carrier Configure Carrier waveform.
  • Page 86: Source[1|2]:Askey:source

    AFG-4000 Series Programming Manual Syntax SOUR[1|2]:ASK:STATe {OFF|ON} Example SOUR1:ASK:STAT ON Enables ASK modulation. Query Syntax SOUR1:ASK:STATe? Return Parameter OFF Disabled (OFF) Enabled (ON) Example SOUR1:ASK:STAT? ASK modulation mode is currently enabled. Source Specific SOURce[1|2]:ASKey:SOURce Command Description Sets or queries the ASK source as internal or external.
  • Page 87: Source[1|2]:Askey:internal Rate

    REMOTE INTERFACE Syntax SOURce[1|2]:ASKey:AMPlitude {<voltage>|MINimum|MAXimum} Parameter <amplitude> 0V~ current amplitude of the carrier waveform Example SOUR1:ASK:AMPlitude 0.5V Sets the ASK amplitude to 0.5V. Query Syntax SOURce[1|2]:ASKey: AMPlitude? [MINimum|MAXimum] Return Parameter <NR3> Returns the modulation amplitude in mV. Example SOUR1:ASK:AMPlitude? 5.000E+02 Returns depth to 0.5V.
  • Page 88: Frequency Modulation (Fm) Commands

    AFG-4000 Series Programming Manual Frequency Modulation (FM) Commands FM Overview The following is an overview of the steps required to generate an FM waveform. Enable FM 1. Turn on FM modulation using the Modulation SOURce[1|2 ]: FM:STAT ON command. Configure Carrier 2.
  • Page 89: Source[1|2]:Fm:state

    REMOTE INTERFACE Source Specific SOURce[1|2]:FM:STATe Command Description Sets or disables FM modulation. By default FM 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 90: Source[1|2]:Fm:internal:function

    AFG-4000 Series Programming Manual Example SOUR1:FM:SOUR EXT Sets the modulation source to external. Query Syntax SOURce[1|2]:FM:SOURce? Return Parameter INTernal Internal EXTernal External Example SOUR1:FM:SOUR? INTernal The modulation source is set to internal. Source Specific SOURce[1|2]:FM:INTernal:FUNCtion Command Description Sets the shape of the modulating waveform from sine, square, ramp, noise and ARB.
  • Page 91: Source[1|2]:Fm:internal:frequency

    REMOTE INTERFACE Source Specific SOURce[1|2]:FM:INTernal:FREQuency Command Description Sets the frequency of the internal modulating waveform only. The default frequency is 100Hz. Syntax SOURce[1|2]:FM:INTernal:FREQuency {<frequency>|MINimum|MAXimum} Parameter <frequency> 2 mHz~ 1 MHz Example SOUR1:FM:INT:FREQ 100 Sets the modulating frequency to 100Hz. Query Syntax SOURce[1|2]:FM:INTernal:FREQuency? [MINimum|MAXimum] Returns the frequency in...
  • Page 92 AFG-4000 Series Programming Manual 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= error will be...
  • Page 93: Frequency-Shift Keying (Fsk) Commands

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

    AFG-4000 Series Programming Manual Enables FSK modulation Query Syntax SOURce[1|2]:FSKey:STATe? Return Parameter OFF Disabled (OFF) Enabled (ON) Example SOUR1:FSK:STAT? FSK modulation is currently enabled. Source Specific SOURce[1|2]:FSKey:SOURce Command Sets or queries the FSK source as internal or Description external. Internal is the default source.
  • Page 95: Source[1|2]:Fskey:internal:rate

    REMOTE INTERFACE Syntax SOURce[1|2]:FSKey:FREQuency {<frequency>|MINimum|MAXimum} 1 μHz to Max Frequency Parameter <frequency> Example SOUR1:FSK:FREQ +1.0000E+02 Sets the FSK hop frequency to to 100Hz. Query Syntax SOURce[1|2]:FSKey:FREQuency? [MINimum|MAXimum] Return Parameter <NR3> Returns the frequency in Example SOUR1:FSK:FREQ? +1.0000000000000E+02 Returns the frequency to 100Hz. Source Specific SOURce[1|2]:FSKey:INTernal:RATE Command...
  • Page 96: 3Frequency-Shift Keying (3Fsk) Commands

    AFG-4000 Series Programming Manual Example SOUR1:FSK:INT:RATE? MAX +1.000000000E+06 Returns the maximum FSK rate allowed. 3Frequency-Shift Keying (3FSK) Commands 3FSK Overview The following is an overview of the steps required to generate an 3FSK modulated waveform. Enable 3FSK 6. Turn on 3FSK modulation using the Modulation SOURce[1|2]:3FSK:STAT ON command.
  • Page 97: Source[1|2]:3Fskey:frequency

    REMOTE INTERFACE Syntax SOURce[1|2]:3FSKey:STATe {OFF|ON} Example SOUR1:3FSK:STAT ON Enables 3FSK modulation Query Syntax SOURce[1|2]:3FSKey:STATe? Return Parameter OFF Disabled (OFF) Enabled (ON) Example SOUR1:3FSK:STAT? 3FSK modulation is currently enabled. Source Specific SOURce[1|2]:3FSKey:FREQuency Command Description Sets the 3FSK hop frequency. The default hop frequency is set to 100Hz.
  • Page 98: 4Frequency-Shift Keying (4Fsk) Commands

    AFG-4000 Series Programming Manual Description Sets or queries the 3FSK rate for internal sources only. Syntax SOURce[1|2]:3FSKey:INTernal:RATE {<rate in Hz> |MINimum|MAXimum} Parameter <rate in Hz> 2 mHz~1MHz Example SOUR1:3FSK:INT:RATE MAX Sets the rate to the maximum (1MHz). Query Syntax SOURce[1|2]:3FSKey:INTernal:RATE?
  • Page 99: Source[1|2]:4Fskey:state

    REMOTE INTERFACE Frequency 13. Use the SOURce[1|2]: 4FSK:INT:RATE command to set the 4FSK rate. The 4FSK rate Set 4FSK Rate can only be set for internal sources. Source Specific SOURce[1|2]:4FSKey:STATe Command Description Turns 4FSK Modulation on or off. By default 4FSK modulation is off.
  • Page 100: Source[1|2]:4Fskey:internal:rate

    AFG-4000 Series Programming Manual Example SOUR1:4FSK:FREQ 1,+1.0000E+02 Sets the 4FSK hop1 frequency to to 100Hz. Query Syntax SOURce[1|2]:4FSKey:FREQuency? <n> [MINimum|MAXimum] Return Parameter <NR3> Returns the frequency in Example SOUR1:4FSK:FREQ? 1 +1.0000000000000E+02 Returns the hop1 frequency to 100Hz. Source Specific SOURce[1|2]:4FSKey:INTernal:RATE...
  • Page 101: Phase Modulation (Pm)Commands

    REMOTE INTERFACE Phase Modulation (PM)Commands PM Overview The following is an overview of the steps required to generate a PM modulated waveform. Enable PM 1. Turn on PM modulation using the Modulation SOURce[1|2]: PM:STATe ON command. 2. Use the APPLy command to select a carrier Configure Carrier waveform.
  • Page 102: Source[1|2]:Pm:state

    AFG-4000 Series Programming Manual Source Specific SOURce[1|2]:PM:STATe Command Description Turns PM Modulation on or off. By default PM modulation is off. Note Burst or sweep mode will be disabled if PM modulation is enabled. As only one modulation is allowed at any one time, other modulation modes will be disabled when PM modulation is enabled.
  • Page 103: Source[1|2]:Pm:internal:function

    REMOTE INTERFACE Return Parameter INTernal Internal EXTernal External Example SOUR1:PM:SOUR? INTernal The PM source is set to internal. Source Specific SOURce[1|2]:PM:INTernal:FUNction Command Description Sets the shape of the modulating waveform from sine, square, ramp, noise and ARB. The default shape is sine. Square and ramp waveforms have a 50% duty Note cycle.
  • Page 104: Source[1|2]:Pm:deviation

    AFG-4000 Series Programming Manual Parameter <frequency> 2 mHz~ 1MHz Example SOUR1:PM:INT:FREQ MAX Sets the frequency to the maximum value. Query Syntax SOURce[1|2]:PM:INTernal:FREQuency? Return Parameter <NR3> Returns the frequency in Example SOUR1:PM:INT:FREQ? +2.0000000E+04 Returns the modulating frequency. (20kHz) Source Specific SOURce[1|2]:PM:DEViation...
  • Page 105: Phase Shift Keying (Psk)Commands

    REMOTE INTERFACE Phase Shift Keying (PSK)Commands PSK Overview The following is an overview of the steps required to generate an PSK modulated waveform. Enable PSK 1. Turn on PSK modulation using the Modulation SOURce[1|2]: PSK:STAT ON command. 2. Use the APPLy command to select a carrier Configure Carrier waveform.
  • Page 106: Source[1|2]:Pskey:source

    AFG-4000 Series Programming Manual Enables PSK modulation Query Syntax SOURce[1|2]:PSKey:STATe? Return Parameter OFF Disabled (OFF) Enabled (ON) Example SOUR1:PSK:STAT? PSK modulation is currently enabled. Source Specific SOURce[1|2]:PSKey:SOURce Command Description Sets or queries the PSK source as internal or external. Internal is the default source.
  • Page 107: Source[1|2]:Pskey:internal Rate

    REMOTE INTERFACE Syntax SOURce[1|2]:PSKey:DEVitaion {<phase>|MINimum|MAXimum} Parameter <phase> 0~360°. Example SOUR1:PSK:DEV 180 Sets the PSK phase deviation to to 180°. SOURce[1|2]:PSKey:DEViation? Query Syntax [MINimum|MAXimum] Return Parameter <DEG> 0~360°. Example SOUR1:PSK:DEV? MAX 360° Returns the maximum phase deviation allowed. Source Specific SOURce[1|2]:PSKey:INTernal RATE Command Description Sets or queries the PSK rate for internal sources...
  • Page 108: Binary Phase Shift Keying (Bpsk)Commands

    AFG-4000 Series Programming Manual Binary Phase Shift Keying (BPSK)Commands BPSK Overview The following is an overview of the steps required to generate an PSK modulated waveform. Enable BPSK 6. Turn on BPSK modulation using the Modulation SOURce[1|2]: BPSK:STAT ON command.
  • Page 109: Source[1|2]:Bpskey:data

    REMOTE INTERFACE Example SOUR1:BPSK:STAT ON Enables BPSK modulation Query Syntax SOURce[1|2]:BPSKey:STATe? Return Parameter OFF Disabled (OFF) Enabled (ON) Example SOUR1:BPSK:STAT? BPSK modulation is currently enabled. Source Specific SOURce[1|2]:BPSKey:DATA Command Description Sets or queries the data source of modulation signal of BPSK modulation . PN15 is the default data source.
  • Page 110: Source[1|2]:Bpskey:internal Rate

    AFG-4000 Series Programming Manual Note For BPSK, the modulating waveform is a square wave with a duty cycle of 50%. Syntax SOURce[1|2]:BPSKey:PHASe {<phase>|MINimum|MAXimum} Parameter <phase> 0~360°. Example SOUR1:BPSK:PHAS 180 Sets the BPSK phase deviation to to 180°. Query Syntax SOURce[1|2]:BPSKey:PHASe? [MINimum|MAXimum] Return Parameter <NR1>...
  • Page 111: Quadrature Phase Shift Keying (Qpsk)Commands

    REMOTE INTERFACE Quadrature Phase Shift Keying (QPSK)Commands QPSK Overview The following is an overview of the steps required to generate an QPSK modulated waveform. Enable QPSK 11. Turn on QPSK modulation using the Modulation SOURce[1|2]: QPSK:STAT ON command. 12. Use the APPLy command to select a carrier Configure Carrier waveform.
  • Page 112: Source[1|2]:Qpskey:phase

    AFG-4000 Series Programming Manual Example SOUR1:QPSK:STAT ON Enables QPSK modulation Query Syntax SOURce[1|2]:QPSKey:STATe? Return Parameter OFF Disabled (OFF) Enabled (ON) Example SOUR1:QPSK:STAT? QPSK modulation is currently enabled. Source Specific SOURce[1|2]:QPSKey:PHASE Command Description Sets the QPSK phase deviation. The default phase deviation is set to 0°.
  • Page 113 REMOTE INTERFACE Description Sets or queries the QPSK rate for internal sources only. Syntax SOURce[1|2]:QPSKey:INTernal:RATE {<rate in Hz> |MINimum|MAXimum} Parameter <rate in Hz> 2 mHz~1MHz Example SOUR1:QPSK:INT:RATE MAX Sets the rate to the maximum (1MHz). Query Syntax SOURce[1|2]:QPSKey:INTernal:RATE? [MINimum|MAXimum] Returns the BPSK rate in Return Parameter <NR3>...
  • Page 114: Output Shift Keying (Osk)Commands

    AFG-4000 Series Programming Manual Output Shift Keying (OSK)Commands OSK Overview The following is an overview of the steps required to generate an OSK modulated waveform. Enable OSK 15. Turn on OSK modulation using the Modulation SOURce[1|2]: OSK:STAT ON command. 16. Use the APPLy command to select a carrier Configure Carrier waveform.
  • Page 115: Source[1|2]:Oskey:time

    REMOTE INTERFACE Query Syntax SOURce[1|2]:OSKey:STATe? Return Parameter OFF Disabled (OFF) Enabled (ON) Example SOUR1:OSK:STAT? OSK modulation is currently enabled. Source Specific SOURce[1|2]:OSKey:TIME Command Description Sets or queries the OSK oscillate period. The default oscillate period is set to 100us. Syntax SOURce[1|2]:OSKey:TIME {<time>|MINimum|MAXimum} Parameter...
  • Page 116 AFG-4000 Series Programming Manual SOURce[1|2]:OSKey:INTernal:RATE? Query Syntax [MINimum|MAXimum] Return Parameter <NR3> Returns the OSK rate in Example SOUR1:OSK:INT:RATE? MAX +1.0000E+06 Returns the maximum OSK rate allowed.
  • Page 117: Sum Modulation (Sum) Commands

    REMOTE INTERFACE SUM Modulation (SUM) Commands SUM Overview The following is an overview of the steps required to generate a SUM modulated waveform. Enable SUM 1. Turn on SUM modulation using the Modulation SOURce[1|2]: SUM:STATe ON command. Configure Carrier 2. Use the APPLy command to select a carrier waveform.
  • Page 118: Source[1|2]:Sum:state

    AFG-4000 Series Programming Manual Source Specific SOURce[1|2]:SUM:STATe Command Description Turns SUM Modulation on or off. By default SUM modulation is off. Note Burst or sweep mode will be disabled if SUM modulation is enabled. As only one modulation is allowed at any one time, other modulation modes will be disabled when SUM modulation is enabled.
  • Page 119: Source[1|2]:Sum:internal:function

    REMOTE INTERFACE Query Syntax SOURce[1|2]:SUM:SOURce? Return Parameter INTernal Internal EXTernal External Example SOUR1:SUM:SOUR? INTernal The SUM source is set to internal. Source Specific SOURce[1|2]:SUM:INTernal:FUNction Command Description Sets the shape of the modulating waveform from sine, square, ramp, noise and ARB. The default shape is sine.
  • Page 120: Source[1|2]:Sum:ampl

    AFG-4000 Series Programming Manual Example SOUR1:SUM:INT:FREQ MAX Sets the frequency to the maximum value. Query Syntax SOURce[1|2]:SUM:INTernal:FREQuency? Return Parameter <NR3> Returns the frequency in Example SOUR1:SUM:INT:FREQ? +2.0000000e+04 Returns the modulating frequency (20kHz). Source Specific SOURce[1|2]:SUM:AMPL Command The SUM amplitude command sets or queries the...
  • Page 121: Pulse Width Modulation (Pwm)Commands

    REMOTE INTERFACE Pulse Width Modulation (PWM)Commands PWM Overview The following is an overview of the steps required to generate a PWM modulated waveform. Enable PWM 1. Turn on PWM modulation using the Modulation SOURce[1|2]: PWM:STATe ON command. Configure Carrier 2. Use the APPLy command to select a pulse waveform.
  • Page 122: Source[1|2]:Pwm:source

    AFG-4000 Series Programming Manual Note Burst or sweep mode will be disabled if PWM modulation is enabled. As only one modulation is allowed at any one time, other modulation modes will be disabled when PWM modulation is enabled. Syntax SOURce[1|2]:PWM:STATe {OFF|ON}...
  • Page 123: Source[1|2]:Pwm:internal:function

    REMOTE INTERFACE Source Specific SOURce[1|2]:PWM:INTernal:FUNction Command Description Sets the shape of the modulating waveform from sine, square, ramp, noise and ARB. The default shape is sine. Square and triangle waveforms have a 50% duty Note cycle. Carrier must be a pulse or PWM waveform. Syntax SOURce[1|2]:PWM:INTernal:FUNCtion {SINusoid|SQUare|RAMP|NOISe|USER}...
  • Page 124: Source[1|2]:Pwm:duty

    AFG-4000 Series Programming Manual Return Parameter <NR3> Returns the frequency in Example SOUR1:PWM:INT:FREQ? MAX +1.0000e+06 Returns the modulating frequency. (1MHz) Source Specific SOURce[1|2]:PWM:DUTY Command Description Sets or queries the duty cycle deviation. The default duty cycle is 0%. Note The duty cycle is limited by period, edge time and minimum pulse width.
  • Page 125: Frequency Sweep Commands

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

    AFG-4000 Series Programming Manual Select Sweep Time 5. Choose the sweep time using the SOURce[1|2]:SWE:TIME command. Select the sweep 6. Select an internal or external sweep trigger trigger source source using the SOURce[1|2]:SOUR command. Source Specific SOURce[1|2]:SWEep:STATe Command Description Sets or disables Sweep mode. By default Sweep is disabled.
  • Page 127: Source[1|2]:Frequency:stop

    REMOTE INTERFACE Syntax SOURce[1|2]:FREQuency:STARt {<frequency>|MINimum|MAXimum} Parameter <frequency> 1uHz to Max Frequency Example SOUR1:FREQ:STAR +2.0000E+03 Sets the start frequency to 2kHz. Query Syntax SOURce[1|2]:FREQuency:STARt? [MINimum| MAXimum] Return Parameter <NR3> Returns the start frequency in Hz. Example SOUR1:FREQ:STAR? MAX +2.5000000000000e+07 Returns the maximum start frequency allowed. Source Specific SOURce[1|2]:FREQuency:STOP Command...
  • Page 128: Source[1|2]:Frequency:center

    AFG-4000 Series Programming Manual Source Specific SOURce[1|2]:FREQuency:CENTer Command Description Sets and queries the center frequency of the sweep. 550 Hz is the default center frequency. Note The maximum center frequency depends on the sweep span and maximum frequency: max center freq = max freq – span/2...
  • Page 129: Source[1|2]:Sweep:spacing

    REMOTE INTERFACE Syntax SOURce[1|2]:FREQuency:SPAN {<frequency>|MINimum|MAXimum} Parameter <frequency> 1uHz to Max Frequency Example SOUR1:FREQ:SPAN +2.0000E+03 Sets the frequency span to 2kHz. Query Syntax SOURce[1|2]:FREQuency:SPAN? [MINimum| MAXimum] Return Parameter <NR3> Returns the frequency span in Hz. Example SOUR1:FREQ:SPAN? +2.0000000000000e+03 Returns the frequency span for the current sweep. Source Specific SOURce[1|2]:SWEep:SPACing Command...
  • Page 130: Source[1|2]:Sweep:source

    AFG-4000 Series Programming Manual Note The function generator automatically determines the number of frequency points that are used for the sweep based on the sweep time. Syntax SOURce[1|2]:SWEep:TIME {<seconds>|MINimum|MAXimum} Parameter <seconds> 1 ms ~ 500 s Example SOUR1:SWE:TIME +1.0000E+00 Sets the sweep time to 1 second.
  • Page 131 REMOTE INTERFACE Note If the APPLy command was used to create the waveform shape, the source is automatically set to IMMediate. The *OPC/*OPC? command/query can be used to signal the end of the sweep. If the trigger source is set to manual, the function generator starts sweeping each time a trigger command is received.
  • Page 132: Burst Mode Commands

    AFG-4000 Series Programming Manual 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 133 REMOTE INTERFACE The following is an overview of the steps required to generate a burst waveform. Enable Burst Turn on Burst mode using the Mode SOURce[1|2]:BURS:STAT ON command. Use the APPLy command to select a sine, Configuration square, ramp, pulse burst waveform*. Alternatively, the FUNC, FREQ, AMPl, and DCOffs commands can be used to create the burst waveform* with a designated...
  • Page 134: Source[1|2]:Burst:state

    AFG-4000 Series Programming Manual Source Specific SOURce[1|2]:BURSt:STATe Command Description Turns burst mode on or off. By default burst mode is turned off. Note When burst mode is turned on, sweep and any modulation modes are disabled. Syntax SOURce[1|2]:BURSt:STATe {OFF|ON} Example SOUR1:BURS:STAT ON Turns burst mode on.
  • Page 135: Source[1|2]:Burst:ncycles

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

    AFG-4000 Series Programming Manual Example SOUR1:BURS:NCYC? +1.000000E+00 The burst cycles are set to 1. Source Specific SOURce[1|2]:BURSt:INTernal:PERiod Command Description Sets or queries the burst period. Burst period settings are only applicable when the trigger is set to immediate. The default burst period is 1 s.
  • Page 137: Source[1|2]:Burst:trigger:source

    REMOTE INTERFACE Source Specific SOURce[1|2]:BURSt:TRIGger:SOURce Command Description Sets or queries the trigger source for triggered burst mode. In trigged burst mode, a waveform burst is output each time a trigger signal is received and the number of cycles is determined by the burst count.
  • Page 138: Source[1|2]:Burst:gate:polarity

    AFG-4000 Series Programming Manual Note If the APPLy command was used, the source is automatically set to IMMediate. The *OPC/*OPC? command/query can be used to signal the end of the burst. If the trigger source is set to manual, the function...
  • Page 139: Arbitrary Waveform Commands

    REMOTE INTERFACE Description In gated mode, the function generator will output 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 140: Source[1|2]:Function User

    AFG-4000 Series Programming Manual Frequency, amplitude and Use the APPLy command to select offset frequency, amplitude and DC offset. Alternatively, the FUNC, FREQ, AMPl, and Load Waveform DCOffs commands can be used. Data Waveform data (1 to 10240000 points per waveform) can be downloaded into volatile memory using the DATA:DAC command.
  • Page 141: Source[1|2]:Data:dac

    REMOTE INTERFACE Source Specific SOURce[1|2]:DATA:DAC Command Description The DATA:DAC command is used to download binary or decimal integer values into memory using the IEEE-488.2 binary block format or as an ordered list of values. Note The integer values (±32767) correspond to the maximum and minimum peak amplitudes of the waveform.
  • Page 142: Source[1|2]:Arb:edit:copy

    AFG-4000 Series Programming Manual The command above downloads 5 data values (stored in 14 bytes) using the binary block format. DATA:DAC VOLATILE,1000,511,1024,0,-1024,-511 Downloads the data values (511, 1024, 0, -1024, -511)to address 1000. Source Specific SOURce[1|2]:ARB:EDIT:COPY Command Description Copies a segment of a waveform to a specific starting address.
  • Page 143: Source[1|2]:Arb:edit:delete:all

    REMOTE INTERFACE Syntax SOURce[1|2]:ARB:EDIT:DELete [<STARt>[,<LENGth>]] Parameter <STARt> Start address: 0~10240000(16384 AFG- 4125E/4125AE/4225E) 0 ~ 10240000(16384 AFG- <LENGth> 4125E/4125AE/4225E) Example SOURce1:ARB:EDIT:DEL 1000, 256 Deletes a section of 256 data points from the waveform starting at address 1000. Source Specific SOURce[1|2]:ARB:EDIT:DELete:ALL Command Description Deletes all user-defined waveforms from non- volatile memory and the current waveform in...
  • Page 144: Source[1|2]:Arb:edit:line

    AFG-4000 Series Programming Manual Creates a point on the arbitrary waveform at address 1000 with the highest amplitude. Source Specific SOURce[1|2]:ARB:EDIT:LINE Command Description Edit a line on the arbitrary waveform. The line is created with a starting address and data point and a finishing address and data point.
  • Page 145: Source[1|2]:Arb:edit:protect:all

    REMOTE INTERFACE Parameter <STARt> Start address: 0~10240000(16384 AFG- 4125E/4125AE/4225E) <LENGth> 0 ~ 10240000(16384 AFG- 4125E/4125AE/4225E) Example SOUR1:ARB:EDIT:PROT 40, 50 Protects a segment of the waveform from address 40 for 50 data points. Source Specific SOURce[1|2]:ARB:EDIT:PROTect:ALL Command Protects the arbitrary waveform currently in non- Description volatile memory/currently being output.
  • Page 146 AFG-4000 Series Programming Manual Length*: 0 ~ <LENGth> 10240000(16384 AFG- 4125E/4125AE/4225E) * Start + Length ≤ currently output arbitrary waveform Example SOUR1:ARB:OUTP 20,200 Outputs the current arbitrary waveform in memory.
  • Page 147: Counter

    REMOTE INTERFACE COUNTER The frequency counter function can be turned on remotely to control the frequency counter. Instrument COUNTER:STATE Command Description Turns the frequency counter function on or off. Syntax COUNter:STATe {ON|OFF} Parameter/ Return Parameter Example COUNter:STATe Turns the frequency counter on Query Syntax COUNter:STATe? Example...
  • Page 148: Counter:hfr

    AFG-4000 Series Programming Manual Example COUN:COUP? Queries the coupling mode of the input signal and the query returns DC. Instrument COUNter:HFR Command Description Enable or disable the high-frequency reject of the counter. The query returns the state of high- frequency reject of the counter.
  • Page 149: Counter:trigger

    REMOTE INTERFACE Parameter Low is selected for the trigger sensitivity /Return of the counter. Parameter MIDDle Middle is selected for the trigger sensitivity of the counter. HIGH High is selected for the trigger sensitivity of the counter. Example COUN:SENS LOW Sets the trigger sensitivity of the frequency counter to LOW.
  • Page 150: Counter:dutycycle

    AFG-4000 Series Programming Manual Instrument Command COUNter:DUTYcycle? Description This query-only command returns the measurement results for duty cycle of the counter. Syntax COUNter:DUTYcycle? Example COUNter:DUTYcycle? +5.00e+01 Returns the Dutycycle as 50%. Instrument Command COUNter:FREQ? Description This query-only command returns the measurement results for frequency of the counter.
  • Page 151: Counter:pulsewidth

    REMOTE INTERFACE Instrument Command COUNter:PULSewidth? Description This query-only command returns the measurement results for pulse width of the counter. Syntax COUNter:PULSewidth? Example COUNter:PULS? +1.04E-07 Returns the Pulse Width as 104nS.
  • Page 152: Couple

    AFG-4000 Series Programming Manual COUPLE The Couple commands can be used to remotely set the frequency coupling and amplitude coupling. Instrument SOURce[1|2]:FREQuency:COUPle Command Description Enables or disables the frequency coupling. Syntax SOURce[1|2]:FREQuency:COUPle {ON|Off} Return/ Return parameter Example SOURce1:FREQuency:COUPle ON Turns amplitude coupling on.
  • Page 153: Source[1|2]:Track:state

    REMOTE INTERFACE Amplitude coupling has been enabled. Instrument SOURce[1|2]:TRACk:STATe Command Description Turns tracking on or off. Syntax SOURce[1|2]:TRACk:STATe {ON|OFF|INVerted} Parameter/ Return Parameter INVerted INVerted Example SOURce1:TRACk:STATe ON Turns tracking on. Channel 2 will <track= the changes of channel 1. Query Syntax SOURce[1|2]:TRACk:STATe? Example SOURce1:TRACk:STATe?
  • Page 154: Save And Recall Commands

    AFG-4000 Series Programming Manual Save and Recall Commands Up to 16 different instrument states can be stored to non-volatile memory (memory locations 0~15). Instrument *SAV Command Saves the current instrument state to a specified Description save slot. When a state is saved, all the current instrument settings, functions and waveforms are also saved.
  • Page 155: Error Messages

    REMOTE INTERFACE Error Messages The AFG-4000 has a number of specific error codes. Use the SYSTem:ERRor command to recall the error codes. For more information regarding the error queue. Command Error Codes -101 Invalid character An invalid character was used in the command string.
  • Page 156 AFG-4000 Series Programming Manual An undefined header was encountered. The header is syntactically correct. Example: the header contains a character mistake. SOUR1:AMM:DEPT MIN -131 Invalid suffix An invalid suffix was used. Example: An unknown or incorrect suffix may have been used with a parameter.
  • Page 157: Query Errors

    REMOTE INTERFACE 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 158: Scpi Status Register

    AFG-4000 Series Programming Manual 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. SCPI Status Register The status registers are used to record and determine the status of the function generator.
  • Page 159 REMOTE INTERFACE Enable Register The Enable register determines which status event(s) are enabled. Any status events that are not enabled are ignored. Enabled events are used to summarize the status of that register group.
  • Page 160: Afg-4000 Status System

    AFG-4000 Series Programming Manual AFG-4000 Status System Questionable Status Register Condition Event Enable 0 Volt Ovld <1> <2> <4> <8> 4 Over Temp <16> 5 Loop Unlock <32> Error Queue <64> 7 Ext Mod Ovld <128> 8 Cal Error <256>...
  • Page 161: Questionable Status Register

    REMOTE INTERFACE Questionable Status Register Description The Questionable Status Registers will show if any 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 Description The Standard Event Status Registers indicate when the *OPC command has been executed or whether...
  • Page 162 AFG-4000 Series Programming Manual Bit Summary Register Bit Weight Operation complete bit Query Error Device Error Execution Error Command Error Power On Error Bits Operation The operation complete bit is set complete when all selected pending operations are complete. This bit is set in response to the *OPC command.
  • Page 163: The Status Byte Register

    REMOTE INTERFACE The Status Byte Register Description The Status Byte register consolidates the status 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 164: Output Queue

    AFG-4000 Series Programming Manual 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 165: Ec Declaration Of Conformity

    REMOTE INTERFACE EC Declaration of Conformity GOOD WILL INSTRUMENT CO., LTD. declare that the CE marking mentioned product satisfies all the technical relations application to the product within the scope of council: Directive: EMC; LVD; WEEE; RoHS The product is in conformity with the following standards or other normative documents: ◎...
  • Page 166: Index

    INDEX NDEX AM commands ....77, 82 symbol ..........5 List of features ......15 Apply commands ...... 55 Operation keys ARB commands....... 141 key overview........18 ARB error messages ....159 Output commands ....61 Burst commands ..... 134 Overview Caution symbol ......5 Display Overview ......

Table of Contents