Welcome to the Industrial Automation website!

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

Tektronix AFG1022 Function Generator

来源: | 作者:FAN | 发布时间 :2025-11-21 | 583 次浏览: | 🔊 Click to read aloud ❚❚ | Share:

Tektronix AFG1022 Function Generator

Basic Information

Tektronix has released an official programming guide for the AFG1022 dual channel function generator, with the core goal of guiding users to achieve instrument automation control through SCPI (Standard Commands for Programmable Instruments), suitable for engineers who need to integrate AFG1022 into testing systems such as production line testing and laboratory automation.

Product core parameters: 2 independent channels, with a maximum bandwidth of 120MHz per channel, supporting 11 waveforms including sine wave, square wave, pulse wave, etc;

Supporting interfaces: GPIB (compliant with IEEE 488.2 standard), USB-TMC (USB 2.0 High Speed, compatible with USBTMC protocol);

Software compatibility: Supports mainstream VISA libraries such as TekVISA and NI-VISA, and can be called through programming languages such as Python, C #, LabVIEW, etc;

Document structure: Organized according to the sequence of "Command Fundamentals ->Function Control ->Interface Configuration ->Error Handling ->Appendix", containing a large number of command examples and code snippets.


SCPI Command Fundamentals (Programming Control Premiere)

1. Command structure and syntax rules

The SCPI command of AFG1022 adopts a hierarchical structure, separated by colons (:) to facilitate functional classification and memory. The core rules are as follows:

Example of Specific Explanation of Rule Categories

Hierarchical structure root command (e.g. SOURce)+sub command (e.g. FREQuency), channels can be omitted (default channel 1) Control channel 1 frequency: SOURce: FREQ 1000 (or SOURce: FREQ 1000); Control channel 2: SOURce2: FREQ 2000

Case sensitivity commands are not case sensitive, and parameter enumeration (such as ON/OFF) is also not sensitive: SOURce: WAVEform SIN is equivalent to: source: Waveform sin

The space rule allows for the addition of spaces between commands and parameters, as well as between parameters, without affecting parsing. SOURce: FREQ 1000 is equivalent to SOURce: FREQ 1000

The abbreviation rule command can use the first 3 characters for abbreviation (some commands support longer abbreviations): SOURce can be abbreviated as: SOU,: FREQuency can be abbreviated as: FRE

2. Command types and data formats

Command type:

Set command: used to configure instrument parameters, in the format of "command+parameter", with no return value;

Example: SOURce: VOLTage: AMPity 5 (set channel 1 amplitude to 5Vpp).

Query command: used to read the current parameters of the instrument, in the format of "command+question mark (?)", and return the corresponding value;

Example: SOURce: VOLTage: AMPlity? (Query the current amplitude of channel 1 and return "5.000000e+00").

Data format:

Example of Data Type Format Requirements

Numerical type supports integer (1000), decimal (1.234), Scientific notation (1e6) frequency setting: SOURCE: FREQ 1.234e6 (1.234MHz)

String type needs to be enclosed in double quotation marks ("), supporting letters, numbers, and special characters. Save settings: SYSTem: SETup: SAVE" MY_STUP1“

Enumeration type predefined options that require strict matching (case insensitive) waveform selection: SOURce: WAVEform SQUare, SOURce: WAVEform TRIangle

image.png

Core functional programming control (divided by functional modules)

1. Basic waveform generation and parameter control

AFG1022 supports 11 standard waveforms, and can select waveform types and configure core parameters (frequency, amplitude, DC offset, etc.) through SCPI commands. The parameter range and corresponding commands are as follows:

Function module core parameter range control command (channel 1 as an example) query command

11 types of waveform selection, including sine wave (SINusoid), square wave (SQUare), pulse wave (PULSe), etc.: SOURCE: WAVEform SINusoid: SOURCE: WAVEform?

Frequency setting output frequency: 0.1Hz~120MHz (sine wave/square wave); 0.1Hz~10MHz (pulse wave): SOURce: FREQuency 1000 (1kHz): SOURce: FREQuency?

Amplitude setting peak to peak amplitude of 10mVpp~20Vpp (50 Ω load); 20mVpp~40Vpp (high impedance load): SOURce: VOLTage: AMPlity 5 (5Vpp): SOURce: VOLTage: AMPlity?

DC offset DC offset voltage ± 10V (50 Ω load); ± 20V (high impedance load): SOURce: VOLTage: OFFset 2 (+2V): SOURce: VOLTage: OFFset?

Square wave duty cycle, such as wave height to level ratio of 10% to 90% (frequency ≤ 10MHz): SOURce: PULSe: DCYCle 50 (50%): SOURce: PULSe: DCYCle?

2. Advanced Function Control

(1) Modulation function (AM/FM/PM)

Support amplitude modulation (AM), frequency modulation (FM), phase modulation (PM), configurable modulation source (internal/external), modulation depth and other parameters:

Enable modulation: SOURce: MOD: STATe ON;

Select modulation type: SOURce: MOD: TYPE AM (AM modulation);

Configure internal modulation source frequency: SOURce: MOD: INTernal: FREQ 100 (100Hz modulation signal);

Configure AM modulation depth: SOURce: MOD: AM: DEPTh 50 (50% modulation depth).

(2) Trigger and synchronization

Supports internal triggering (continuous output), external triggering (controlled by external signals), and software triggering, suitable for synchronous multi device testing:

  • Eaton XV-102-B6-35MQR-10-PLC Touch Panel
  • Omron ZFX-C15 Vision Sensor Controller
  • Kyosan PHS-4C-AN1 Servo Control Power Supply
  • Omron NX-ECC201 EtherCAT Coupler Unit
  • Omron C20-CPU83E CPU Unit 3G2C7-CPU83E
  • Omron FZ-SQ100F Vision Sensor Camera
  • Siemens 6SL3352-6BE00-0AA1 Power Supply Board
  • ABB AO815 3BSE052605R1 Analog Output Module
  • Siemens C98043-A1200-L Control Card
  • Allen-Bradley 1336-BDB-SP72D Gate Drive PCB
  • ST2000 34 Algorab Graphic PLC Terminal
  • OMRON C200HW-PRM21 Profibus DP Module
  • Siemens 2020964-001 DPM Base Board
  • OMRON CJ1W-V600C11 ID Controller Unit
  • Telemecanique TSX7 Series PLC Module
  • Okuma 1911-2861-0236049 Graphic Card Module
  • Parker HPD2S2N Servo Driver
  • OMRON FQ2-D31 Touch Finder Vision Sensor
  • OMRON C500-LK007 Host Link Unit
  • OMRON CJ1W-SCU32 Serial Communication Unit
  • Edwards C41901000 24V Solenoid Valve
  • ABB Procontic CS31 07 KR 91 PLC Controller
  • Siemens 7KG7750-0AA01-0AA0 Power Meter
  • Demag NC4K Compact PLC Controller
  • ABB SAPC 35 PAC/PP8482 Pulse Amplifier Board
  • Yaskawa SGMGH-09DCA6H-OY Servo Motor 850W
  • Saia PCD4.M445 Processor Module PLC
  • Yaskawa SGDH-04AE Servo Drive 400W 200V
  • Omron H8PR-24 Cam Positioner
  • Omron F150-C10E-2 Vision Sensor
  • OMRON 3G3MX2-A4015-E Inverter
  • Pro face GP577R-TC11 HMI
  • Pro face GP477R-EG11 HMI
  • ABB Pluto S20 V2 CFS Safety PLC
  • Siemens A5E00825002 IGD Board
  • Sakae SH40JHK-ZU-3S1R3G-10621B Joystick
  • Siemens 3RK1105-1AE04-0CA0 Safety Relay
  • Allen Bradley 1775-MEF Memory Module
  • OMRON CS1H-CPU63-H PLC CPU Unit
  • OMRON F150-C15E-3 Vision Sensor
  • Omron CJ1W-DA041 Analog Output Module
  • Saia PCD4.M440 PLC Module PCD4.M44
  • Steiel S595 PH Industrial Controller
  • VT650 PC Windows 2000 HMI Panel PC
  • Omron C200H-AD003 Analog Input Module
  • Omron CJ1W-V600C11 ID Sensor Unit
  • Coherent 250W Laser Adjustable Lens Head
  • Omron CQM1-AD042 Analog Input Module
  • SICK XKS09-HTBM-S02 Wire Draw Absolute Encoder
  • Omron 3F88L-P3A-E Cam Positioner PLC
  • OMRON R88M-H1K130 Servo Motor
  • SIEMENS 6ES7 331-7KB01-0AB0 SM331 Analog Input Module
  • LANDIS PCD4.M110 Processor Module
  • OMRON NT631C-ST151-EV2 HMI Touch Screen
  • TE.CO Grey Cable TFX 4G 1.5 ST 564mt UNEL Grey
  • OMRON R88D-H310G Servo Drive
  • ABB SACE SM3 630 630A PLC Switch
  • OMRON DRT2-AD04H Analog Input Terminal
  • OMRON FZ-SQ100F Vision Sensor
  • OMRON CP1E-NA20DT1-D CPU Unit PLC
  • Omron ZFX-C25-CD Vision Controller PNP 2-Camera
  • Omron ZFV-NX1 Smart Vision Sensor CCD Camera
  • GE Multilin F60 Feeder Management Relay UR Series
  • Omron C500-NC222-E Positioning Module 2 Axis
  • Omron C200PC-ISA01-E SYSMAC Board PLC ISA
  • Saia PCD2.W610 Analog Output Module 4 Channels
  • Kollmorgen SERVOSTAR 606 N1 Servo Drive Danaher Motion
  • Biviator RW 3089 CPU Module Industrial Controller
  • Santerno Sinus IFDEV 400T-7.5 AC Drive 8.4kW 380V
  • Omron C60H-C1DR-DE-V1 Programmable Logic Controller
  • SOCOMEC SIRCO 0T510058 1250A Switch
  • REER ARGOLUX ASR 1218 ASE 1218 Safety PLC
  • GE TLINE TCP11G-04-0345 Operator Panel
  • OMRON CJ1G-CPU43H V2.0 PLC CPU
  • OMRON FQ-MS125-ECT Vision System
  • OMRON FND-X06H Position Driver
  • OMRON CPM2C-S110C-DRT Compact PLC
  • YASKAWA SGMAH-02AAA61D-OY 200W Servo Motor
  • OMRON CJ1G-CPU43H V3.0 PLC CPU
  • Schneider PM89M0024 PLC I/O Module 4-20mA
  • Omron H8PR-16P-300 Rotary Positioner
  • Saia PCD2 AP103 PLC Module AP103 V3.5
  • Parker HPD5/K005 Servo Driver
  • Omron ES1-LWT Infrared Temperature Sensor
  • Yaskawa CIMR-V7AZ21P5 VFD 220V 1.5kW
  • Yaskawa CIMR-P5C43P7 Inverter 400V 3.7kW
  • Omron 3F88L-160 Programmable Cam Positioner
  • Yaskawa SGDH-02AE-OY Servo Driver 200V
  • ABB SACE SH800 800A 660V Switch Disconnector
  • Samsung CSDJ-10BX2 AC Servo Drive 1KW 220V
  • OMRON CQM1-DA021 DA022 IPS02 Analog Output PLC
  • OMRON CS1W-EIP21 EtherNet/IP Unit
  • SIEMENS S5 395 6ES5376-0AA11 CPU Module
  • GE Multilin 269-10C-HI Motor Management Relay
  • SIEMENS 3VT9500-3MQ00 Motor Operator
  • OMRON FQ2-S25100F Smart Camera
  • TOSHIBA VFPS1 4220PL WP 22kW Inverter
  • KEB COMBIVERT F4 13.F4.4C1D-4025 5.5kW Inverter
  • VISOLUX SLVA-4Kplus-2528 Photoelectric Sensor
  • PRO-FACE GP370-LG21-24VP HMI Touch Screen
  • YASKAWA SGMPH-04AAA61D-OY 200V 400W Servo Motor
  • YASKAWA SGMPH-08A1A41 750W Servo Motor with Gearbox
  • OMRON C60K-CDR-D K-Type CPU PLC
  • OMRON CS1W-AD081-V1 Analog Input Module
  • OMRON CP1H-X40DT-D Compact PLC
  • OMRON 3G3SV-BB007-E 0.75kW Inverter
  • YASKAWA SGDH-10DE-OY 1kW Servo Pack
  • OMRON C60H-C5DR-DE-V1 SYSMAC CPU PLC
  • OMRON C60H-C5DR-DE-V1 SYSMAC CPU PLC
  • OMRON 3G3MV-P10CDT3-E RS422/485 Inverter PLC Board
  • OMRON C200PC-ISA02-DRM-E SYSMAC Board PLC with Floppy & Operator Panel
  • OMRON 3G3SV-BB007-E 0.75kW Inverter
  • OMRON CP1H-X40DT-D Compact PLC
  • OMRON CS1W-AD081-V1 Analog Input Module
  • OMRON C60K-CDR-C K-Type CPU PLC
  • YASKAWA SGMPH-08A1A41 750W Servo Motor with Gearbox
  • YASKAWA SGMPH-04AAA61D-OY 200V 400W Servo Motor
  • OMRON CJ1W-DA041 Analog Output Module
  • OMRON C60H-C5DR-DE-V1 SYSMAC CPU PLC
  • OMRON 3G3MV-P10CDT3-E RS422/485 Inverter PLC Board
  • OMRON C200PC-ISA02-DRM-E SYSMAC Board PLC
  • Omron CQM1H-MAB42 Analog I/O Board
  • Omron C200PC-ISA02-DRM-E SYSMAC Board
  • Oriental Motor ARD-C CM10-1 Stepping Driver
  • EVA 915.85.003 Embedded CPU Module
  • Omron C60H-C1DR-DE-V1 PLC CPU
  • TE.CO TFX 4G10 Industrial Power Cable
  • Siemens 6SL3120-2TE15-0AA4 Motor Module