Power Supply KA3005 module

Created on Fri Dec 10 11:35:57 2021

@author: Martin.Mihaylov

class KA3005.KA3005(psu_com)[source]

Bases: object

Close()[source]
ask_Amp()[source]
Returns:

current set.

Return type:

TYPE float

ask_Status()[source]
Returns:

Get the state of the output and CC/CV

Return type:

TYPE

ask_Volt()[source]
Returns:

Voltage set.

Return type:

TYPE float

getIdn()[source]
Returns:

Instrument identification

Return type:

TYPE str

get_data()[source]
Returns:

OutPut – Return a dictionary with the measured voltage and current.

Return type:

dict

isConnected = False
psu_com = None
read_Amp()[source]
Returns:

Current measured

Return type:

TYPE float

read_Volt()[source]
Returns:

Voltage Measured

Return type:

TYPE float

serWriteAndRecieve(data, delay=0.05)[source]
set_Amp(amp, delay=0.01)[source]
Parameters:
  • amp (int/float) – Set the current on the Display

  • delay (0.01s Delay)

Return type:

None

set_Ocp(state)[source]
Parameters:

state (str (ON/OFF)) – Set the state of the overcurrent protection ON and OFF

Return type:

None.

set_Out(state)[source]
Parameters:

state (str (ON/OFF)) – Turn Output ON and OFF

Return type:

None.

set_Volt(voltage, delay=0.01)[source]
Parameters:
  • voltage (int/float) – Set the voltage on the Display

  • delay (0.01s Delay)

Return type:

None

status = {}