Method to switch between front and rear terminals of the SourceMeter 2400 in the test program:
Given by PyMeasure Doc:
# Switch to rear input terminals
sourcemeter.use_rear_terminals()
# Switch back to front input terminals
sourcemeter.use_front_terminals()
PyMeasure Doc:
https://pymeasure.readthedocs.io/en/latest/api/instruments/keithley/keithley2400.html#pymeasure.instruments.keithley.Keithley2400.use_front_terminals
SCPI (Standard Commands for Programmable Instruments) command string :
# Switch to rear input terminals
sourcemeter.write(":ROUT:TERM REAR")
# Switch back to front input terminals
sourcemeter.write(":ROUT:TERM FRON[T]")
# Query the currently selected terminal
term = sourcemeter.ask(":ROUT:TERM?")
print("Current terminal:", term.strip())