Skip to content

Connecting to Weinschel 8320 by Weinschel in Python

Instrument Card

Spectrum Control’s Weinschel brand Model 8320 Series Multi-channel Programmable Attenuator systems allow for multiple attenuator channels to be controlled across a variety of interfaces, or via a front panel.

Weinschel 8320

Device Specification: here

Manufacturer card: WEINSCHEL

WEINSCHEL

Weinschel Associates designs and manufactures high-quality Broadband RF and Microwave products for commercial and military markets domestically and internationally. Core technologies originated by founder Bruno Weinschel are leveraged using modern design, production, delivery, and service techniques to provide the best product at the best price to our customers.

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

Connect to the Weinschel 8320 in Python

PROTOCOLS > SCPI

To connect to a Weinschel 8320 Digital Attenuator using Qcodes, you can use the following Python script:

from qcodes.instrument.visa import VisaInstrument
# Create an instance of the Weinschel8320 instrument
weinschel = Weinschel8320('weinschel', 'your_visa_address')
# Connect to the instrument
weinschel.connect()
# Set the attenuation to 10 dB
weinschel.attenuation(10)
# Get the current attenuation value
attenuation_value = weinschel.attenuation()
# Print the current attenuation value
print(f"Current attenuation: {attenuation_value} dB")
# Disconnect from the instrument
weinschel.disconnect()

Make sure to replace 'your_visa_address' with the actual VISA address of your Weinschel 8320 Digital Attenuator.