Connecting to Keysight M960XA-Series by Keysight in Python
Instrument Card
PXI source/measure units are the source and measurement resources of voltage and current for test applications requiring high accuracy, high resolution, and measurement flexibility
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 M960XA-Series in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Qcodes to connect to a Keysight M960XA-Series Power Meters:
import qcodes as qcfrom qcodes.instrument_drivers.Keysight.KeysightM960x import KeysightM960x
# Create an instance of the instrumentpower_meter = KeysightM960x("power_meter", address="TCPIP0::192.168.1.1::inst0::INSTR")
# Connect to the instrumentpower_meter.connect()
# Print the instrument IDprint(power_meter.get_idn())
# Set the output voltage levelpower_meter.voltage_level(1.0)
# Enable the outputpower_meter.output(True)
# Measure the currentcurrent = power_meter.measure_data()[1]print(f"Current: {current} A")
# Disable the outputpower_meter.output(False)
# Disconnect from the instrumentpower_meter.disconnect()
Note: Replace "TCPIP0::192.168.1.1::inst0::INSTR"
with the actual address of your power meter.