Skip to content

Connecting to Keysight M3201A by Keysight in Python

Instrument Card

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

Keysight M3201A

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 M3201A in Python

PROTOCOLS > SCPI

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

from qcodes.instrument_drivers.Keysight.Keysight_M3201A import Keysight_M3201A
# Create an instance of the instrument
awg = Keysight_M3201A('awg', chassis=1, slot=7)
# Connect to the instrument
awg.connect()
# Now you can use the instrument for various operations
# For example, you can set the output voltage of a channel
awg.channels[1].amplitude(0.5) # Set the amplitude of channel 1 to 0.5 V
# Disconnect from the instrument
awg.disconnect()

Note: Make sure you have the necessary dependencies installed, including Qcodes and the Keysight instrument drivers.