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

Select trigger source: TRIGger: SURce EXTernal (external trigger, trigger signal connected to TRIG IN interface of Rear panel);

Set trigger edge: TRIGger: EDGE RISING (rising edge trigger);

Execute software trigger: TRIGger: IMMediate (immediately trigger output once);

Trigger delay: TRIGger: DELay 0.1 (output delayed by 0.1 seconds after triggering).

(3) Setting up storage and calling

The current instrument configuration (waveform, parameters, modulation, etc.) can be saved to the internal storage area (supporting 10 user settings), and can be directly called later:

Save settings: SYSTem: SETup: SAVE "SET1", 1 (Save current settings as "SET1", Store location 1);

Call settings: SYSTem: SETup: LOAD 1 (setting to call storage location 1);

Delete setting: SYSTem: SETup: DELETE 1 (delete storage location 1 setting).

3. Multi channel control (AFG1022 has 2 channels)

Two channels are independently controllable, and channel 2 can be distinguished by adding 2 in the command. The example is as follows:

Channel 2 waveform selection: SOURce2: WAVEform TRIangle (Channel 2 outputs triangular waves);

Channel 2 frequency setting: SOURce2: FREQ 2000 (channel 2 frequency 2kHz);

Channel synchronization: SOURce: SYNC: STATe ON (synchronizes channel 2 with channel 1 in phase).


Interface configuration and communication implementation

1. Supported communication interfaces

AFG1022 provides two programming interfaces to meet different testing system requirements:

Advantages of Interface Type Standard Protocol Hardware Requirements

GPIB IEEE 488.2 requires GPIB cards (such as NI GPIB-US-HS) with strong anti-interference capabilities, suitable for industrial environments

USB-TMC USB 2.0 High Speed+USBTMC standard USB cable (A-B type) plug and play, no additional hardware required

2. Communication parameter configuration

GPIB interface: default address is 22, baud rate is 115200, data bit is 8, stop bit is 1, checksum is None; The address can be modified by the command: SYSTem: GPIB: DDRess 23 (set to 23).

USB-TMC interface: No manual parameter configuration is required, the system automatically recognizes it as a "USBTMC device" and can be directly connected through the VISA library (the resource name is usually USB0:: 0x0699:: 0x0368: C012345:: 0:: INSTR).

3. Typical Communication Example (Python+pyvisa)

Taking "Generate 1kHz sine wave and query amplitude" as an example, the steps are as follows:

Install dependency library: pip install pyvisa pyvisa py;

Write code:

python

Import pyvisa # Import VISA library

# 1. Initialize Resource Manager

rm = pyvisa.ResourceManager()

# 2. Connect AFG1022 (resource name can be queried through rm.list_desources())

afg = rm.open_resource("USB0::0x0699::0x0368::C012345::0::INSTR")

# 3. Send command: Channel 1 outputs a 1kHz sine wave with an amplitude of 5Vpp

Afg.write ("SOURce: WAVEform SINusoid") # Select sine wave

Afg.write ("SOURce: FREQuency 1000") # Frequency 1kHz

Afg.write ("SOURce: VOLTage: AMPlity 5") # amplitude 5Vpp

Afg. write (": OUTPut: STATe ON") # Enable output

# 4. Query the current amplitude

amplitude = afg.query(":SOURce:VOLTage:AMPlitude?")

Print (f "Current amplitude: {amplitude} Vpp")

# 5. Close connection

afg.close()

rm.close()

Generating


Error handling and debugging

1. Error code query and parsing

When the instrument executes a command error (such as parameter out of range, syntax error), an error code will be recorded, which can be queried and located through the command:

Query error: SYSTem: ERRor? (Return format: -221, "Parameter out of range");

Common error code parsing:

Error code, error description, possible causes, and solutions

-221 Parameter out of range Check if the parameter is within the specified range (e.g. frequency ≤ 120MHz)

-102 Syntax error command syntax error check command spelling (e.g. SOURce: FREQ mistakenly written as SOURce: FRE)

-256 Calibration required: The instrument has not been calibrated and the accuracy of the parameters cannot be guaranteed. Execute the calibration command (SYSTem: CALibrate) or contact after-sales service

0 No error command executed successfully-

2. Status Register and Status Query

By reading the status register, the current working status of the instrument can be obtained (such as whether it is outputting or triggering):

Operation status query: Status: Operation: CONDition? (Return 1 indicates normal operation, 0 indicates standby);

Event status query:: Status: EVENT: CONDition? (Return the event status code, such as 8 indicating trigger completion).

3. Debugging tools

Command echo: When enabled: SYSTem: ECHO ON, the instrument will return the received command for confirmation of whether the command was sent correctly;

Grammar check: Before sending a command, you can check the syntax using the command SYSTem: HECK: CMD (e.g. SYSTem: HECK: CMD ": SOURce: FREQ 1000");

Timeout setting: Set a timeout in the VISA library (recommended ≥ 1000ms) to avoid communication interruption caused by long command execution time (such as afg. timeout=2000).


Appendix Resources

Command index: a complete list of commands classified by "Source", "Trigger", and "System", including parameter descriptions and examples;

  • Bonfiglioli ACT 401-19 A Inverter
  • Bonfiglioli ACT 401-13FA Inverter
  • Bonfiglioli W 63 U 24 Gearbox
  • Bonfiglioli BN 80 B4 Electric Motor
  • Bonfiglioli A 30 2 UH35 Gearbox
  • Bonfiglioli ACT 401-09 FA Inverter
  • Bonfiglioli EM-SYS DS179675010 Communication Module
  • Bonfiglioli AGL402-15 2 FA Inverter
  • Bonfiglioli W63UF115P90B5B3 Gear Reducer
  • Bonfiglioli 2KB2 060-0405-A00003 Bearing
  • Bonfiglioli VF 44 A 10 P63 B5 B3 Gearbox
  • Bonfiglioli ACU401-13FA Frequency Inverter
  • Bonfiglioli ACT 201-11FA Inverter
  • Bonfiglioli AGL402-15 2 FA Inverter
  • Bonfiglioli AGL402-07 1 FA Inverter
  • Bonfiglioli ACU 410-19 3 A Inverter
  • Bonfiglioli A 10 2 UH25 P71 Gearmotor
  • Bonfiglioli ACT 401-13 FA Inverter
  • Bonfiglioli ACU 410-15 2 FA Inverter
  • Bonfiglioli ACU 410-27 5 A Inverter
  • Bonfiglioli BN 63B 4 B5 Motor
  • Bonfiglioli AGL402-18 2 FA Frequency Inverter
  • Bonfiglioli W86-UF1-P90B5 Worm Gear Reducer
  • Bonfiglioli MP 080 80 STD 80A1 Planetary Gearbox
  • Bonfiglioli BN90S4 Motor
  • Bonfiglioli A413 UH40 Gear Motor
  • Bonfiglioli VF 63 Gear Reducer
  • Bonfiglioli ACU 201-05 FA Inverter
  • Bonfiglioli ACT 401-13FA Inverter
  • Bonfiglioli LC 120 1 10 STD 110A1 CD 24 KE Gear Unit
  • Bonfiglioli Fuji GVX2000-11-TSL2 Inverter
  • Bonfiglioli ACU 401-05 FA Inverter
  • Bonfiglioli W86UP100B5 Gearbox
  • Bonfiglioli MP 130.1.5.10 Gear Unit
  • Bonfiglioli ACT W401-29C Vector Inverter
  • Bonfiglioli BE 71A 4 Gearmotor
  • Bonfiglioli BN 71B 4 Asynchronous Motor
  • Bonfiglioli W110U100P90B5B3 Gear Reducer
  • Bonfiglioli VF 49 F1 7 P71 B5 B3 Gearbox
  • Bonfiglioli MP 080 2 16 STD 50D Gear Unit
  • Bonfiglioli VF 44 A 10 P63 B5 B3 Worm Gearbox
  • Bonfiglioli ACU401-13FA Frequency Inverter
  • Bonfiglioli CM-EtherCAT DS179675207 Module
  • Bonfiglioli 8AF2400CK BX 90 L A 4 Motor
  • Bonfiglioli BRA 400-045 BF2 Inverter
  • Bonfiglioli TQF 070 Planetary Servo Gearbox
  • Bonfiglioli B-SYN-04-0780 Servomotor
  • Bonfiglioli TA45.50-25.0-D-0S Shaft Gearbox
  • Bonfiglioli AS 20 F 21.19 071 B5 Helical Gearbox
  • Bonfiglioli 07/63 EE B5 Gear Unit
  • Bonfiglioli EVO200280738 Drive Assembly
  • Bonfiglioli ACT 401-29A Frequency Converter
  • Bonfiglioli ACT 401-22A Frequency Inverter
  • Bonfiglioli Siemens 1LA70964AA91-Z VF72 Motor
  • Bonfiglioli BN 100 LA 4 Electric Motor
  • Bonfiglioli BN 63B 4 8D1002058S Electric Motor
  • Bonfiglioli HPC-Module 150303003 Inverter Module
  • Bonfiglioli Vectron ACU 210-07 1 FA Drive Unit
  • Bonfiglioli ACT 401-18FA Frequency Inverter
  • Bonfiglioli VCB 400-060 400031060 Brake Chopper
  • Bonfiglioli W86UP90B5 2G28010656 Gearbox Reducer
  • Bonfiglioli EM-ENC-05 DS179675024 Encoder Module
  • Bonfiglioli ACT 401-25A Frequency Inverter
  • Bonfiglioli PMT400-034 BF1 Inverter
  • Bonfiglioli CM-485 T Communication Module
  • Bonfiglioli AS 20 F 21.19 071 B5 Gearbox
  • Bonfiglioli W86UFC146P90B5B3 Gear Reducer
  • Bonfiglioli ACT201-05FA Frequency Inverter
  • Bonfiglioli VF 44 P P63 B14 Gear Reducer Motor
  • Bonfiglioli ZFA 400-014 D Frequency Inverter
  • Bonfiglioli Engineering 2B HMI Touch Panel
  • Bonfiglioli ACT 401-26A Inverter Driver
  • Bonfiglioli SPL400 13F Inverter
  • Bonfiglioli ZFA 400-040 D Frequency Inverter
  • Bonfiglioli ACT 401-23A Frequency Inverter
  • Bonfiglioli BTD5-2730-30-400-FD24 Servo Motor
  • Bonfiglioli ACT401-11FA Frequency Inverter
  • Bonfiglioli EM-ENC 03 179-675 022 Encoder Module
  • Bonfiglioli EM-I/O 03 179-675 043 I/O Module
  • Bonfiglioli DS179675597 Meter Module
  • Bonfiglioli ZFA 400-010 D2 Frequency Inverter
  • Bonfiglioli Vectron ZBA400-018D Frequency Inverter
  • Bonfiglioli Vectron ACT 401-26A Inverter
  • Bonfiglioli ACT ZR 401-18D Frequency Inverter
  • Bonfiglioli Vectron ZFB 400-018 Frequency Inverter
  • Bonfiglioli ACT W 401-29 C Frequency Inverter
  • Bonfiglioli Vectron BRA 400-045 BF2 Inverter
  • Bonfiglioli ACT 400-034A Frequency Inverter
  • Bonfiglioli RAN 15 D A 1 HS B3 Gear Unit
  • Bonfiglioli ZFB 400-060 Frequency Inverter
  • Milton Industries LT1240 LTI Tool Lugnut Remover
  • LTi Drives SO84.200.P030.0000.0-W Servo Spindle 100kW
  • Milton LTI LT1600P Torx Stick
  • LTI Lust VF1424L Variable Frequency Drive
  • LTI SO84.045.0002.0001.2-W Servo Drive
  • LTI Lust VF1404M Frequency Inverter
  • LTI SA54.0550.0033.0000.0 Servo Drive
  • LTI Tools LT-1400C Wheel Torque Extension
  • LTI SO84.143.0020.0101.2-W Servo Drive
  • LTI MOTION SC34.0200.0011.0000.0 Servo Drive
  • LTI DRIVES MS100 0927.0017 Assembly Set
  • LTI MOTION SO84.032.0003.0101.2 Servo Drive
  • LTI DRIVES SE84.200.SC00.0001.0-W 110kW Drive
  • Lust CDE34.005.W2.2 Lti Drives Servo Drive
  • LTi SO84.012.0030.0011.2 ServoOne Servo Drive
  • LTi CDE34.017.W3.0 Servo Drive
  • Seagate 9CC132-302 Harris LTI-CS Hard Drive 160GB
  • LTI SO24.007.0070.0000.1 Servo Controller
  • LTi Drive CDA32.003.C3.0.H05-01.PC1 Controller
  • LTI SO84.016.0030.0000.2 Servo Controller
  • LUST LTI CD A34.008 W1.4 BR Servo Drive
  • LTI Servo One SO84.045.0030.0001.2-W Drive 22kW
  • Lust LTi Servo One SO84.032.0040.0000.2 Drive
  • Milton LTI LT1600P Torx Stick
  • LTI Lust VF1424L Variable Frequency Drive
  • LTI SO84.045.0002.0001.2-W Servo Drive
  • LTI Lust VF1404M Frequency Inverter
  • LTI SA54.0550.0033.0000.0 Servo Drive
  • LTI Tools LT-1400C Wheel Torque Extension
  • LTI SO84.143.0020.0101.2-W Servo Drive
  • LTI MOTION SC34.0200.0011.0000.0 Servo Drive
  • LTI DRIVES MS100 0927.0017 Assembly Set
  • LTI MOTION SO84.032.0003.0101.2 Servo Drive
  • LTI SO84.032.0003.0101.2 Servo Drive Commissioning Guide
  • LTI CDD34.032 C1 Servo Drive
  • Lust Servo One SO84.008.0030.1000.0 Drive
  • LTI MOTION SO84.032.0003.0101.2 Servo Drive
  • LTI Tools LT-1400C 1/2 inch Wheel Torque Extension 100 Ft/Lbs