Skip to content

Connecting to Keysight 33510B by Keysight in Python

Instrument Card

The 33510B waveform generator provides Keysight’s exclusive Trueform technology which offers unmatched capabilities for generating a full range of signals for your most demanding measurements.

Keysight 33510B

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 33510B in Python

PROTOCOLS > SCPI

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

from qcodes.instrument_drivers.Keysight.Keysight_33XXX import WaveformGenerator_33XXX
# Create an instance of the instrument
signal_generator = WaveformGenerator_33XXX('signal_generator', 'TCPIP0::192.168.1.1::INSTR')
# Connect to the instrument
signal_generator.connect()
# Now you can use the instrument to control the RF Signal Generator
# For example, you can set the frequency and amplitude of the output channel
signal_generator.ch1.frequency(1e6) # Set the frequency to 1 MHz
signal_generator.ch1.amplitude(0.5) # Set the amplitude to 0.5 V
# You can also enable the output channel
signal_generator.ch1.output('ON')
# Disconnect from the instrument
signal_generator.disconnect()

This script creates an instance of the WaveformGenerator_33XXX class from the qcodes.instrument_drivers.Keysight.Keysight_33XXX module. It then connects to the instrument using the specified VISA resource address (TCPIP0::192.168.1.1::INSTR in this example).

Once connected, you can use the instrument instance to control the signal generator. In the example, it sets the frequency of channel 1 to 1 MHz using the frequency parameter of the ch1 submodule. It then reads the current frequency setting and prints it.

Finally, the script disconnects from the instrument using the disconnect method of the instrument instance.