Chroma.Source

Code author: Kevin Kennedy <protonyx@users.noreply.github.com>

Limitations

This driver does not include any of the device programming functionality, it is assumed that an automated program would be designed in a script that uses this driver.

class labtronyx.drivers.Chroma.Source.d_620XXP(resource, **kwargs)[source]

Driver for Chroma 6200P Series DC Power Supplies

disableRemoteInhibit()[source]

Disables the remote inhibit pin.

enableRemoteInhibit()[source]

Enables the remote inhibit pin. This behaves as an external ON/OFF control.

getCurrent()[source]

Get the output current level

Returns:float
getCurrentRange()[source]

Get the configured output current range

Returns:tuple (lower, upper)
getError()[source]

Returns the error message and code of the last error

:returns str

getProtection()[source]

Get the protection set points

Returns:dict with keys [‘Voltage’, ‘Current’, ‘Power’]
getTerminalCurrent()[source]

Get the measured current from the terminals of the instrument

Returns:float
getTerminalPower()[source]

Get the measured power from the terminals of the instrument

Returns:float
getTerminalVoltage()[source]

Get the measured voltage from the terminals of the instrument

Returns:float
getVoltage()[source]

Get the output voltage level

Returns:float
getVoltageRange()[source]

Get the configured output voltage range

Returns:tuple (lower, upper)
powerOff()[source]

Disables the output power connections.

powerOn()[source]

Enables the instrument to power the output

setCurrent(current)[source]

Set the output current level in Amps

Parameters:current (float) – Current (in Amps)
setCurrentRange(lower, upper)[source]

Set the output current range

Parameters:
  • lower (float) – Minimum Current (in Amps)
  • upper (float) – Maximum Current (in Amps)
setLocalControl()[source]

Sets the instrument in local control mode

setMaxCurrent(current)[source]

Set the maximum output current

Parameters:current (float) – Current (in Amps)
setMaxVoltage(voltage)[source]

Set the maximum output voltage

Parameters:voltage (float) – Voltage (in Volts)
setMeasurementAverage(avg)[source]

Set the number of readings to average.

Parameters:avg (int) – Number of times to average (1, 2, 4 or 8)
setMeasurementAverageMethod(avg)[source]

Set the number of readings to average.

Parameters:avg (str) – Method (‘FIX’ or ‘MOV’)
setMeasurementSpeed(speed)[source]

Set the reading speed of the voltage/current sensor

Parameters:speed (int) – Samples per second (one of: 30, 60, 120, 240)
setProtection(voltage=None, current=None, power=None)[source]

Enable the protection circuitry. If any of the parameters is zero, that protection is disabled.

Parameters:
  • voltage (float) – OVP Setting (in Volts)
  • current (float) – OCP Setting (in Amps)
  • power (float) – OPP Setting (in Watts)
setRemoteControl()[source]

Sets the instrument in remote control mode

setSlewRate(voltage=None, current=None)[source]

Set the voltage and current rise/fall time of the power supply. Units are Volts per milliseconds.

Parameters:
  • voltage (float) – Voltage Slew rate (in V/ms)
  • current (float) – Current Slew rate (in V/ms)
setVoltage(voltage)[source]

Set the programmed output voltage level

Parameters:voltage (float) – Voltage (in Volts)
setVoltageRange(lower, upper)[source]

Set the output voltage range.

Parameters:
  • lower (float) – Minimum Voltage (in Volts)
  • upper (float) – Maximum Voltage (in Volts)