devices.caenels:CAENelsEasyDriver

Interface class for CAEN ELS EasyDriver power supply.

Usage

Source

devices.caenels:CAENelsEasyDriver(
    interface,
    **kwargs,
)

Provides methods to control and monitor CAEN ELS EasyDriver power supplies through a VISA interface.

Methods

Name Description
__init__() Initialize the CAEN ELS EasyDriver.
fetchStatus() Get the device status.
getCurrent() Get the current output current value.
getCurrentSetpoint() Get the current setpoint.
getDCVoltage() Get the bulk DC voltage.
getFault() Check if the module is in fault mode (short circuit).
getID() Get the module ID.
getOutputState() Check if the output is on or off.
getRampSlewRate() Get the configured ramp slew rate.
getVoltage() Get the output voltage.
resetModule() Reset the module after a fault (short circuit).
setCurrent() Set the output current abruptly (no ramp).
setOff() Turn the output off.
setOn() Turn the output on.
setOutput() Set the output current on or off.
setRampCurrent() Set the output current with a linear ramp to setpoint.
setRampSlewRate() Set the ramp slew rate.

__init__()

Initialize the CAEN ELS EasyDriver.

Usage

Source

__init__(
    interface,
    **kwargs,
)

Parameters

interface: str

VISA resource name of the device

**kwargs: dict
Additional arguments passed to VisaDevice

fetchStatus()

Get the device status.

Usage

Source

fetchStatus()

Returns

tuple
A tuple containing: - str: 8-bit binary number as a string where: - bit 0: ouput (1=on, 0=off) - bit 1: fault (1=yes, 0=no) - bit 2: DC link undervoltage - bit 3: mosfet temperature - bit 4: shunt temperature - bit 5: external interlock flag - bit 6: reserved - bit 7: reserved - float: output current

getCurrent()

Get the current output current value.

Usage

Source

getCurrent()

Returns

float
The output current in amps

getCurrentSetpoint()

Get the current setpoint.

Usage

Source

getCurrentSetpoint()

Returns

float
The current setpoint in amps

getDCVoltage()

Get the bulk DC voltage.

Usage

Source

getDCVoltage()

Returns

float
The bulk DC voltage in volts

getFault()

Check if the module is in fault mode (short circuit).

Usage

Source

getFault()

Returns

bool
True if fault detected, False otherwise

getID()

Get the module ID.

Usage

Source

getID()

Returns

str
The module identification string

getOutputState()

Check if the output is on or off.

Usage

Source

getOutputState()

Returns

bool
True if output is on, False if output is off

getRampSlewRate()

Get the configured ramp slew rate.

Usage

Source

getRampSlewRate()

Returns

float
The ramp slew rate

getVoltage()

Get the output voltage.

Usage

Source

getVoltage()

Returns

float
The output voltage in volts

resetModule()

Reset the module after a fault (short circuit).

Usage

Source

resetModule()

setCurrent()

Set the output current abruptly (no ramp).

Usage

Source

setCurrent(current)

Parameters

current: float
The current value to set in amps

setOff()

Turn the output off.

Usage

Source

setOff()

setOn()

Turn the output on.

Usage

Source

setOn()

setOutput()

Set the output current on or off.

Usage

Source

setOutput(output=None)

Parameters

output: bool = None
True to turn output on, False to turn it off

setRampCurrent()

Set the output current with a linear ramp to setpoint.

Usage

Source

setRampCurrent(current)

Parameters

current: float
The target current value in amps

setRampSlewRate()

Set the ramp slew rate.

Usage

Source

setRampSlewRate(slewrate)

Parameters

slewrate: float
The slew rate value to set