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 | 1297 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:

  • Bosch Rexroth CSH01.1C-PL-EN1 Control Unit R911318507
  • Rexroth 4WRE 10 E32-14/24Z4/M Servo Valve
  • Rexroth MSK040C-0600-NN-M1-UG0-NNNN Motor R911306060
  • Rexroth 30mm Ball Screw Assembly 10mm Pitch
  • Rexroth VT 11013-12 Amplifier Module R900010960
  • Rexroth MTC-R01.1-M1-A2-FW Control Unit R911279076
  • Bosch Rexroth SD301 Display Touchscreen 0608830194
  • Rexroth FWA-ECODR3-SMT-02V44-05 Firmware Module
  • Bosch Rexroth CSH01.1C-PL-EN1 Control Unit R911318507
  • Rexroth Star Starmatic 1465-400-00 Direct Drive
  • Rexroth AOK-032-NN-1 R054701796 Compact Module
  • Rexroth EFC5610-7K50-3P4-MDA-7P 7.5 kW Drive
  • Rexroth CSB02.1A-ET-EC-NN-NN-NN-NN-FW R911338329
  • Rexroth 3 842 559 001 VA2/D-130 Slide Stop
  • Rexroth Rod 429/1000 Linear Encoder R911220876
  • Rexroth DAQ02.1M Analog Module Board FJ159
  • Rexroth CSH01.1C-SE-ENS-NNN-NNN-S1-S-NN-FW Board
  • Rexroth HCS01.1E-W0008-A-03-E-S3-EC-NNN-NN-FW Drive
  • Rexroth HMS01.1N-W0150-A-07-NNNN Power Section
  • Rexroth RQN425-A-M-0512 PQ4752 Rotary Encoder
  • Rexroth VT5001 S23 R5 Proportional Amplifier
  • Rexroth DKCXX.3-040-7 Drive Controller
  • Rexroth MSM030C-0300 Servo Motor with Transmission
  • Baumüller DSG 56 M25 Servo Motor RE-21-1-A05
  • Rexroth RF13-04 Encoder Resolver Circuit Unit
  • Bosch Rexroth CML65.1 Control Module R911170460
  • Mannesmann Rexroth VT11131-11 Amplifier
  • Rexroth 3-609-929-B33 Electric Runner Nut
  • Rexroth VT3014S36 VT-3014 Amplifier Card
  • Rexroth RKB0044/030.0 Cable R911346854
  • Rexroth HMD01.1N-W0020 R911305062 Double Servo Drive
  • Rexroth HCS01.1E-W0008-A-03-B-ET-EC-NN-NN-NN-FW Drive
  • Rexroth R900424277 DBDS20P1X/200 Overflow Valve
  • Rexroth R185361310 Runner Block Ball Bearing
  • Rexroth AZPB32-1.0RCP02MB Gear Pump 0510010008
  • Rexroth PR2100.1 Embedded Automation Computer
  • Rexroth SE-B2.030.030-14.000 Servo Motor
  • Rexroth R900579497 VT 5035-17 Amplifier Card
  • Rexroth VT3024-S34-R1 Amplifier Card
  • Rexroth R978905565 Directional Control Valve
  • Rexroth KE312 Communication Module 0 608 830 241
  • Rexroth DBETX-10/250G24 Valve R901429019
  • Rexroth R-ILB PB 24 DI16 DO16 Profibus Module
  • Rexroth VT-5014S30-R1 Amplifier Card VT5014S30R1
  • Rexroth Indramat HDS03.2-W100N Servo Drive
  • Rexroth 0-531-012-740 Bladder Accumulator
  • Rexroth DAG01.2M EP Encoder Interface R911307482
  • Bosch Rexroth KE312 Communication Module 0608830241
  • Rexroth VT 11118-10 Analog Amplifier Module
  • Rexroth CML10.1 IndraControl L PLC R911170722
  • Rexroth 4WE6J62/EG24NK4K R901050676 Valve
  • Rexroth PPC-R22.1N-N-Q1-NN-NN-FW Servo Controller
  • Rexroth R162449420 Linear Guide Rail Component
  • Rexroth VT 5041-21/3-OC Amplifier Card
  • Bosch Rexroth R911173255 S20-PSDO-8/3 Interface Module
  • Bosch Rexroth Schraubspindel 0608701002 / 0608720039 / 0608820071 35 Nm Spindle
  • Rexroth CSB01.1C-SE-ENS-EN2-NN-S-NN-FW Control Board
  • Rexroth R167139410 Linear Guide Rail
  • Rexroth 0 608 701 017 Nutrunner Servomotor
  • Rexroth CML40.1-NP-220-NA-NNNN-NW IndraControl L40
  • GE MVDL8 00-479 3110 1-A Drive Control Board Module
  • GE ALSTOM EC5 Electro Code 5 Colorlight Track Circuit
  • ALSTOM ICP 232 Controller Module 029.359325
  • ALSTOM ZP0020001MM Ethernet and Communications Card
  • ALSTOM MV7306P21 VP32702X PROFIBUS Fieldbus Coupler
  • Bosch Rexroth CML10.1-NN-210-NB-NNNN-NW IndraControl L10 PLC
  • Bosch Rexroth R911173255 S20-PSDO-8/3 Safe Digital Output Module
  • Bosch Rexroth MSM040B-0300-NN-M0-CC1 Servo Motor
  • Bosch Rexroth MSK040B-0450-NN-M1-UG0-NNNN Servo Motor
  • Bosch Rexroth 3630630010 3/2 Way Directional Control Valve
  • Bosch Rexroth IndraControl S20 R911173359 S20-PN-BK+ Bus Coupler
  • Bosch Rexroth MKD041B-144-GP0-KN Synchronous Servo Motor
  • Bosch Rexroth Indramat BT 100 Industrial Panel PC
  • Bosch Rexroth MSM019B-0300-NN-M5-MH1 Servo Motor
  • Rexroth SE-B5.700.020-10.000 Synchronous Servo Motor
  • Rexroth 0608820115 Nutrunner Torque Transducer Size 4
  • Rexroth MAC090A-0-ZD-5-C/110-A-0/KI520LV Servo Motor
  • Rexroth 4WMM6J53/N Directional Control Valve
  • Rexroth HCS02.1E-W0028 IndraDrive Base Unit
  • Rexroth MDD090B-N-030-N2M-110GB0 Servo Motor
  • Mannesmann Rexroth VT11025-16 Amplifier Module 19666
  • Rexroth HCS01.1E-W0008-A-03-B-ET-EC-NN-L4-NN-FW Inverter
  • Rexroth MDD093C-N-030-N2M-110GB0 Servo Motor
  • Rexroth R162211322 Linear Guide Slider
  • Rexroth IndraControl L40 CML40.2-NP-330-NA-NNNN-NW Controller
  • Rexroth 3 842 532 421 Geared Motor 1380 rpm
  • Rexroth 4WEH 16 E67 Directional Valve Set
  • Rexroth HMS01.1N-W0110-A-07-NNNN Inverter
  • Rexroth P-057429-00000 Repair Kit
  • Rexroth MSM031C-0300-NN-M0-CH0 Servo Motor
  • Mannesmann Rexroth VT 11013 Amplifier Module
  • Rexroth 4DMC160 Transducer 0608820115
  • Rexroth 990500A Industrial Component
  • Bosch Rexroth HCS01.1E-W0003 Compact Drive
  • Rexroth 4WMM10E31/V Directional Valve R900593552
  • Bosch Rexroth EMC-032-NN-2 R021U10021 Linear Actuator
  • Rexroth VT-MX-4-10/K-AX4U-V50 Servo Interface Module
  • Rexroth 0811405144 Amplifier Card
  • Rexroth VM310 0608760109-103 Power Module
  • Rexroth HMD01.1N-W0012 IndraDrive Power Section
  • Rexroth LT303 0 608 750 084 Servo Amplifier
  • Rexroth DKCXX.3-040-7 Servo Drive 40 A
  • Rexroth 3842999760 UM 1 Return Module
  • Rexroth R911172284 Safety Controller SLC-3-CPU000300
  • Rexroth IMS2A-KWD-025-SNS-C1 R051702883 Measuring System
  • Rexroth NK350S Network Coupler MRN 3608877368
  • Bosch Rexroth CSB01.1N-AN-ENS Control Section
  • Rexroth R911330523 Power Cable RKL0045
  • Rexroth HMS01.1N-W0036 Single Axis Inverter
  • Rexroth 0 608 740 103 Connection Cable 2 m
  • Rexroth RWD-025-SNS-C2-P-2 Linear Bearing Block
  • Rexroth MSK050B-0300 Servo Motor R911309705
  • Bosch Rexroth KE312 Communication Module
  • Rexroth VCP05.2 IndraControl VCP 05 Panel
  • Rexroth CML40.2 IndraControl L PLC R911170254
  • Rexroth R911170826-206 Sercos Interface Module 24V DC
  • Mannesmann Rexroth VT 11030-12A 00010992 Valve Amplifier
  • Rexroth VT 11011-12 Amplifier Module R900010958
  • Bosch Rexroth SF-A1.0012.060-14.050 Servo Motor
  • Bosch Rexroth HCS01.1E-W0008-A-03-B R911325246 Inverter
  • Rexroth MDD093C-N-030-N2M-110PB2 Servo Motor
  • Bosch Rexroth MSK030B-0900-NN-M1-UG1-NNNN Servo Motor
  • Rexroth R900588201 4WE10E33/CG24N9K4 Solenoid Valve
  • Bosch Rexroth SR-A2.0020.030-00.000 Servo Motor 1070076772
  • Rexroth CML40.1-NP-220-NA-NNNN-NW Controller 1070170261-104
  • Yaskawa / Omron SGDM-01ADA - Sigma II Servo Drive 100W
  • Omron / KEP NT3S-ST123B-E - Interactive Display Operator Panel HMI
  • Yaskawa XD-01-MN01 - XtraDrive Servo Drive Controller