Power Supply Access

group Power_supply_access

Functions

BOOL SetPowerOn(API_HANDLE, const char *channel_name)

with this function mtf will switch on the power supply and take control of it. this function must be called before any control function below

Parameters:

channel_name – : channel name of power supply like defined in the config file (*.yaml)

Returns:

BOOL

BOOL SetPowerOff(API_HANDLE, const char *channel_name)

switch off the power supply and release control of it

Parameters:

channel_name – : channel name of power supply like defined in the config file (*.yaml)

Returns:

BOOL

BOOL SetVoltage(API_HANDLE, const char *channel_name, float value)

Set the Voltage on a given channel for the other type of I/O channels (i.e other than Power Supply) use method IoChannelSetCurrent.

Parameters:
  • channel_name – : channel name like defined in the config file (*.yaml)

  • value – : desired voltage as float

Returns:

BOOL

BOOL SetCurrent(API_HANDLE, const char *channel_name, float value)

Set the Current on the given Power supply channel for the other type of I/O channels (i.e other than Power Supply) use method IoChannelSetVoltage.

Parameters:
  • channel_name – : channel name like defined in the config file (*.yaml)

  • value – : desired current as float

Returns:

BOOL

float ReadCurrent(API_HANDLE, const char *channel_name)

get current value on a given Power supply channel

Parameters:

channel_name – : channel name like defined in the config file (*.yaml)

Returns:

float

float ReadVoltage(API_HANDLE, const char *channel_name)

get voltage value on a given Power supply channel

Parameters:

channel_name – : channel name like defined in the config file (*.yaml)

Returns:

float

BOOL TriggerPsSignal(API_HANDLE, const char *channel_name, int memory_slot)
BOOL StorePsSignalForm(API_HANDLE, const char *channel_name, PsSignalForm sig_form)