Welcome to the Industrial Automation website!

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

Tektronix AFG1022 Function Generator

来源: | 作者:FAN | 发布时间 :2025-11-21 | 291 次浏览: | 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:

  • WESTINGHOUSE 1C31113G02 Ovation Analog Input Module
  • WESTINGHOUSE 1C31129G03 Control Module
  • WESTINGHOUSE 1C31122G01 Process Controller | Ovation DCS Control Module
  • WESTINGHOUSE 1C31113G02 Ovation Analog Input Module
  • WESTINGHOUSE 1B30023H02 Control Module
  • WESTINGHOUSE 1B30035H01 Turbine Control System Module
  • WIDAP UFW30.156 6K8J175W0823 Power Resistor Technical Profile
  • WINGREEN IPB PCB V2.0_A01 03ZSTL6-00-201-RS Industrial Power Board
  • WINGREEN CANopen_ADAPTER V5.0_A01 03ZSTI-00-501-RS Module
  • WINGREEN PUIM V2.0 034STM4-00-200-RS Power Interface Module
  • WINGREEN DUDT_DETECTION_V2.0_A01 03ZSTJ0-00-201-RS Detection Control Board
  • WINGREEN LAIB V3.0_A00 034STN1-00-300-RS Embedded Industrial Motherboard
  • WINGREEN FAN_DETECTION V1.0_A05 03ZSTJ3-00-105Fan Monitoring Module
  • WINGREEN LAIB V3.0_A00 034STN1-01-300-RS Interface Board
  • WINGREEN ATKB_V5.0_A01 03ZSTI4-00-501 Industrial Control Keyboard Module
  • WINGREEN ATKB_V5.0_A01 03ZSTI4-01-501 Industrial Motherboard | Embedded Control Board
  • WINGREEN FPB_V3.0_A01 03ZSTJ1-00-301-RS Fieldbus Processor
  • WINGREEN DSPB_V4.0_A02 03ZSTI7-00-402-RS Digital Processing Board
  • WOHNER 31110 Cylindrical Fuse Holder
  • WOODHEAD APPLICOM PCI4000 PCI Communication Card Industrial DeviceNet CAN Bus Interface
  • Woodward 8440-1706 Industrial Control System Module
  • Woodward 8440-2052 H Synchronizer Load Share Module
  • Baldor KPD-TS12C-30E 12.1" Color TFT Touch Screen Ethernet HMI
  • Baldor KPD-TS10C-30E 10" Color TFT Touch Screen Operator Interface with Serial and Ethernet Interfaces
  • Baldor KPD-TS05C-30E 5.6" Color TFT Touch Screen with Serial and Ethernet Interface
  • Baldor KPD-TS05C-30 5.6 Inch Color TFT Touch Screen Serial Interface
  • Baldor KPD-TS05M-10 5.6" Monochrome Touch Screen Serial Interface HMI
  • Baldor KPD-TS03M-10 Monochrome Touch Screen Operator Interface
  • Baldor KPD-KG420-30 4x20 Graphic Display with 12 Function Keys - Serial Interface
  • Baldor KPD-KG420-20 4x20 Character Graphic Display Serial Interface
  • WOODWARD EASYGEN-3200-5 8440-1992 A Genset Controller
  • WOODWARD PEAK200-HVAC 8200-1501 C Version | Industrial Building Automation Controller
  • Woodward 8440-2052 easyGEN-3200 Genset Control Power Management
  • Woodward 8237-1246 + 5437-1119 Control System Module
  • WOODWARD SPM-D11 8440-1703 Overspeed Protection System Module
  • WOODWARD 8237-1369 Governor Control Module
  • Woodward 8237-1600 Digital Control Module
  • WOODWARD BUM60-1224-54-B-001-VC-A0-0093-0013-G003-0000 3522-1004 Industrial Control Module
  • WOODWARD 8200-1302 Genset Controller
  • Woodward 8901-457 Speed Control Module
  • WOODWARD 5501-465 Control Module
  • Woodward 5448-890 SPM-D10 Digital Control Module
  • WOODWARD 5437-1067A Turbine Governor Actuator
  • Woodward 8440-1666 B Digital Control Module
  • WOODWARD 8440-1706 A SPM-D11 Synchronous Phase Modulator Module
  • WOODWARD 5466-425 Programmable Automation Controller (PAC)
  • WOODWARD 5466-318- Industrial Gas Turbine Control Module
  • WOODWARD 5453-277 Digital Control Module
  • WOODWARD 5453-203 Digital Governor Control Module
  • WOODWARD 9907-1106 Pressure Converter
  • WOODWARD 5233-2089 Professional Industrial Control System Module
  • WOODWARD 9907-147 Power outage tripping overspeed protection system
  • WOODWARD 8237-1600 Digital Speed Control System
  • WOODWARD 8402-319 8402-119 microprocessor speed controller
  • Woodward 8237-1006 Digital Governor
  • WOODWARD 5501-471 Communication Module
  • WOODWARD 5466-258 Input/Output Module
  • WOODWARD 5501-467 Multi Protocol Communication Gateway and I/O Expansion Module
  • WOODWARD 5501-470 Digital microprocessor controller module
  • WOODWARD 9907-1200 Digital Governor
  • WOODWARD 8444-1067 High Performance Digital Microprocessor Controller Module
  • WOODWARD 8446-1019 Integrated Gas Engine Electronic Control System
  • WOODWARD 9907-162 Digital Engine Governor
  • WOODWARD 5466-316 Simulation Combination Module
  • WOODWARD 5464-414 Digital Speaker Sensor Module
  • XANTREX XFR40-70 DC power supply
  • XP POWER F8B6A4A6A6 power module
  • XP POWER F8B6D4A3G3 power supply
  • XYCOM XVME-674 VMEbus Single Slot CPU/Processor Module
  • XYCOM XVME-957 Circuit Board
  • XYCOM XVME-976 PC board computer
  • XYCOM XVME-530 8-Channel Isolated Analog Output Module
  • XYCOM Proto XVME-085 Bus Module
  • YAMAHA RCX40 4-AXIS ROBOT CONTROLLER
  • YAMATAKE EST0240Z05WBX00 touch screen display
  • YAMATAKE HD-CAOBS00 flowmeter
  • HIMA X-COM 01 Communication Module
  • HIMA HIMax X-AO 16 01 Analog Output Module
  • HIMA X-AI3251 Analog Input Module
  • HIMA X-DO3251 Digital Output Module
  • HIMA X-DI3202 Digital Input Module
  • HIMA X-DI6451 Digital Input Module
  • YASKAWA USAHEM-02-TE53 AC servo motor
  • Yaskawa JZNC-XPP02B Teaching Programmer
  • YASKAWA CACR-SR07BE12M servo drive
  • YASKAWA JAMSC-B2732V Advanced Drive Controller
  • YASKAWA JGSM-06 Controller
  • YASKAWA PCCF-H64MS 64MB Industrial Memory Module
  • YASKAWA CACR-02-TE1K servo driver
  • YASKAWA JAPMC-IQ2303 Controller Module
  • YASKAWA DDSCR-R84H Controller
  • YASKAWA JANCD-XTU01B circuit board
  • YASKAWA JANCD-XIO01 High Performance PC Input/Output (I/O) Board
  • YASKAWA JACP-317800 servo drive
  • XYCOM 120974 - Circuit Board
  • XYCOM 99298-200 - PC Control Card 99207A-001
  • XYCOM 99298-266 - CPU Board
  • XYCOM 99311-001 - Screen Display Ribbon Cable
  • XYCOM 99384-002 - PCB Module 99383A-001
  • XYCOM A05520I01 - Control Module PW22471 MPL400
  • XYCOM A33369 - Dual PMC Carrier Module
  • XYCOM AC2064A1 - VMEbus PCB Board Analog Output
  • XYCOM AC2065A1 - VMEbus PCB Board Analog Output
  • XYCOM CDA XVME - DSP SCSI I/O Module Serial RS232
  • XYCOM 143913-001 - TSKAM Board Rev A
  • XYCOM 1300-000100000 - Operator Interface Node Module
  • XYCOM 140050(R) - Documentation Support Library
  • XYCOM 1811-A00000000 - SXT1811T Monitor 100-120V
  • XYCOM 3112T-1200-256-2K - Operator Interface
  • XYCOM 3115 T - Industrial Computer
  • XYCOM 3406T - Flat Panel Industrial PC
  • XYCOM 3512-03F114003 - Automation Operator Interface
  • XYCOM 3515-A2P214003 - Operators Interface 6.3A
  • XYCOM 3535 - Operation Panel 3535-E3T434003
  • XYCOM 3612 T - LCD Flat Panel Display
  • XYCOM 3715 - Industrial Touchpanel Touchscreen PC
  • XYCOM 4115 T - Light-Duty Flat Panel 2000-512-2K
  • XYCOM 50151 - Automation Display
  • XYCOM 5017-T - Flat Panel Industrial Touch Monitor
  • XYCOM 3308T - 8" Flat Panel Color Touchscreen PC
  • XYCOM 9000-FFP-HU - Industrial Module
  • XYCOM 9440 - Automation HMI 9440-026714001
  • XYCOM 3406 KPT - Automation Control Panel
  • XYCOM 3000-CBL-25VP - Video Cable 25' 7.5M
  • XYCOM CA3-MBPALL-41 - Modbus Plus Module for GP2000
  • XYCOM QPI-MBP-XA1 - Modbus Plus Communication Module
  • XYCOM 3512 T - Automation Model HMI PM-101722C
  • XYCOM PM-102159 - Xycom Automation Monitor