Welcome to the Industrial Automation website!

NameDescriptionContent
HONG  KANG
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

Tektronix AFG1022 Function Generator

来源: | 作者:FAN | 发布时间 :2025-11-21 | 439 次浏览: | Share:

Example program: In addition to Python, it also provides control examples for C # and LabVIEW, covering scenarios such as waveform generation, modulation, and triggering;

VISA library compatibility: It explicitly supports TekVISA 4.0+and NI-VISA 5.0+, and it is not recommended to use older versions;

Firmware version description: Command differences between different firmware versions (such as some advanced commands requiring firmware ≥ 1.5.0).


Key issue

Question 1: How to ensure that the waveforms of two channels are "phase synchronized" when AFG1022 controls the output of two channels through SCPI commands? If there is still a phase deviation after synchronization, what commands can be used to adjust it?

answer:

1. Steps to ensure phase synchronization:

Enable channel synchronization function: Send command: SOURce: SYNC: STATe ON. At this time, the trigger signal of channel 2 will follow channel 1 to ensure that the output starting phase is consistent;

Unified trigger source: Set both channels' trigger sources to internal (TRIGger: SURCE INTernal) or the same external trigger (TRIGger: SURCE EXTernal) to avoid differences in trigger timing;

Same sampling clock: The two channels of AFG1022 share the same sampling clock without additional configuration, only ensuring that the channel synchronization function is enabled.

2. Phase deviation adjustment method:

If there is still a phase deviation after synchronization (such as channel 2 lagging behind channel 1 by 10 °), the phase of channel 2 can be fine tuned using the phase offset command:

Command format: SOURce2: PHAse: AJust<degrees>(phase adjustment range: -180 °~+180 °);

Example: SOURce2: PHAse: AJust 10 (leading channel 2 phase by 10 ° to offset the original lag);

Verification: Simultaneously collect the outputs of two channels through an oscilloscope, or check the phase setting (SOURce2: PHAse: ADJust?) to confirm the adjustment results.


Question 2: When using Python+pyvisa to control AFG1022 to generate a "10MHz square wave (duty cycle 30%, amplitude 8Vpp, DC offset 1V)", if the instrument does not output after executing the command, what are the possible reasons? Please list and provide troubleshooting steps according to priority.

answer:

1. Possible reasons and troubleshooting steps sorted by priority:

Steps for troubleshooting possible reasons for priority

1. Output not enabled. 1. Send query command: OUTPut: State? Confirm whether the return value is "ON";

If it is "OFF", send: OUTPut: STATe ON to enable output.

2 parameters exceed hardware limitations. 1. Check square wave frequency: 10MHz within the AFG1022 square wave frequency range (0.1Hz~120MHz), no problem;

2. Check the duty cycle: 30% is within the duty cycle range (10%~90%) corresponding to the 10MHz frequency, and there are no issues;

3. Check the amplitude and DC offset:

-Amplitude 8Vpp (maximum 20Vpp under 50 Ω load, compliant);

-DC offset 1V (± 10V under 50 Ω load, compliant);

-Key verification: amplitude+2 × DC offset ≤ 20V (8Vpp+2 × 1V=10V ≤ 20V, no overload).

3 command syntax errors 1. Check if the square wave configuration command is complete:

Correct command sequence:

-Choose square wave: SOURce: WAVEform SQUare;

-Set frequency: SOURce: FREQuency 10e6;

-Set duty cycle: SOURce: PULSe: DCYCle 30;

-Set amplitude: SOURce: VOLTage: AMPity 8;

-Set DC offset: SOURce: VOLTage: OFFset 1;

2. Enable command echo (SYSTem: ECHO ON), confirm that the sent command is consistent with the above and has no spelling errors (e.g. SOURce: PULSe: DCYCle mistakenly written as SOURce: SQARE: DCYCle).

4. Communication connection abnormality 1. Check VISA resource name: Confirm the resource name of AFG1022 through rm.list_desources() (e.g. USB interface is USB0:: 0x0699:: 0x0368:: C012345:: 0:: INSTR), ensure that the resource name connected in the code is correct;

2. Check the USB cable: Replace the USB 2.0 cable to avoid communication interruption caused by poor cable contact;

3. Restart the instrument: Power off and restart AFG1022 to establish a VISA connection again.

5 Instrument hardware failure 1. Execute self-test command: SYSTem: SELFtest? If "PASSED" is returned, it indicates that the hardware is normal. Otherwise, contact after-sales service;

2. Manual operation verification: Manually configure the same parameters through the instrument front panel, observe whether there is output, and rule out hardware problems other than programming control.


Question 3: In the "Modulation Function" of AFG1022, the "Modulation Depth" parameter range for AM modulation (amplitude modulation) is 0%~100%. Please explain the physical meaning of "Modulation Depth 50%" and use the SCPI command to implement "Channel 1 outputs a 100kHz sine wave carrier and uses a 1kHz sine wave for AM modulation (depth 50%, modulation source is internal)". At the same time, write a command sequence to query whether the modulation parameters have been successfully configured.

answer:

1. The physical meaning of "modulation depth 50%":

AM modulation (amplitude modulation) is the process of controlling the amplitude of a carrier signal through a modulation signal, causing the amplitude of the carrier signal to vary with the modulation signal. Modulation depth of 50% represents:

  • Bently 3500/15 125840-01 Power Supply Module
  • Bently 24765-02-01 Signal Conditioner Module
  • Bently 330130-085-00-00 Extension Cable
  • Bently 3500/22M 138607-01 Vibration Monitor Module
  • Bently 146031-02 Proximity Probe Sensor
  • BENTLY 330104-00-05-10-02-CN Proximity Probe
  • BENTLY 125768-01 3500 I/O Module Interface
  • BENTLY 3500/92 136180-01 Communication Gateway
  • BENTLY 84152-01 Proximitor Sensor Cable
  • BENTLY 3300/20 Dual Driver Proximitor Housing
  • BENTLY 3300/16-11-01-03-00-00-01 16-Channel Monitor
  • DEIF PPU-3 Power Protection Unit for Genset Control
  • DEIF RMV-112D Reactive Power Divider and Voltage Matching Relay
  • DEIF OPM-1 Output Protection Module for Gensets
  • DEIF IPM-1 Integrated Protection Module for Generators
  • DEIF CM-2 Control Module for Industrial Power Systems
  • DEIF PSM-1 Power System Manager Module
  • DEIF DELOMATIC-3 DGU2 Automatic Generator Control Unit
  • DEIF DLQ144-PC-NB Power Monitoring Meter
  • DEIF DU-2/MKIII Voltage Relay Controller
  • DEIF IOM4.2 Input/Output Module for Power Management
  • DEIF SCM-1 Synchronizing Control Module
  • DEIF GPU/2/GS Genset Parallel Unit Controller
  • EMERSON PR6426/010-110 CON021 Proximity System
  • EMERSON PR6423/011-110+C0N021 Proximity Sensor System
  • DEIF LSU-112DG Load Sharing Unit
  • DEIF PCM4.4 Advanced Power Control Module
  • DEIF TAC-311DG Transducer for AC Voltage
  • DEIF SCM4.1 Engine Start Control Module
  • DEIF PCM4.3 Power Control Module
  • Emerson 2500M/AI4UNIV Universal Analog Input Module
  • Emerson PR6424/011-140 Eddy Current Sensor
  • Emerson KJ3242X1-BK1 12P4711X042 Analog Input Module
  • Emerson FX-316 960132-01 Control Processor Module
  • Emerson KJ4006X1-BD1 Power Supply Module
  • EMERSON 1C31181G01 Ovation Analog Output Module
  • EMERSON CE4003S2B6 DeltaV Analog Module
  • EMERSON KJ4001X1-CK1 DeltaV I/O Carrier Card
  • EMERSON VE4012S2B1 DeltaV I/O Module Specifications
  • EMERSON SS6501T01 DeltaV System Assembly Technical Overview
  • Emerson A6370D/DP Display
  • Emerson P188.R2 Power Supply
  • Emerson A6824R 24-Ch Relay
  • Emerson KJ2201X1-JA1 Serial
  • Emerson VE3008 Main Controller
  • Emerson VE3008 CE3008 KJ2005X1-MQ1 Controller Module
  • Emerson TPMC917 Embedded Processor Module
  • Emerson P152.R4 Industrial Control Module
  • Emerson DA7281520 P152 Power Module
  • Emerson PR6423/008-110 Eddy Current Sensor
  • EMERSON 5X00273G01 Ovation DCS Digital Output Module
  • EMERSON KJ4001X1-NB1 12P3368X012 REV:E Redundant Controller Backplane
  • EMERSON KJ4001X1-NA1 12P3373X012 REV:C Intrinsically Safe Interface
  • EMERSON KJ4001X1-BE1 12P0818X072 REV:L DeltaV I/O Carrier
  • EMERSON KJ2221X1-BA1 DeltaV SIS SISNet Repeater Module
  • EMERSON PR6423/000-131 Eddy Current Sensor
  • EMERSON 5X00790G01 Ovation Digital Output Module
  • EMERSON 5X00846G01 Ovation Analog Input Module
  • EMERSON KJ4110X1-BA1 DeltaV Power Supply Base
  • EMERSON CSI3125 A3125/022-020 Dual Channel Monitor
  • EMERSON A6740 Displacement Case Expansion Monitor
  • EMERSON A6312/06 Speed Monitoring Module
  • EMERSON KJ4001X1-BE1 DeltaV Carrier Module
  • EMERSON SE3008 KJ2005X1-MQ2 DeltaV Controller
  • EMERSON KJ4001X1-CA1 DeltaV Terminal Block
  • Emerson PR6423/00R-010 CON031 Eddy Current Probe System
  • Emerson A6824 9199-00090 Operator Workstation
  • Emerson A6410 9199-00005 Operator Workstation
  • Emerson A6110 9199-00001 Operator Workstation
  • Emerson 9199-00002 A6120 Operator Workstation
  • Emerson KJ3002X1-BF1 12P1732X042 FIELDVUE DVC6200
  • Emerson 5X00500G01 Ovation Analog Output Module
  • Emerson VE4001S2T2B4 DeltaV Controller Module
  • Emerson 5X00502G01 Ovation Analog Input Module
  • Emerson A6824R 9199-00098-13 Operator Workstation
  • EMERSON A6140 9199-00058 Dual Channel Monitor
  • EMERSON VE3007 KJ2005X1-BA1 DeltaV Controller
  • EMERSON DB1-1 Connection Termination Block
  • EMERSON PMC-IO-ADAPTER Mezzanine Interface Card
  • EMERSON L0115012 L0115032 Solenoid Valve Components
  • Emerson A6410 Large Operator Workstation
  • Emerson A6210 Operator Workstation
  • Emerson 1C31232G02 Ovation Controller Module
  • Emerson 5X00106G02 Ovation Power Supply Module
  • Emerson 5X00106G01 Ovation Power Supply Module
  • EMERSON PMC-IO-PROZESSOR High-Speed I/O Module
  • EMERSON PMC PROFINET Communication Module
  • EMERSON MVME7100-0171 VMEbus Single Board Computer
  • EMERSON SE3008 KJ2005X1-SQ1 DeltaV MQ Controller
  • EMERSON PR6423/002-041 Eddy Current Displacement Sensor
  • Emerson SE4006P2 Serial Interface Module
  • Emerson KJ2201X1-HA1 Analog Input Module
  • EMERSON CE4001S2T2B4 DeltaV I/O Interface Module
  • EMERSON CE4003S2B1 DeltaV Controller
  • EMERSON KJ2003X1-BA2 DeltaV I/O Carrier
  • Enterasys A4H124-24TX P0973JM 24-Port Fast Ethernet Switch Module
  • Enterasys A2H254-16 P0973BK 16-Port Fast Ethernet Switch Module
  • Enterasys A4H254-8F8T P0973JP Matrix E5 Switch Module
  • Enterasys SSA-T8028-0652 P0973LN SecureStack Gigabit Switch
  • Enterasys A2H124-24FX P0973BJ
  • Enterasys SSA-AC-PS-625W P0973LQ Power Supply
  • Enterasys A2H124-24FX-RH Fiber Fast Ethernet Switch
  • Enterasys A2H254-16-RH Fast Ethernet Switch
  • Enterasys C2G170-24 P0973BL Stackable Gigabit Switch
  • Enterasys STK-RPS-150PS P0973BP Redundant Power Supply
  • ENTERASYS A4H124-24FX P0973JN SecureStack A4 Fiber Switch
  • ENTERASYS A4H124-24TX SecureStack A4 Ethernet Switch
  • ENTERASYS A2H124-24FX SecureStack A2 Fiber Switch
  • ENTERASYS A2H254-16 SecureStack A2 Managed Switch
  • ENTERASYS A4H254-8F8T SecureStack A4 Managed Switch
  • Enterasys C2RPS-CHAS2 Redundant Power System Chassis
  • Enterasys A2H124-24 Managed Ethernet Switch
  • EPRO PR6423/003-030-CN Hazardous Area Sensor
  • EPRO PR6424/012-000 Eddy Current Displacement Probe
  • EPRO PR6424/013-130 + CON021 Eddy Current Sensor System
  • EPRO PR6424/014-040 11mm Eddy Current Probe
  • EPRO PR6423/001-000 Eddy Current Sensor Probe
  • EPRO PR6423/010-000-CN Eddy Current Probe
  • EPRO MMS6823 9100-00001-05 Output Module
  • EPRO CON011 9200-00001N Signal Converter
  • EPRO MMS6120 Dual Channel Speed Monitor 9100-00002-10
  • EPRO MMS6120 Dual Channel Overspeed Protection Monitor 9100-00002C-08
  • EPRO PR6423 and PR6424 Eddy Current Displacement Probes
  • EPRO PR9268/300-000 Seismic Velocity Sensor
  • EPRO MMS3120/022-000 Dual Channel Vibration Monitor 9100-03047-01
  • EPRO MMS6823R 9100-00001-06 Dual Channel Module
  • EPRO PR6423/10R-030-CN Displacement Sensor
  • EPRO PR6423 Eddy Current Displacement Sensor