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.
Device Specification: here
Manufacturer card: 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
Read our guide for turning Python scripts into Flojoy nodes.
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 instrumentsignal_generator = WaveformGenerator_33XXX('signal_generator', 'TCPIP0::192.168.1.1::INSTR')
# Connect to the instrumentsignal_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 channelsignal_generator.ch1.frequency(1e6) # Set the frequency to 1 MHzsignal_generator.ch1.amplitude(0.5) # Set the amplitude to 0.5 V
# You can also enable the output channelsignal_generator.ch1.output('ON')
# Disconnect from the instrumentsignal_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.