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 | 1301 Br: | 🔊 点击朗读正文 ❚❚ ▶ | 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:

  • 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