TwiceAsNice  2019-02-18
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
Basda::Tempo::PfeifferDualGaugeTPG262 Class Reference

#include <PfeifferDualGaugeTPG262.h>

Collaboration diagram for Basda::Tempo::PfeifferDualGaugeTPG262:
Collaboration graph

Public Member Functions

 PfeifferDualGaugeTPG262 ()
 
 PfeifferDualGaugeTPG262 (std::string connection, bool create)
 
virtual ~PfeifferDualGaugeTPG262 ()
 
void createChatLine (const std::string &connection)
 
void createChatLine ()
 
void closeChatLine ()
 function to close the chat line connection to the device More...
 
std::string getAnswer ()
 
void queryPR (int input, int &status, double &value)
 function to get a single pressure reading from a selected input More...
 
void queryPRX (int &status1, int &status2, double &value1, double &value2)
 function to get a single reading of both inputs More...
 
void startCOM (int mode)
 function to start the continuous mode for the DGauge More...
 
std::vector< std::string > readContinuously ()
 function that reads out the values of the two inputs in a continuous mode. More...
 
void setSEN (int set1, int set2, int &mode1, int &mode2)
 function to enable or disable the sensors and read the changes More...
 
void querySEN (int &mode1, int &mode2)
 function to get current mode set More...
 
void queryTID (std::string &type1, std::string &type2)
 function to identify the sensor types More...
 
void gaugeSCT (int &display)
 function for the display channel More...
 
void queryERR (std::string &errorcode)
 function to get the error status More...
 
void setRES (bool erase, std::string &error)
 function to reset the readings and erase queued errors More...
 
void querysetSP (int function, int &channel, double &lower, double &upper)
 function for the threshold parameters and the switching function More...
 
void querySPS (std::vector< int > &statusvector)
 function to get the status of a switching function More...
 
void querysetFIL (int &time1, int &time2)
 function for the filter time constant More...
 
void querysetCAL (double &factor1, double &factor2)
 function for the calibration factor More...
 
void querysetFSR (int &head1, int &head2)
 function for the measurement window for linear sensors More...
 
void querysetOFC (int &head1, int &head2)
 function for offset correction status for linear sensors More...
 
void querysetOFD (double &head1, double &head2)
 function for the current offset for linear sensors More...
 
void querysetPUC (int &head1, int &head2)
 function for the status of the penning under range control More...
 
void querysetDGS (int &head1, int &head2)
 function for the degas status More...
 
void querysetSC (int head, int &sourceOn, int &sourceOff, double &valOn, double &valOff)
 function for the sensor control More...
 
void querysetUNI (int &unit)
 function for the unit More...
 
void querysetBAUD (int &baud)
 function for the baud rate More...
 
void querysetDCD (int &digits)
 function for the display control digits More...
 
void setSAV (int save)
 function to store to the EEPROM More...
 
void querysetDIC (int &type)
 function for the display control More...
 
void queryPNR (std::string &version)
 get firmware version More...
 
void querysetWDT (int &dogtype)
 watchdog More...
 
void querysetTLC (int &status)
 torrlock More...
 
void querysetLOC (int &status)
 parameter setup lock More...
 
void testRAM (std::string &error)
 RAM testing. More...
 
void testEPR (std::string &error, std::string &checksum)
 EPROM testing. More...
 
void testEEP (std::string &error)
 EEPROM testing. More...
 
void testDIS (int &status)
 display testing More...
 
void testADC (std::vector< double > &status)
 ADC testing. More...
 
void testIOT (int &status, std::string &relay)
 IO testing. More...
 
void testTKB (std::vector< bool > &pressed)
 keyboard testing More...
 
void testRST ()
 RS232 testing. More...
 
void setSetMode (bool enable)
 function to enable/disable set mode More...
 
 PfeifferDualGaugeTPG262 ()
 
 PfeifferDualGaugeTPG262 (std::string connection, bool create)
 
virtual ~PfeifferDualGaugeTPG262 ()
 
void createChatLine (const std::string &connection)
 
void createChatLine ()
 
void closeChatLine ()
 function to close the chat line connection to the device More...
 
std::string getAnswer ()
 
void queryPR (int input, int &status, double &value)
 function to get a single pressure reading from a selected input More...
 
void queryPRX (int &status1, int &status2, double &value1, double &value2)
 function to get a single reading of both inputs More...
 
void startCOM (int mode)
 function to start the continuous mode for the DGauge More...
 
std::vector< std::string > readContinuously ()
 function that reads out the values of the two inputs in a continuous mode. More...
 
void setSEN (int set1, int set2, int &mode1, int &mode2)
 function to enable or disable the sensors and read the changes More...
 
void querySEN (int &mode1, int &mode2)
 function to get current mode set More...
 
void queryTID (std::string &type1, std::string &type2)
 function to identify the sensor types More...
 
void gaugeSCT (int &display)
 function for the display channel More...
 
void queryERR (std::string &errorcode)
 function to get the error status More...
 
void setRES (bool erase, std::string &error)
 function to reset the readings and erase queued errors More...
 
void querysetSP (int function, int &channel, double &lower, double &upper)
 function for the threshold parameters and the switching function More...
 
void querySPS (std::vector< int > &statusvector)
 function to get the status of a switching function More...
 
void querysetFIL (int &time1, int &time2)
 function for the filter time constant More...
 
void querysetCAL (double &factor1, double &factor2)
 function for the calibration factor More...
 
void querysetFSR (int &head1, int &head2)
 function for the measurement window for linear sensors More...
 
void querysetOFC (int &head1, int &head2)
 function for offset correction status for linear sensors More...
 
void querysetOFD (double &head1, double &head2)
 function for the current offset for linear sensors More...
 
void querysetPUC (int &head1, int &head2)
 function for the status of the penning under range control More...
 
void querysetDGS (int &head1, int &head2)
 function for the degas status More...
 
void querysetSC (int head, int &sourceOn, int &sourceOff, double &valOn, double &valOff)
 function for the sensor control More...
 
void querysetUNI (int &unit)
 function for the unit More...
 
void querysetBAUD (int &baud)
 function for the baud rate More...
 
void querysetDCD (int &digits)
 function for the display control digits More...
 
void setSAV (int save)
 function to store to the EEPROM More...
 
void querysetDIC (int &type)
 function for the display control More...
 
void queryPNR (std::string &version)
 get firmware version More...
 
void querysetWDT (int &dogtype)
 watchdog More...
 
void querysetTLC (int &status)
 torrlock More...
 
void querysetLOC (int &status)
 parameter setup lock More...
 
void testRAM (std::string &error)
 RAM testing. More...
 
void testEPR (std::string &error, std::string &checksum)
 EPROM testing. More...
 
void testEEP (std::string &error)
 EEPROM testing. More...
 
void testDIS (int &status)
 display testing More...
 
void testADC (std::vector< double > &status)
 ADC testing. More...
 
void testIOT (int &status, std::string &relay)
 IO testing. More...
 
void testTKB (std::vector< bool > &pressed)
 keyboard testing More...
 
void testRST ()
 RS232 testing. More...
 
void setSetMode (bool enable)
 function to enable/disable set mode More...
 

Protected Member Functions

int sendMsg (const std::string &msg)
 this function sends a specific command to the device More...
 
void readMsg (std::string &rcv)
 this function reads the answer from the device More...
 
int sendMsg (const std::string &msg)
 this function sends a specific command to the device More...
 
void readMsg (std::string &rcv)
 this function reads the answer from the device More...
 

Protected Attributes

bool m_setMode
 boolean to indicate whether set mode or get mode of the functions should be used More...
 
int m_continuousMode
 current continuous mode set to the device More...
 

Private Member Functions

void setConnection (std::string connection)
 this function is used to set the m_IpInfo variable to a specific string More...
 
void setConnection (std::string connection)
 this function is used to set the m_IpInfo variable to a specific string More...
 

Private Attributes

Nice::ChatLine m_chat
 the member chatline used for the communication More...
 
std::string m_connection
 this string contains the connection informations (ip adress, port) to build the chatLine More...
 
bool m_isConnected
 this boolean indicates if there is an active connection to a device More...
 
std::string m_answer
 this string contains the latest answer from the device More...
 
std::string m_term
 this string contains the current terminators for the sending of the commands More...
 

Constructor & Destructor Documentation

◆ PfeifferDualGaugeTPG262() [1/4]

Basda::Tempo::PfeifferDualGaugeTPG262::PfeifferDualGaugeTPG262 ( )

◆ PfeifferDualGaugeTPG262() [2/4]

Basda::Tempo::PfeifferDualGaugeTPG262::PfeifferDualGaugeTPG262 ( std::string  connection,
bool  create 
)

◆ ~PfeifferDualGaugeTPG262() [1/2]

Basda::Tempo::PfeifferDualGaugeTPG262::~PfeifferDualGaugeTPG262 ( )
virtual

◆ PfeifferDualGaugeTPG262() [3/4]

Basda::Tempo::PfeifferDualGaugeTPG262::PfeifferDualGaugeTPG262 ( )

◆ PfeifferDualGaugeTPG262() [4/4]

Basda::Tempo::PfeifferDualGaugeTPG262::PfeifferDualGaugeTPG262 ( std::string  connection,
bool  create 
)

◆ ~PfeifferDualGaugeTPG262() [2/2]

virtual Basda::Tempo::PfeifferDualGaugeTPG262::~PfeifferDualGaugeTPG262 ( )
virtual

Member Function Documentation

◆ closeChatLine() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::closeChatLine ( )

function to close the chat line connection to the device

◆ closeChatLine() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::closeChatLine ( )

function to close the chat line connection to the device

◆ createChatLine() [1/4]

void Basda::Tempo::PfeifferDualGaugeTPG262::createChatLine ( const std::string &  connection)

◆ createChatLine() [2/4]

void Basda::Tempo::PfeifferDualGaugeTPG262::createChatLine ( const std::string &  connection)

◆ createChatLine() [3/4]

void Basda::Tempo::PfeifferDualGaugeTPG262::createChatLine ( )

◆ createChatLine() [4/4]

void Basda::Tempo::PfeifferDualGaugeTPG262::createChatLine ( )

◆ gaugeSCT() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::gaugeSCT ( int &  display)

function for the display channel

Parameters
displayspecifies the sensor to be used at the display

◆ gaugeSCT() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::gaugeSCT ( int &  display)

function for the display channel

Parameters
displayspecifies the sensor to be used at the display

◆ getAnswer() [1/2]

std::string Basda::Tempo::PfeifferDualGaugeTPG262::getAnswer ( )
inline

◆ getAnswer() [2/2]

std::string Basda::Tempo::PfeifferDualGaugeTPG262::getAnswer ( )
inline

◆ queryERR() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryERR ( std::string &  errorcode)

function to get the error status

Parameters
errorcodethe error code

◆ queryERR() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryERR ( std::string &  errorcode)

function to get the error status

Parameters
errorcodethe error code

◆ queryPNR() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryPNR ( std::string &  version)

get firmware version

Parameters
versionfirmware number

◆ queryPNR() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryPNR ( std::string &  version)

get firmware version

Parameters
versionfirmware number

◆ queryPR() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryPR ( int  input,
int &  status,
double &  value 
)

function to get a single pressure reading from a selected input

Parameters
inputspecifies the input
statusstatus of the reading
valuethe value of the reading

◆ queryPR() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryPR ( int  input,
int &  status,
double &  value 
)

function to get a single pressure reading from a selected input

Parameters
inputspecifies the input
statusstatus of the reading
valuethe value of the reading

◆ queryPRX() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryPRX ( int &  status1,
int &  status2,
double &  value1,
double &  value2 
)

function to get a single reading of both inputs

Parameters
status1status of the first reading
status2status of the second reading
value1value of sensor 1
value2value of sensor 2

◆ queryPRX() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryPRX ( int &  status1,
int &  status2,
double &  value1,
double &  value2 
)

function to get a single reading of both inputs

Parameters
status1status of the first reading
status2status of the second reading
value1value of sensor 1
value2value of sensor 2

◆ querySEN() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querySEN ( int &  mode1,
int &  mode2 
)

function to get current mode set

Parameters
mode1current mode of sensor 1
mode2current mode of sensor 2

◆ querySEN() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querySEN ( int &  mode1,
int &  mode2 
)

function to get current mode set

Parameters
mode1current mode of sensor 1
mode2current mode of sensor 2

◆ querysetBAUD() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetBAUD ( int &  baud)

function for the baud rate

Parameters
baudthe baud rate used
Note
0: 9600 (standard), 1: 19200, 2: 38400

◆ querysetBAUD() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetBAUD ( int &  baud)

function for the baud rate

Parameters
baudthe baud rate used
Note
0: 9600 (standard), 1: 19200, 2: 38400

◆ querysetCAL() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetCAL ( double &  factor1,
double &  factor2 
)

function for the calibration factor

Parameters
factor1factor for sensor 1 (log. 0.100-9.990, lin. 0.500-2.000)
factor2factor for sensor 2 (log. 0.100-9.990, lin. 0.500-2.000)

◆ querysetCAL() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetCAL ( double &  factor1,
double &  factor2 
)

function for the calibration factor

Parameters
factor1factor for sensor 1 (log. 0.100-9.990, lin. 0.500-2.000)
factor2factor for sensor 2 (log. 0.100-9.990, lin. 0.500-2.000)

◆ querysetDCD() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetDCD ( int &  digits)

function for the display control digits

Parameters
digitsnumber of digits
Note
2: x.x, 3: x.xx

◆ querysetDCD() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetDCD ( int &  digits)

function for the display control digits

Parameters
digitsnumber of digits
Note
2: x.x, 3: x.xx

◆ querysetDGS() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetDGS ( int &  head1,
int &  head2 
)

function for the degas status

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetDGS() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetDGS ( int &  head1,
int &  head2 
)

function for the degas status

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetDIC() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetDIC ( int &  type)

function for the display control

Parameters
typetype of display control (0=manual, 1=auto)

◆ querysetDIC() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetDIC ( int &  type)

function for the display control

Parameters
typetype of display control (0=manual, 1=auto)

◆ querysetFIL() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetFIL ( int &  time1,
int &  time2 
)

function for the filter time constant

Parameters
time1time constant of the filter of sensor 1
time2time constant of the filter of sensor 2
Note
0: fast, 1: medium, 2: slow

◆ querysetFIL() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetFIL ( int &  time1,
int &  time2 
)

function for the filter time constant

Parameters
time1time constant of the filter of sensor 1
time2time constant of the filter of sensor 2
Note
0: fast, 1: medium, 2: slow

◆ querysetFSR() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetFSR ( int &  head1,
int &  head2 
)

function for the measurement window for linear sensors

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetFSR() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetFSR ( int &  head1,
int &  head2 
)

function for the measurement window for linear sensors

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetLOC() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetLOC ( int &  status)

parameter setup lock

Parameters
statusstatus of the lock

◆ querysetLOC() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetLOC ( int &  status)

parameter setup lock

Parameters
statusstatus of the lock

◆ querysetOFC() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetOFC ( int &  head1,
int &  head2 
)

function for offset correction status for linear sensors

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetOFC() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetOFC ( int &  head1,
int &  head2 
)

function for offset correction status for linear sensors

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetOFD() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetOFD ( double &  head1,
double &  head2 
)

function for the current offset for linear sensors

Parameters
head1offset for sensor 1
head2offset for sensor 2

◆ querysetOFD() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetOFD ( double &  head1,
double &  head2 
)

function for the current offset for linear sensors

Parameters
head1offset for sensor 1
head2offset for sensor 2

◆ querysetPUC() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetPUC ( int &  head1,
int &  head2 
)

function for the status of the penning under range control

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetPUC() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetPUC ( int &  head1,
int &  head2 
)

function for the status of the penning under range control

Parameters
head1setting for sensor 1
head2setting for sensor 2

◆ querysetSC() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetSC ( int  head,
int &  sourceOn,
int &  sourceOff,
double &  valOn,
double &  valOff 
)

function for the sensor control

Parameters
headspecifies the controlled sensor (1-2)
sourceOnsource for switching on control
sourceOffsource for switching off control
valOnvalue for switching on
valOffvalue for switching off

◆ querysetSC() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetSC ( int  head,
int &  sourceOn,
int &  sourceOff,
double &  valOn,
double &  valOff 
)

function for the sensor control

Parameters
headspecifies the controlled sensor (1-2)
sourceOnsource for switching on control
sourceOffsource for switching off control
valOnvalue for switching on
valOffvalue for switching off

◆ querysetSP() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetSP ( int  function,
int &  channel,
double &  lower,
double &  upper 
)

function for the threshold parameters and the switching function

Parameters
functionspecifies the switching function (1-4)
channelspecifies the channel the function applies to
lowerlower threshold
upperupper threshold

◆ querysetSP() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetSP ( int  function,
int &  channel,
double &  lower,
double &  upper 
)

function for the threshold parameters and the switching function

Parameters
functionspecifies the switching function (1-4)
channelspecifies the channel the function applies to
lowerlower threshold
upperupper threshold

◆ querysetTLC() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetTLC ( int &  status)

torrlock

Parameters
statusstatus of the lock

◆ querysetTLC() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetTLC ( int &  status)

torrlock

Parameters
statusstatus of the lock

◆ querysetUNI() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetUNI ( int &  unit)

function for the unit

Parameters
unitthe unit used
Note
0: mbar/bar (standard), 1: Torr, 2: Pascal

◆ querysetUNI() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetUNI ( int &  unit)

function for the unit

Parameters
unitthe unit used
Note
0: mbar/bar (standard), 1: Torr, 2: Pascal

◆ querysetWDT() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetWDT ( int &  dogtype)

watchdog

Parameters
dogtypetype of watchdog

◆ querysetWDT() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querysetWDT ( int &  dogtype)

watchdog

Parameters
dogtypetype of watchdog

◆ querySPS() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querySPS ( std::vector< int > &  statusvector)

function to get the status of a switching function

Parameters
statusvectorthe status vector

◆ querySPS() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::querySPS ( std::vector< int > &  statusvector)

function to get the status of a switching function

Parameters
statusvectorthe status vector

◆ queryTID() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryTID ( std::string &  type1,
std::string &  type2 
)

function to identify the sensor types

Parameters
type1type of sensor 1
type2type of sensor 2

◆ queryTID() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::queryTID ( std::string &  type1,
std::string &  type2 
)

function to identify the sensor types

Parameters
type1type of sensor 1
type2type of sensor 2

◆ readContinuously() [1/2]

std::vector< std::string > Basda::Tempo::PfeifferDualGaugeTPG262::readContinuously ( )

function that reads out the values of the two inputs in a continuous mode.

The function has to be stopped manually by pressing the "escape" key.

Returns
the reading of the two sensors.
Note
the parameter will be altered with every new reading

◆ readContinuously() [2/2]

std::vector<std::string> Basda::Tempo::PfeifferDualGaugeTPG262::readContinuously ( )

function that reads out the values of the two inputs in a continuous mode.

The function has to be stopped manually by pressing the "escape" key.

Returns
the reading of the two sensors.
Note
the parameter will be altered with every new reading

◆ readMsg() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::readMsg ( std::string &  rcv)
protected

this function reads the answer from the device

Parameters
rcvanswer from the device

◆ readMsg() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::readMsg ( std::string &  rcv)
protected

this function reads the answer from the device

Parameters
rcvanswer from the device

◆ sendMsg() [1/2]

int Basda::Tempo::PfeifferDualGaugeTPG262::sendMsg ( const std::string &  msg)
protected

this function sends a specific command to the device

Parameters
msgmessage to send
Returns
number of chars sent

◆ sendMsg() [2/2]

int Basda::Tempo::PfeifferDualGaugeTPG262::sendMsg ( const std::string &  msg)
protected

this function sends a specific command to the device

Parameters
msgmessage to send
Returns
number of chars sent

◆ setConnection() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setConnection ( std::string  connection)
private

this function is used to set the m_IpInfo variable to a specific string

◆ setConnection() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setConnection ( std::string  connection)
private

this function is used to set the m_IpInfo variable to a specific string

◆ setRES() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setRES ( bool  erase,
std::string &  error 
)

function to reset the readings and erase queued errors

Parameters
erasespecifies whether errors should be erased
errorstring with queued errors

◆ setRES() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setRES ( bool  erase,
std::string &  error 
)

function to reset the readings and erase queued errors

Parameters
erasespecifies whether errors should be erased
errorstring with queued errors

◆ setSAV() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setSAV ( int  save)

function to store to the EEPROM

Parameters
savespecifies the parameters to be saved (0=default parameters, 1=user parameters)

◆ setSAV() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setSAV ( int  save)

function to store to the EEPROM

Parameters
savespecifies the parameters to be saved (0=default parameters, 1=user parameters)

◆ setSEN() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setSEN ( int  set1,
int  set2,
int &  mode1,
int &  mode2 
)

function to enable or disable the sensors and read the changes

Parameters
set1mode change for sensor 1
set2mode change for sensor 2
mode1current mode of sensor 1
mode2current mode of sensor 2

◆ setSEN() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setSEN ( int  set1,
int  set2,
int &  mode1,
int &  mode2 
)

function to enable or disable the sensors and read the changes

Parameters
set1mode change for sensor 1
set2mode change for sensor 2
mode1current mode of sensor 1
mode2current mode of sensor 2

◆ setSetMode() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setSetMode ( bool  enable)

function to enable/disable set mode

Parameters
enableenable=true, disable=false

◆ setSetMode() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::setSetMode ( bool  enable)

function to enable/disable set mode

Parameters
enableenable=true, disable=false

◆ startCOM() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::startCOM ( int  mode)

function to start the continuous mode for the DGauge

Parameters
modetime mode for the readings

◆ startCOM() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::startCOM ( int  mode)

function to start the continuous mode for the DGauge

Parameters
modetime mode for the readings

◆ testADC() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testADC ( std::vector< double > &  status)

ADC testing.

Parameters
statusthe status of the ADC channels

◆ testADC() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testADC ( std::vector< double > &  status)

ADC testing.

Parameters
statusthe status of the ADC channels

◆ testDIS() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testDIS ( int &  status)

display testing

Parameters
statusthe testing status
Note
0: stop testing, 1: start testing all LEDs on

◆ testDIS() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testDIS ( int &  status)

display testing

Parameters
statusthe testing status
Note
0: stop testing, 1: start testing all LEDs on

◆ testEEP() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testEEP ( std::string &  error)

EEPROM testing.

Parameters
errorerror code

◆ testEEP() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testEEP ( std::string &  error)

EEPROM testing.

Parameters
errorerror code

◆ testEPR() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testEPR ( std::string &  error,
std::string &  checksum 
)

EPROM testing.

Parameters
errorerror code
checksumcheck sum (hex)

◆ testEPR() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testEPR ( std::string &  error,
std::string &  checksum 
)

EPROM testing.

Parameters
errorerror code
checksumcheck sum (hex)

◆ testIOT() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testIOT ( int &  status,
std::string &  relay 
)

IO testing.

Parameters
statusthe status of the testing
relaythe status relays to the testing (in hex format) (see Pfeiffer document)

◆ testIOT() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testIOT ( int &  status,
std::string &  relay 
)

IO testing.

Parameters
statusthe status of the testing
relaythe status relays to the testing (in hex format) (see Pfeiffer document)

◆ testRAM() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testRAM ( std::string &  error)

RAM testing.

Parameters
errorerror code

◆ testRAM() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testRAM ( std::string &  error)

RAM testing.

Parameters
errorerror code

◆ testRST() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testRST ( )

RS232 testing.

Note
repeats every character sent. Cancel with <CTRL>C

◆ testRST() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testRST ( )

RS232 testing.

Note
repeats every character sent. Cancel with <CTRL>C

◆ testTKB() [1/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testTKB ( std::vector< bool > &  pressed)

keyboard testing

Parameters
pressedthe status of the four keyboard buttons

◆ testTKB() [2/2]

void Basda::Tempo::PfeifferDualGaugeTPG262::testTKB ( std::vector< bool > &  pressed)

keyboard testing

Parameters
pressedthe status of the four keyboard buttons

Member Data Documentation

◆ m_answer

std::string Basda::Tempo::PfeifferDualGaugeTPG262::m_answer
private

this string contains the latest answer from the device

◆ m_chat

Nice::ChatLine Basda::Tempo::PfeifferDualGaugeTPG262::m_chat
private

the member chatline used for the communication

◆ m_connection

std::string Basda::Tempo::PfeifferDualGaugeTPG262::m_connection
private

this string contains the connection informations (ip adress, port) to build the chatLine

◆ m_continuousMode

int Basda::Tempo::PfeifferDualGaugeTPG262::m_continuousMode
protected

current continuous mode set to the device

Note
0=100ms, 1=1s, 2=1min

◆ m_isConnected

bool Basda::Tempo::PfeifferDualGaugeTPG262::m_isConnected
private

this boolean indicates if there is an active connection to a device

◆ m_setMode

bool Basda::Tempo::PfeifferDualGaugeTPG262::m_setMode
protected

boolean to indicate whether set mode or get mode of the functions should be used

◆ m_term

std::string Basda::Tempo::PfeifferDualGaugeTPG262::m_term
private

this string contains the current terminators for the sending of the commands


The documentation for this class was generated from the following files: