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

  • Hydraulik Elektronik EPM8900 91221 Proportional Module
  • ABB XZ C828 A101 Didt Dioder Snubber 3BHE039453R0101
  • ABB 3BHE032593R0001 Isolated Power Supply
  • ABB 3BHB02722R0001 single-phase charging transformer
  • ABB 3BHE006412R0101 UFC762AE101 main control board
  • ABB XVC770BE101 3BHE021083R0101 interface board
  • ABB 3BHE024747R0101 GD C801 Overvoltage Protection Motherboard
  • ABB 3BHE021887R0101 3BHB002751R0102 Variable Frequency Control Board
  • ABB SD812 power module 3BSC610023R0001
  • Automotive LC4A00010 Brushless Motor Controller
  • Doric NC500 Neuroscience Data Acquisition System
  • Honeywell X-DCS2000/EN Broadcast Manager
  • Kollmorgen S60600 servo drive 6A 480V
  • Honeywell 30751044-008 ROM Card
  • Honeywell 5SE1-12 Micro Switch Specifications
  • Schneider AS-BDAU-204 Analog Output Module
  • K93712 Expansion Kit Industrial Module
  • MGE DCHEN 3400116300 Circuit Board
  • Siemens 6SE7036-1EE85-1HA0 Rectifier Board
  • Renesas UPD70F3624GBA1 Microcontroller
  • Omron E5AC-CX4A5M-014 Temperature Controller Parameters
  • GE IS200TBCIH1BCE Contact Input Board
  • Fanuc A05B-2255-C101#EAW Teach Pendant Data
  • Rieter RMC186C RMC RIO-1 PLC Controller
  • Siemens PXC24.2-EF32.A Building Automation Controller
  • Fanuc A16B-1200-0220 PC Memory Board F3
  • Omron CJ2M-CPU33 PLC CPU Module
  • Beckhoff EL1918 Safety Input Terminal EtherCAT
  • Fanuc A16B-1212-0871 CNC PCB Board
  • GE Fanuc IC697BEM713J PLC Module
  • Mitsubishi A2ACPU-R21 PLC CPU Module
  • Programmable Relay 230V AC 16 Inputs 8 Outputs T2UK
  • Schneider F3SP71-4S Safety PLC Module
  • NEED-24DC- T2UK Programmable Relay 24V 16in 8out
  • Siemens 3RT1075-6SP36 SIRIUS Power Contactor 200kW
  • GE 1C31170G02 Printed Circuit Board Module 94V-0
  • BPT 67200020 Multifunction Touch Terminal 50Hz
  • Fanuc A16B-2200-0931 Option Board with Daughter Cards
  • Honeywell FC-SDOL-0424 I/O Module Board
  • Lenze EMF2179IB DeviceNet Communication Module
  • Yaskawa CIMR-JC4A0007BAA J1000 VFD 0.4kW
  • Yokogawa PSBCMNBN Bus Continuation Module ProSafe-PLC
  • Phoenix Contact PLC-BPT-24DC/1/SEN Solid-State Relay
  • Allen-Bradley 193-EC2AB E3 Plus Overload Relay
  • GE DS200TCTGG1AFF Turbine Control Board
  • Westinghouse 1C31170G02 Ovation Module
  • Mitsubishi A2ACPU21 Programmable Controller Review
  • 710-95045-AD PLC I/O Operation Console Cable
  • Allen-Bradley 1785-L11B PLC-5 Processor Specifications
  • BEMAC UST-202-D 1307D V08B2 Circuit Board
  • Pilz 312070 PSSu H PLC1 FS Safety Module
  • Keyence QS-MB1 Safety Network Module Overview
  • GE Fanuc IC693CPU372 CPU Module 90-30 Series
  • Mitsubishi RJ71EIP91 EtherNet/IP Module
  • Schneider LXM62DD27D21000 Lexium 62 Servo Drive
  • Mitsubishi Q13UDEHCPU Universal PLC CPU Module
  • B&R X20CP3585 Programmable Controller X20 CPU
  • Siemens 6FC5203-0AF02-0AA0 Sinumerik Operator Panel
  • IWKA PG02 VKR TEL-Z Self-Sufficient Measuring System
  • Schneider BMXCPS2010 PLC Power Supply Modicon M340
  • Mitsubishi A171SCPU Motion Servo CPU Specifications
  • PLC Board with Finder 44.52 Relay Module 6A 250V
  • Honeywell DOP 09436601 Measurex Module Data
  • Fanuc A20B-8101-0320 CNC Circuit Board
  • KUAX 680I V.24 PLC Module 68142304
  • Allen Bradley 1785-L30B PLC 5/30 Processor
  • Phoenix ILC 191 ETH 2TX 2700976 Ethernet Controller
  • Siemens 6SY7000-0AC80 PLC Power Supply Module
  • Reliance Electric MACS 804.46.20 CWW PLC Drive
  • Omron CP1E-N60DR-D PLC CPU 36 Input 24 Output
  • Mitsubishi Melsec PLC System A2ACPU A63P AY13E AX82
  • Square D PAF361600DC1680 2000A Circuit Breaker
  • MERLIN GERIN STR 58U 5000A Electronic Trip Unit
  • Omron CJ1W-SCU21-V1 Serial Communication Unit
  • SICK S30A-6011EA S3000 Safety Laser Scanner
  • Mitsubishi Q00JCPU-S8 Universal Programmable Controller
  • Allen-Bradley 20AB9P6C3AYNANC0 PowerFlex 70 AC Drive
  • SYSMELEC Handheld Robot Automation Controller
  • LG Display LB315WRM-SVA1 32 Inch 4K LCD Panel
  • Mitsubishi Kakoki E Series PLC I/O Modules
  • Allen-Bradley 1440-VST02-01RA Dynamic Measurement Module
  • Beckhoff EL5042 EtherCAT Encoder Terminal
  • Beckhoff CX5010-0112 Embedded PC Controller
  • Guardmaster 440R-D22R2 Safety Relay Specifications
  • NL12880BC20-10ND Industrial Display Panel Data
  • LFI 12X5326-S1 Slide-in Control Board Technical Data
  • Modicon AS-9370-001 Programmable Controller Data
  • Mitsubishi Kakoki E-01B-4130 PLC Module Overview
  • Guardmaster 440R-D22S2 Dual Input Safety Relay Data
  • NL10276AC30-48D Industrial LCD Display Panel Data
  • GE ICMFA000000-ABAC Field Control Module Specification
  • Siemens 6SN1123-1AB00-0BA1 SIMODRIVE Module Review
  • Siemens 6SL3210-1SE23-2AA0 Power Module Technical Data
  • Schmersal T.250-11z-t Limit Switch
  • Schmersal T.250-11z-t Limit Switch
  • Honeywell 900H32-0102 ControlEdge 900 PLC
  • Siemens 6FX1132-1BA01 PCB B84141-A-A40
  • BEMAC UST-202-D 1307D PLC Circuit Board
  • Mitsubishi HS-MF23-S2A Servo Motor
  • B&R 3AI775.6 Analog Input Module
  • Omnipure 69003 Rev 11 3-Phase Gate Board PCB
  • Pilz 751134 PNOZ s4 C Safety Relay
  • Proface PFXGM4301TAD HMI Graphic Panel
  • Keyence KV-RC8BXR Programmable Controller
  • Siemens 6GK7243-1BX30-0XE0 CP 1243-1 Ethernet Module
  • Mitsubishi GT2310-VTBA GT2310-VTBD HMI 10.4 Inch
  • Schmersal SRB-NA-R-C.21-24V Safety Relay Module
  • Emotron 01-2520-40 M20 Shaft Power Monitor 3x380-500V
  • Omron CQM1 SYSMAC PLC System PA203 ID211 OC221
  • ABB CI830 3BSE013252R1 Profibus DP V1 Module
  • B&R 4PP035.0300-01 Power Panel PLC Module
  • SICK S30A-6111CL S3000 PROFINET Safety Laser Scanner
  • Siemens 6ES7215-1HG40-0XB0 CPU 1215C AC/DC/RLY
  • Automation Direct H2-ECOM100 Ethernet Module Details
  • Siemens 6GK1143-0TB01 CP 1430 TF Module Review
  • Siemens Simatic 505 10 Slot PLC Rack Technical Review
  • Automation Direct EZ-SP Message Display Unit
  • Mitsubishi A1SJ71QE71N-B5T Ethernet Interface Unit
  • Modicon AS-P810-000 Modbus Plus Processor Unit
  • Honeywell 51309241-175 TK-PPD011 PWA Specifications
  • Omron S8AS-24006N Smart Power Supply Specifications
  • Beckhoff EL3218-0018 EtherCAT Terminal Specifications
  • Omron CJ1W-PRT21 PROFIBUS-DP Interface Unit
  • Inovance AC810-0122-U0R0 PLC Controller
  • Cypress CY7C1021CV33-10ZXCT 1Mb SRAM IC
  • GE Fanuc IC695CPU315-CD PLC CPU Module RX3i
  • Drager 8312088 PCB Safety Module PAC 5500
  • Weltronic H70-T02A S430-V1.2 Weld Timer PLC