Import
Methods
The Net-based API provides methods that can either get or set values. When called without a value parameter, methods read and return the current value. When called with a value, they set it.Method Reference
Net.get(name, type=NetType.ELoad)
Get an electronic load net by name.
Returns: Electronic load Net instance
mode(mode_type=None)
Set or read the operation mode.
Returns: Current mode string if
mode_type is None
current(value=None)
Set or read the constant current setting.
Returns: Current setting in amps if
value is None
voltage(value=None)
Set or read the constant voltage setting.
resistance(value=None)
Set or read the constant resistance setting. Values below 0.02 ohms are at the
minimum range limit of the instrument, and the instrument can clamp them. It prints
a warning to the box’s hardware-service log when the applied value differs from the
requested value.
power(value=None)
Set or read the constant power setting.
enable() / disable()
Enable or disable the electronic load input.
print_state()
Print comprehensive electronic load state. The text goes to the box’s hardware-service log,
not to your script, and the call returns None. In a script, use get_state_dict(). See #845.
get_state_dict()
Return the full electronic load state as a dict.
get_input_state()
Return True when the input is on. An unrecognized reply reads as False.
measured_voltage() / measured_current() / measured_power()
Read actual measured values (return floats, for use in code).
float - Measured value
Load Modes
Examples
Constant Current Test
Battery Discharge Test
Power Efficiency Test
Supported Hardware
Notes
- Use
mode()to set the operation mode before setting the corresponding value - Methods like
current(),voltage(),resistance(),power()can get or set values measured_voltage(),measured_current(),measured_power()return actual measurementsprint_state()prints to the box’s hardware-service log;get_state_dict()and the measurement methods return values (for code)- Always call
enable()to start sinking current - Always call
disable()when finished - The instrument can clamp resistance values below 0.02 ohms

