Connecting to Keysight 33521A by Agilent in Python
Instrument Card
Keysight 33500 Series function/arbitrary waveform generators offer the highest signal fidelity and implement a new breakthrough technology that provides you with the ability to generate more accurate arbitrary waveforms. With 10x better jitter than anything in their class, they offer unparalleled control of signal frequency for your most challenging measurements.
Device Specification: here
Manufacturer card: AGILENT
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 33521A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from pymeasure.adapters import VISAAdapterfrom pymeasure.instruments import Agilent33500
# Create a VISA adapter for the instrumentadapter = VISAAdapter("GPIB::1")
# Connect to the instrumentinstrument = Agilent33500(adapter)
# Set the output waveform shape to sineinstrument.shape = "SIN"
# Set the frequency to 1 kHzinstrument.frequency = 1e3
# Set the amplitude to 1 Vppinstrument.amplitude = 1
# Enable the outputinstrument.output = True
# Disconnect from the instrumentinstrument.disconnect()
This script connects to the instrument using a VISA adapter and creates an instance of the Agilent33500
class. It then sets the output waveform shape to sine, frequency to 1 kHz, amplitude to 1 Vpp, and enables the output. Finally, it disconnects from the instrument.
Note: Make sure to replace "GPIB::1"
with the appropriate address of your Keysight 33521A RF Signal Generator.