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 | 725 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;

  • 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