Astron 2l Manual: Mks

# ------------------------------------------------------------------ # 4. Turn output on # ------------------------------------------------------------------ inst.write("OUTP ON")

# ------------------------------------------------------------------ # 1. Open a VISA resource (USB‑TMC in this example) # ------------------------------------------------------------------ rm = pyvisa.ResourceManager() inst = rm.open_resource('USB0::0x1234::0x5678::A1234567::INSTR') # Replace with your IDN mks astron 2l manual

# ------------------------------------------------------------------ # 2. Basic identification # ------------------------------------------------------------------ print("Instrument ID:", inst.query("*IDN?")) mks astron 2l manual

import pyvisa

# ------------------------------------------------------------------ # 3. Set parameters # ------------------------------------------------------------------ desired_voltage = 1500.0 # volts desired_current = 0.5 # mA mks astron 2l manual

(Full error‑code list and detailed reset procedures are in Chapter 4 of the manual.) Below is a minimal script that demonstrates how to set voltage, current, and read back the actual values using PyVISA .