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

  • Lauer Systeme LCA620.1 Operating Terminal Industrial HMI Keypad Panel
  • LAUER LXT-K10m Beijer EXTER-K10m Operator Interface Keypad HMI Panel
  • LAUER EPC-PM-1500tc Embedded PC 15 Inch TFT Touch Screen Industrial Computer
  • Lauer Industrial VPC Color Panel Control ID64680
  • Lauer PCSsmart PCS-10TVD-102 Touchscreen Panel
  • Lauer EPC 1200TC Embedded Industrial PC
  • Lauer Control Console PCS 095
  • Lauer PCS-090 Topline Mini Operator Panel PG090.208.D
  • Systeme Lauer 14X Operator Panel
  • Lauer Topline midi PCS950C Operator Panel 24V
  • Lauer PCS090 Topline Mini Control Console – Compact Operator Panel
  • Lauer PCS950 Topline Midi Operator Panel PG 950.100.6 – HMI Terminal
  • Lauer LCA 285.0 Text Display – Alphanumeric Operator Terminal
  • Lauer PCS100 Operator Panel V100.305.7 – Industrial HMI Terminal
  • Systeme Lauer PCS810-1 Interface Module – Communication Board
  • Lauer EPCG Box Embedded 1000TC Motherboard
  • Lauer Systeme LCA285 LCA 285.9 Text Display – 24V Alphanumeric Terminal
  • LAUER PSC090.S Operator Interface Panel – Compact HMI with Serial Communication
  • Lauer PCS590p / PCS595p Busline Mini Profibus DP Panel
  • LAUER PCS009 Control Panel – Compact Operator Terminal
  • Lauer PCS595 Business Mini Profibus DP Control Panel – Compact HMI with Fieldbus
  • LAUER PCS600 Operator Panel PG 600.105.2 – Compact HMI Terminal
  • Lauer LCA Terminal 640.1 – Advanced Operator Workstation
  • LAUER PCS807 Profibus-DP Module 24V DC 5.0VA – Fieldbus Adapter
  • SYSTEME LAUER PCS810.1 Interface Module – Communication Adapter
  • Lauer PCS090 Topline Operator Panel PG 090.204.9 – Compact HMI
  • LAUER PCS950 Rismat Label Operator Panel PG 950.100.6 – HMI Terminal
  • Lauer PCS609 Operator Interface Panel – Keypad Display Terminal
  • LAUER PCS095 Branson Label Operator Panel PG 095.508.A – HMI Terminal
  • Systems Lauer LCA 265 Text Display – Alphanumeric Operator Terminal
  • Lauer PCS-10TVD-102 Touch Panel – Smart HMI for Industrial Control
  • Lauer PCS595i Industrial Operator Panel – High-Performance HMI
  • LAUER PCS950 Operator Panel – Advanced HMI Terminal
  • Lauer PCS100FZ Control Console – Industrial Operator Station
  • Lauer LCA320.0 Industrial Controller – Compact Logic Module
  • Lauer PCS950.000.5 Control Panel PG 950.103.0 – Branson Compatible HMI
  • Lauer LCA Busline 320 Controller Module i01457 – Industrial Logic Unit
  • LAUER PCS095 Complete Controller Display – Graphic Operator Panel
  • Lauer PCS807 Profibus-DP Module PX 807.101.5BM – Fieldbus Adapter
  • Lauer PCS090 Topline Operator Panel PG 090.206.D – Compact HMI Terminal
  • Lauer PCS095 Branson Label Operator Panel PG 095.507.A – HMI Terminal
  • Lauer PCS009 Topline Micro Operating Terminal PG 009.204.1 – Mini HMI
  • LAUER AVTCE210.2 – Industrial Vision and Control Terminal
  • LAUER LCA 245 Text Display SU 245.100.1
  • LAUER PCS807 Profibus DP Module 807.101.5BM
  • Lauer PSC090 Topline Mini Operator Interface Panel – Compact HMI
  • Lauer EPC X 550 TC Embedded Industrial PC with Touch Panel
  • LAUER SYSTEME PCS-900 Operator Panel – Advanced HMI Workstation
  • Lauer PCS095.P PCS Plus Profibus DP Operator Interface – Control Panel
  • Systeme Lauer LCA 180 Text Monitor LD 180.004.1 – Industrial Text Display Terminal
  • LAUER PCS950C – High-Performance Process Control Station
  • LAUER SYSTEME LCA142 – Compact Industrial Controller and Logic Unit
  • LAUER SYSTEME PCS-810-1 – Industrial Panel PC and Control Terminal
  • ASML Right Field Detector 874-0084-002 – Light Intensity Measurement Module
  • ASML IPCB SEM-I-319 Interface Board 4022.636.58181 – VME I/O Module
  • ASML Temperature Sensor Assembly PT1000 4022.481.27732
  • ASML PCB FEI PHILIPS FIDT BD 4022.192.71178
  • ASML IR1-NIR Module 4022.639.86644 – Infrared Near-Infrared Sensor Unit
  • ASML Interface PCB 4022.192.72303
  • SVG Silicon Valley Group 99-54149-01 HMDS Refill Canister for ASML 90S DUV
  • ASML SVG 121-142F Controller Low-Spin Motor Developer
  • ASML 879-0054-002 PROTEUS 150SST Flow Switch
  • ASML 4022.654.97871 LM 4C LPSA Power Supply
  • ASML 28320 PCB Assy OCTU/UC 4022.192.9463
  • ASML 900470 System Interface Card 137285
  • ASML 130-127 PCB Artic
  • ASML 4022.471.76592 PCB-I-E-1391=9G24
  • ASML 4022.430.12256 PCB-I-E-1463=ZA09
  • ASML 879-0262-002 Shutter
  • ASML 4022.654.97872 LM 4C LPSA Power Supply
  • ASML SMC Pneumatic Valve Manifold Assy 4022.472.5315
  • Premium NP-0606 Power Supply 26V/6A for ASML 4022.476.01341
  • ASML PCB Card 4022.428.1023 PAS 5000/2500
  • ASML LISAF 3P Power Supply 4022.634.44801
  • ASML Red/635 Solid State Laser Module 635nm ELEC-I-1050
  • ASML SEM-I-1512 Controller Module 4022.639.02772
  • ASML Chuck QML/MSXLOD 879-0362-002 – Electrostatic Wafer Chuck Assembly
  • ASML SEM-I-737 Interface Module 4022.486.04121.HLN
  • ASML RH-PU-Mk3 Parker Power Unit 4022.631.24391
  • ASML Processor PCB Board PAS 5000/2500 7122.714.1800
  • ASML 4022.455.1103 Rotator Beam OR BS Assy
  • ASML Servo Test Box Frameless Monoset U20L0203
  • ASML 4022.428.1804 Processor PCB Board PAS 5000/2500
  • ASML 12456 Motion Control Board 4022.436.6467
  • ASML 37155 CCD Camera with Lens 4022.456.12463
  • ASML 4022.654.97873 LM 4C LPSA Power Supply
  • ASML 4022.635.04286 MF LS Purging Supply Assy
  • ASML 4022.636.53513 WH PA Interface Box Assy
  • ASML C2913 Cymer Lens 750A 4022.454.48131
  • ASML 4022.472.42622 IR2-FIR Solid State Laser Module
  • ASML 4022.437.20602 Green Laser Head & Controller
  • ASML 4022.651.46362 End Effector & RH Robot Gripper
  • BRONKHORST ASL-100F ASML 4022.666.71411 Mass Flow Controller
  • ASML 4022.471.88172 PAAC 450/20 PRODRIVE
  • ASML ATLAS Vacuum Regulator 4022.481.81953
  • ASML 4022.230.0438 PCB Card for PAS 5000/2500
  • ASML 4022.430.0109 Reticle Table Control PCB
  • ASML 4022.436.2451 Procesador Sello Arriba/Abajo PCB
  • ASML IIB Base 2 PCB Set 4022.436.8304 4022.436.8601
  • ASML 4022.472.62895 Power Supply Interface Module
  • ASML 4022.436.45028 PID Board
  • ASML 4022.671.23212 TCMA Thin Client Module MK2
  • ASML 0021-06148 TAB Clamp Ring Endura 5500 PVD
  • ASML 4022.192.9103 Interface PCB
  • ASML 4022.436.5298 Stepper Barcode Reader
  • ASML SVG 879-0794-001 Micrascan Axiom Assembly
  • ASML 54-125495A02 PC Compact Industrial ASMA003
  • ASML 4022.430.0098 PCB Card PAS 5000/2500
  • ASML 7122.714.1200.5 Processor PCB Board PAS 5000/2500
  • ASML 4022.428.14901 PAS 5000/2500 PCB Card
  • ASML Kay Neum F2 Valve Block PAS 2500 5000
  • ASML 4022.436.2451 Processor Stamp PCB PAS 5000 2500
  • ASML 4022.640.52821 IXL XP Module
  • ASML 859-8184-002 Viewing Power Select Panel
  • OZ OPTICS 4022.656.10963 Laser Module
  • ASML 851-0618-003 Stepper Library Brake
  • GF+ U1000 V2 ASML Ultrasonic Flowmeter 4022.669.98971
  • ASML 4022.636.73571 Zero Sensor Laser Box
  • ASML EO084D Shutter Socket PCB Card
  • PANalytical 402233010044 MPPC Power Supply Driver Unit
  • ASML 4022.631.26719 Load Port Module SEM-I-1310
  • ASML 4022.637.22711 Pneumatic Assembly
  • ASML 851-8942-001 Encoder Buffer PCB
  • ASML 859-0927-007 Lamp Power Compensation PCB Card
  • ASML 4022.639.86643 CDA IR1-NIR Solid State Laser 780nm
  • SVG ASML 28-43015-01 S90 Track CP Module
  • ASML 4022.471.75263 PCB Assembly
  • ASML 4022.637.22711 SEM-I-398 Controller Module