Skip to content

Connecting to Keysight M3202A by Keysight in Python

Instrument Card

Keysight’s M3202A PXIe arbitrary waveform generator offers 4 channels, on-board FPGA with optional software tools that enable real-time sequencing, inter-module synchronization, and graphical FPGA design environment.

Keysight M3202A

Device Specification: here

Manufacturer card: KEYSIGHT

KEYSIGHT

Keysight Technologies, or Keysight, is an American company that manufactures electronics test and measurement equipment and software

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

Connect to the Keysight M3202A in Python

PROTOCOLS > SCPI

To connect to a Keysight M3202A RF Signal Generator using Qcodes Community, you can use the following Python script:

from qcodes.instrument_drivers.Keysight.KeysightM3202A import M3202A
# Connect to the M3202A RF Signal Generator
awg = M3202A('awg', chassis=0, slot=2)
# Connect to the instrument
awg.connect()
# Now you can use the instrument for various operations
# For example, you can upload a waveform
waveform = [0, 0.1, 0.2, 0.3, 0.4, 0.5]
ref = awg.upload_waveform(waveform)
# Queue the waveform for output on channel 1
awg.awg_queue_waveform(1, ref, awg.SD_TriggerModes.EXTTRIG, 0, 1, 0)
# Disconnect from the instrument
awg.disconnect()

In the above code, we import the M3202A class from the qcodes.instrument_drivers.Keysight.KeysightM3202A module. Then, we create an instance of the M3202A class by providing the name, chassis number, and slot number of the RF Signal Generator. Finally, you can perform various operations on the awg object, such as calling its methods.

Note: Replace some_method() with the actual methods you want to use on the RF Signal Generator.