Class PowerDriver

ClassList > PowerDriver

Inherited by the following classes: GenesysDriver, HMP4040Driver, Keithley2400Driver, Keithley2450Driver, Keithley2611BDriver, Keithley2612ADriver, Keithley6487Driver

Public Functions

Type Name
void AddReadFault ()
virtual bool AskPermissionToTurnOn (int)
bool ClearBuffer ()
INT Connect ()
virtual INT ConnectODB ()
bool Enabled ()
std::vector< float > GetCurrent () const
EQUIPMENT_INFO GetInfo ()
int GetNReadFaults ()
std::string GetName ()
INT GetReadStatus ()
std::vector< bool > GetState () const
std::vector< float > GetVoltage () const
virtual INT Init ()
bool Initialized () const
void Print ()
virtual INT ReadAll ()
float ReadCurrent (int index, INT & error)
int ReadESR (int index, INT & error)
virtual void ReadESRChanged ()
std::vector< std::string > ReadErrorQueue (int index, INT & error)
virtual std::string ReadIDCode (int index, INT & error)
void ReadLoop ()
WORD ReadQCGE (int index, INT & error)
bool ReadState (int index, INT & error)
float ReadVoltage (int index, INT & error)
void ResetNReadFaults ()
void SetInitialized ()
void StartReading ()
void UnsetInitialized ()
virtual std::string getDriverName ()
virtual ~PowerDriver ()

Protected Attributes

Type Name
std::vector< float > OVPlevel
std::vector< std::string > SourceMode
BaseClient * client
std::vector< float > current
std::vector< float > currentlimit
std::vector< float > demandcurrent
std::vector< float > demandvoltage
EQUIPMENT_INFO * info
std::vector< int > instrumentID
int n_read_faults
std::string name
std::mutex power_mutex
std::atomic< int > read
std::atomic< int > readonlythisindex
std::atomic< INT > readstatus
std::thread readthread
float relevantchange
midas::odb settings
std::vector< bool > state
std::atomic< int > stop
std::vector< float > temperature
midas::odb variables
std::vector< float > voltage

Protected Functions

Type Name
void CurrentLimitChanged ()
void DemandCurrentChanged ()
void DemandOVPLevelChanged ()
void DemandVoltageChanged ()
virtual std::string GenerateCommand (COMMAND_TYPE, float)
virtual std::string GenerateCommand (COMMAND_TYPE, int, float)
bool OPC ()
PowerDriver ()
PowerDriver (std::string n, EQUIPMENT_INFO * inf)
float Read (std::string cmd, INT & error)
float ReadCurrentLimit (int index, INT & error)
float ReadOVPLevel (int index, INT & error)
float ReadSetCurrent (int index, INT & error)
float ReadSetVoltage (int index, INT & error)
std::string ReadSourceMode (int index, INT & error)
bool SelectChannel (int ch)
bool Set (std::string cmd, INT & error)
void SetCurrent (int index, float value, INT & error)
void SetCurrentLimit (int index, float value, INT & error)
void SetOVPLevel (int index, float value, INT & error)
void SetState (int index, bool value, INT & error)
void SetStateChanged ()
void SetVoltage (int index, float value, INT & error)
void SourceCurrent (int, INT &)
void SourceModeChanged ()
void SourceVoltage (int, INT &)

Public Functions Documentation

function AddReadFault

inline void PowerDriver::AddReadFault () 

function AskPermissionToTurnOn

inline virtual bool PowerDriver::AskPermissionToTurnOn (
    int
) 

function ClearBuffer

bool PowerDriver::ClearBuffer () 

function Connect

INT PowerDriver::Connect () 

function ConnectODB

virtual INT PowerDriver::ConnectODB () 

function Enabled

bool PowerDriver::Enabled () 

function GetCurrent

inline std::vector< float > PowerDriver::GetCurrent () const

function GetInfo

inline EQUIPMENT_INFO PowerDriver::GetInfo () 

function GetNReadFaults

inline int PowerDriver::GetNReadFaults () 

function GetName

inline std::string PowerDriver::GetName () 

function GetReadStatus

inline INT PowerDriver::GetReadStatus () 

function GetState

inline std::vector< bool > PowerDriver::GetState () const

function GetVoltage

inline std::vector< float > PowerDriver::GetVoltage () const

function Init

inline virtual INT PowerDriver::Init () 

function Initialized

inline bool PowerDriver::Initialized () const

function Print

void PowerDriver::Print () 

function ReadAll

inline virtual INT PowerDriver::ReadAll () 

function ReadCurrent

float PowerDriver::ReadCurrent (
    int index,
    INT & error
) 

function ReadESR

int PowerDriver::ReadESR (
    int index,
    INT & error
) 

function ReadESRChanged

inline virtual void PowerDriver::ReadESRChanged () 

function ReadErrorQueue

std::vector< std::string > PowerDriver::ReadErrorQueue (
    int index,
    INT & error
) 

function ReadIDCode

virtual std::string PowerDriver::ReadIDCode (
    int index,
    INT & error
) 

function ReadLoop

void PowerDriver::ReadLoop () 

function ReadQCGE

WORD PowerDriver::ReadQCGE (
    int index,
    INT & error
) 

function ReadState

bool PowerDriver::ReadState (
    int index,
    INT & error
) 

function ReadVoltage

float PowerDriver::ReadVoltage (
    int index,
    INT & error
) 

function ResetNReadFaults

inline void PowerDriver::ResetNReadFaults () 

function SetInitialized

inline void PowerDriver::SetInitialized () 

function StartReading

inline void PowerDriver::StartReading () 

function UnsetInitialized

inline void PowerDriver::UnsetInitialized () 

function getDriverName

inline virtual std::string PowerDriver::getDriverName () 

function ~PowerDriver

virtual PowerDriver::~PowerDriver () 

Protected Attributes Documentation

variable OVPlevel

std::vector<float> PowerDriver::OVPlevel;

variable SourceMode

std::vector<std::string> PowerDriver::SourceMode;

variable client

BaseClient* PowerDriver::client;

variable current

std::vector<float> PowerDriver::current;

variable currentlimit

std::vector<float> PowerDriver::currentlimit;

variable demandcurrent

std::vector<float> PowerDriver::demandcurrent;

variable demandvoltage

std::vector<float> PowerDriver::demandvoltage;

variable info

EQUIPMENT_INFO* PowerDriver::info;

variable instrumentID

std::vector<int> PowerDriver::instrumentID;

variable n_read_faults

int PowerDriver::n_read_faults;

variable name

std::string PowerDriver::name;

variable power_mutex

std::mutex PowerDriver::power_mutex;

variable read

std::atomic<int> PowerDriver::read;

variable readonlythisindex

std::atomic<int> PowerDriver::readonlythisindex;

variable readstatus

std::atomic<INT> PowerDriver::readstatus;

variable readthread

std::thread PowerDriver::readthread;

variable relevantchange

float PowerDriver::relevantchange;

variable settings

midas::odb PowerDriver::settings;

variable state

std::vector<bool> PowerDriver::state;

variable stop

std::atomic<int> PowerDriver::stop;

variable temperature

std::vector<float> PowerDriver::temperature;

variable variables

midas::odb PowerDriver::variables;

variable voltage

std::vector<float> PowerDriver::voltage;

Protected Functions Documentation

function CurrentLimitChanged

void PowerDriver::CurrentLimitChanged () 

function DemandCurrentChanged

void PowerDriver::DemandCurrentChanged () 

function DemandOVPLevelChanged

void PowerDriver::DemandOVPLevelChanged () 

function DemandVoltageChanged

void PowerDriver::DemandVoltageChanged () 

function GenerateCommand [1/2]

virtual std::string PowerDriver::GenerateCommand (
    COMMAND_TYPE,
    float
) 

function GenerateCommand [2/2]

virtual std::string PowerDriver::GenerateCommand (
    COMMAND_TYPE,
    int,
    float
) 

function OPC

bool PowerDriver::OPC () 

function PowerDriver [1/2]

PowerDriver::PowerDriver () 

function PowerDriver [2/2]

PowerDriver::PowerDriver (
    std::string n,
    EQUIPMENT_INFO * inf
) 

function Read

float PowerDriver::Read (
    std::string cmd,
    INT & error
) 

function ReadCurrentLimit

float PowerDriver::ReadCurrentLimit (
    int index,
    INT & error
) 

function ReadOVPLevel

float PowerDriver::ReadOVPLevel (
    int index,
    INT & error
) 

function ReadSetCurrent

float PowerDriver::ReadSetCurrent (
    int index,
    INT & error
) 

function ReadSetVoltage

float PowerDriver::ReadSetVoltage (
    int index,
    INT & error
) 

function ReadSourceMode

std::string PowerDriver::ReadSourceMode (
    int index,
    INT & error
) 

function SelectChannel

bool PowerDriver::SelectChannel (
    int ch
) 

function Set

bool PowerDriver::Set (
    std::string cmd,
    INT & error
) 

function SetCurrent

void PowerDriver::SetCurrent (
    int index,
    float value,
    INT & error
) 

function SetCurrentLimit

void PowerDriver::SetCurrentLimit (
    int index,
    float value,
    INT & error
) 

function SetOVPLevel

void PowerDriver::SetOVPLevel (
    int index,
    float value,
    INT & error
) 

function SetState

void PowerDriver::SetState (
    int index,
    bool value,
    INT & error
) 

function SetStateChanged

void PowerDriver::SetStateChanged () 

function SetVoltage

void PowerDriver::SetVoltage (
    int index,
    float value,
    INT & error
) 

function SourceCurrent

void PowerDriver::SourceCurrent (
    int,
    INT &
) 

function SourceModeChanged

void PowerDriver::SourceModeChanged () 

function SourceVoltage

void PowerDriver::SourceVoltage (
    int,
    INT &
) 


The documentation for this class was generated from the following file midas_fe/power/PowerDriver.h