Skip to content

Connecting to AFG3000 by Tektronix in Python

Instrument Card

Unmatched performance, versatility, intuitive operation, and affordability make the AFG3000 Series of Function, Arbitrary Waveform, and Pulse Generators the most useful instruments in the industry.

Users can choose from 12 different standard waveforms. Arbitrary waveforms can be generated up to 128 K in length at high sampling rates. On pulse waveforms, leading and trailing edge time can be set independently. External signals can be connected and added to the output signal. Dual-channel models can generate two identical or completely different signals. All instruments feature a highly stable time base with only ±1 ppm drift per year.

A large screen shows all relevant waveform parameters and graphical wave shape at a single glance. This gives full confidence in the signal settings and lets you focus on the task at hand. Shortcut keys provide direct access to frequently used functions and parameters. Others can be selected conveniently through clearly structured menus. This reduces the time needed for learning and relearning how to use the instrument. Look and feel are identical to the world’s most popular TDS3000 Oscilloscopes.

AFG3000

Device Specification: here

Manufacturer card: TEKTRONIX

TEKTRONIX

Tektronix, Inc., historically widely known as Tek, is an American company best known for manufacturing test and measurement devices such as oscilloscopeslogic analyzers, and video and mobile test protocol equipment.

  • Headquarters: USA
  • Yearly Revenue (millions, USD): 5800
  • Vendor Website: here

Connect to the AFG3000 in Python

PROTOCOLS > SCPI

To connect to an AFG3000 Function Generator using Qcodes, you can use the following Python script:

from qcodes import Station, Instrument
from qcodes.instrument_drivers.tektronix.AFG3000 import AFG3000
# Create a station to hold the instruments
station = Station()
# Connect to the AFG3000 Function Generator
afg = AFG3000('afg', 'TCPIP0::192.168.1.1::inst0::INSTR')
station.add_component(afg)
# Print the available parameters of the AFG3000
print(afg.parameters)
# Set the trigger mode to 'TRIG'
afg.trigger_mode('TRIG')
# Set the output impedance of channel 1 to 50 Ohm
afg.impedance_output1(50)
# Set the amplitude modulation depth of channel 2 to 10%
afg.am_depth2(10)
# Close the connection to the instruments
station.close_all_registered_instruments()

This script creates a Station object to hold the instruments, then connects to the AFG3000 Function Generator using the AFG3000 driver. The AFG3000 instrument is added to the station, and its available parameters are printed. The script then sets the trigger mode to ‘TRIG’ and the output impedance of channel 1 to 50 Ohm. Finally, it sets the amplitude modulation depth of channel 2 to 10%. The connection to the instruments is closed at the end of the script.

Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR' with the actual address of your AFG3000 Function Generator.