Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

Tektronix AFG1022 Function Generator

F: | Au:FAN | DA:2025-11-21 | 865 Br: | 🔊 点击朗读正文 ❚❚ | 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:

  • Basler Electric DECS-250-CN1SN1N Digital Excitation Control System
  • Basler Electric BE1-700 E0N2X1N Digital Protective Relay
  • Basler Electric SR4A-2B15B3A Static Voltage Regulator 120VAC 50/60Hz
  • Basler Electric 9261402111 PCB Control Board 9346000033
  • Basler Electric BE28053-002 Transformer BE28053002
  • Basler Electric BE3-25A Auto Synchronizer B1D Sync Module
  • Basler Electric BE3-GPR Generator Protective Relay
  • Basler Electric SCP-250-G-60 VAR Power Factor Controller 9 1100 00 109
  • Basler Electric BE3-32-1S1N1 Reverse Power Relay 277V 5A
  • Basler Electric ACA1300-60GM Area Scan Camera 106200-17
  • Basler Electric UFOV 260 A Protection Module Specs
  • Basler Electric BE03303001 Control Module
  • Basler Electric BE3-GPR-P1BVSF Generator Protective Relay
  • Basler Electric BE1-87G Solid State Protective Relay Guide
  • BASLER ELECTRIC BE1-60 VOLTAGE BALANCE RELAY T176884
  • Basler Electric BE1-32R Protective Relay
  • Basler Electric 9022900-103 Transformer 6-7VA 60Hz
  • Basler Electric BE1-59-A4E-E1K-B1S3F Overvoltage Relay
  • Basler Electric KR2FF-M Voltage Regulator 9 1163 00 103
  • Basler Electric UFOV 260 A Protective Module
  • Basler Electric PCB Assembly 9059701100 919620
  • Basler Electric SR8A2B01A3E Static Voltage Regulator
  • Basler Electric SSR125-12 Static Voltage Regulator 9185900102
  • Basler Electric SSR 63-12 Static Voltage Regulator 600VAC
  • Basler Electric BE1-60 Solid State Protective Relay
  • Basler Electric BE3-47N/27-3A4N2 Voltage Relay 9320400101
  • Basler Electric BE1-59 Over Voltage Relay
  • Basler Electric DECS100-B15 Automatic Voltage Regulator
  • Basler Electric PRS250 Veri-Sync Relay 9088800102
  • Basler Electric BE25927001 Current Transformer 1:34 Amp
  • Basler Electric 9170818100 Generator Differential Relay
  • Basler Electric BE1-59N Solid State Ground Fault Overvoltage Relay
  • Basler Electric 1783 DC Current Transformer Coil 1200:5A
  • Basler Electric BE1-67 Ground Directional Overcurrent Relay
  • Basler Electric UFOV-260A Underfrequency Overvoltage Module
  • Basler Electric BE10493001 Control Module
  • Basler Electric SSR125-12 Static Voltage Regulator Guide
  • Basler Electric BE1810/U-2 Solid State Frequency Relay Guide
  • Basler Electric 9105100106 UFOV-250A Protector Guide
  • Basler Electric MOC2199 9072300-335 Relay Module Guide
  • Basler Electric 9289902106 Circuit Board
  • Basler Electric BE1-32R Protective Relay A1E E1P BOS1P
  • Basler Electric RAL6144-16GM GigE Line Scan Camera with Lens
  • Basler Electric BE3-49R-5I5A1 Temperature Relay
  • Basler Electric BE1-32R Power Relay B3E E1R A0N1F
  • Basler Electric SR4A2B06B3A Static Voltage Regulator Features
  • Basler Electric 9121000106 Manual Voltage Control MVC Guide
  • Basler Electric SR32A-2B15B3E Static Voltage Regulator
  • Basler Electric SR4A2B06B3A Static Voltage Regulator Guide
  • Basler Electric 801A193F02 Hammond Transformer Module
  • Basler Electric BE1-24 Volts Per Hertz Relay A1E F1J D1S0F
  • Basler Electric AEC63-7 Analog Excitation Controller 220-277V
  • Basler Electric BE132R Power Relay T245579
  • Basler Electric MVC 108 Manual Voltage Control 90 37000 102
  • Basler Electric 9022900-103 Control Transformer 6-7VA 60Hz
  • Basler Electric BE1-79M Plug Adapter 9170111102
  • Basler Electric 9 2007 00 100 Current Boost System CBS 305
  • Basler Electric SR4A2B01B3A Static Voltage Regulator 120V
  • Basler Electric BE1-32R Power Solid State Relay E2E A10 A0N0F
  • Basler Electric PRS250 Veri-Sync Relay 9088800102
  • Basler DECS 125-15-B2C Digital Excitation Control
  • Basler BE 13693 002 Transformer
  • Basler BE1-59N Ground Fault Overvoltage Relay
  • Basler BE1-79A Reclosing Relay
  • Basler 9-1051-00-105 Overload Protection Module
  • Basler BE1-32R Power Relay – Directional Overcurrent Guide
  • Basler 9319700103 BE3-27T/59T-3A1N3 Voltage Relay
  • Basler BE1-87G Generator Differential Relay
  • Basler BE3-25-1D1N4 9319100106 480V Relay
  • Basler SR8A2B07B3A Static Voltage Regulator
  • Basler Electric BE4-27/59 Over/Under Voltage Relay 307-2552
  • Basler Electric SR32A2B05B3E Static Voltage Regulator
  • Basler Electric BE1-27 A3E C3J A1N6F Solid State Protective Relay
  • Basler Electric 9174700-100 Excitation Limiter Generator
  • Basler Electric BE1-87G Generator Differential Relay 09833
  • Basler Electric 9310200100 Power Supply Module
  • Basler Electric TIEE1CD0N07 Control Module
  • Basler Electric BE1-59N Ground Fault Relay T214750
  • Basler Electric SR8A2B10B3AX Static Voltage Regulator 9060200126
  • Basler Electric SSR 125-12 Voltage Regulator
  • Rolls Royce H1111.0204 Ship Main Controller
  • Basler Electric BE3-32-3AC Reverse Power Relay 9 1376 00 105
  • Basler Electric BE3-25-1A1N4 Synch Check Relay 9319100100
  • Basler Electric SR4A-2B15B3A Static Voltage Regulator
  • Basler Electric SR4A-2B15B3E Static Voltage Regulator
  • Basler Electric 9170818100 Solid State Protective Relay
  • Basler Electric AEC63-7 Analog Excitation Controller
  • Basler Electric 17483 Auxiliary Module
  • Basler Electric BE1-59 Over Voltage Relay
  • Basler Electric 21600-101 Control Module
  • Basler Electric KR2F Generator Voltage Regulator 9056600100
  • Basler BE1-CDS Current Differential System
  • Basler Electric CBS 212 Current Boost System 9 2650 00 100
  • Basler Electric IFM-150 Firing Circuit Chassis
  • Basler Electric BE1-60 Voltage Balance Relay C1F A1P D0C3F
  • Basler Electric BE1-32R Power Relay A2E D1R A0N0F
  • Basler Electric BE1-32R Power Relay A2E D1R A0N0F
  • Basler Electric 8650C80G01 Isolation Transducer PCB Board
  • ETEL EA-P2M-300-4/7.5A-0100-01 AccurET Modular 300 Servo Drive
  • Basler Electric 87T Transformer Differential Relay
  • Basler Electric BE-6868 Power Transformer 5950007559202
  • Basler Electric PRS250 Veri-Sync Relay 9088800102
  • Basler Electric SCP-250-G-60 VAR Power Factor Controller
  • Basler DECS-150 AVR 1NS2V1N1S Voltage Regulator
  • Basler UFOV 260A Under Frequency Overvoltage Module
  • Basler MOC2 199 Motor Operated Control – Overview and Setup
  • Basler BE3-49R-5K5A1 Temperature Relay – Complete Guide
  • Basler BE 20035 001 Transformer – Technical Data and Installation
  • Basler BE 02727 001 Transformer – Specifications and Usage
  • Basler BE127 Under Voltage Relay – Features and Application Guide
  • Basler CBS377 Current Boost System – Complete Technical Guide
  • Basler BE1-87G P/N 9170818100 Differential Relay – In-Depth Specs
  • Basler BE1-87G Generator Differential Relay – Technical Overview
  • Basler Electric SR4A2B16 SVR Static Voltage Regulator – Complete Guide
  • Basler Electric 9261500101 Power Supply Module
  • Basler Electric AEM-2020 Analog Expansion Module
  • Basler Electric DGC-2020 Digital Genset Controller 51BRBNEAH001
  • Basler Electric BE1-59N Ground Fault Overvoltage Relay
  • Basler Electric BE1-59N-A5E-E1L-N0S1F Neutral Overvoltage Relay
  • Basler Electric MOC2499 Motor Operator Control Potentiometer 9072300430
  • Basler Electric BE1-50/51M Overcurrent Relay
  • Basler Electric 9148100106 MOC3502 Solid State Relay 250VDC 0.25A
  • Basler Electric CBS 212 Current Boost System 9265000100
  • Basler Electric 10493002 Control Module
  • Basler BE1-32R D3E E1R A0N1F Power Relay
  • Basler SR8A2B15B3A Static Voltage Regulator
  • Basler IFM-105 Firing Circuit Chassis 9324100105
  • Basler SR4A2B05B3A Static Voltage Regulator