Connecting to Keysight 3456A by HP in Python
Instrument Card
3456A 6 1/2 Digit Digital Multimeter
Device Specification: here
Manufacturer card: HP
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
Demo: Record voltage over time with an Agilent 34401A multimeter
Connect to the Keysight 3456A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
This script first imports the instrumentkit
module and then uses the open_gpibusb
method of the ik.keysight.Keysight3456A
class to connect to the multimeter. You’ll need to replace "/dev/ttyUSB0"
with the appropriate device path for your system.
Next, it sets the measurement mode to DC voltage using the mode
property of the multimeter object. In this example, we’re using the Mode.dcv
enum value.
Finally, it performs a measurement using the measure
method of the multimeter object and prints the result.
Note that this script assumes you have already installed the instrumentkit
library. If not, you can install it using pip install instrumentkit
.