|
Öffentliche Typen |
| enum | VERBINDUNG { MODEM,
NETZWERK,
RS232
} |
| | possible types of connection Mehr...
|
| enum | CONVERT_TO { SPEC,
MV,
MM
} |
| | possible working units Mehr...
|
Öffentliche Methoden |
| | Cfps () |
| virtual | ~Cfps () |
| VERBINDUNG | GetCurrentConnectionType (void) const |
| void | SetCurrentConnectionType (const VERBINDUNG eNewConnectionType) |
| void | GetCallnumber (char *pcCallnumber, unsigned int ucBufLen) |
| | delivers the current number to call by a modem
|
| void | SetCallnumber (char *pcNewCallnumber) |
| | sets the current number to call by a modem
|
| bool | GetOperatingState (int &Flags) |
| | delivers the current operation flags
structure :
bit meaning
0 switch between operation mode ( 0 = Bereich, 1 = Schaltpunkt )
1 ---
2 ---
3 ---
4 ---
5 Update : ( set by fps device when sampling finished )
6 Record : start sampling if bit set
7 ReCalc : transfer values from fps input buffer to fps work buffer
|
| bool | SetOperatingState (int Flags) |
| | Sets the current operating state ( see GetOperationState for details ).
|
| bool | ReadSensor (SENSOR_TYPE &CurrentSensorValues) |
| | Delivers the current values in the fps input buffer into the overgiven structure of type SENSOR_TYPE
structure of SENSOR_TYPE ( defined in the file fps.hpp )
struct SENSOR_TYPE
{
int open; value which means state AUF ( open )
int c; " " " " C
int b; " " " " B
int a; " " " " A
int closed; " " " " ZU ( closed )
};.
|
| bool | WriteSensor (SENSOR_TYPE NewSensorValues) |
| | Writes the overgiven values into the fps input buffer ( see ReadSensor for details ).
|
| bool | ReadInterpolatedSensor (SENSOR_TYPE &CurrentSensorValues) |
| | Read in the fps working buffer ( see ReadSensor for more details ).
|
| bool | GetOutOfRangeFlags (int &Flags) |
| | delivers the "out of range" flags
structure
bit meaning ( if set )
0 Unterspannung ( low voltage )
1 Überspannung ( high voltage )
2 Untertemperatur ( low temperature )
3 Übertemperatur ( high temperature )
4 ---
5 ---
6 ---
7 ---
|
| bool | FetchStuetzArrayFromFps (void) |
| | delivers the stored stuetzstellen ( data points ) from the fps device the read in values are stored in the CFpsConvert class, so you can do some converting right after this
|
| bool | StoreStuetzArrayInFps (void) |
| | stores the current used stuetzstellen ( data points ) into the fps device
|
| void | GetTolerance (float &fUnterTolerance, float &fUeberTolerance) |
| | read in the tolerance values ( this value is stored in the fps in the place of the last stuetzstelle
|
| void | SaveTolerance (float fUnterTolerance, float fUeberTolerance) |
| | saves the tolance value in the fps ( this value is stored in the place of the last stuetzstelle
|
| bool | GetSensorSamples (float SenSamp[640], unsigned int uiBegin=0, unsigned int uiLength=640) |
| | delivers the sample of sensor data from the last sampling ( see GetOperatingState for more details )
|
| bool | GetVoltageSamples (float VoltageSample[640], unsigned int uiBegin=0, unsigned int uiLength=640) |
| | delivers the sample of voltage data from the last sampling ( see GetOperatingState for more details )
|
| bool | GetPortBSamples (int PortBSample[640], unsigned int uiBegin=0, unsigned int uiLength=640) |
| | delivers the sample of PortB data from the last sampling ( see GetCurrentState for more details )
|
| bool | GetCurrentSensorValue (float &CurSen, CONVERT_TO eConvertTo=SPEC) |
| | delivers the current sensor value
|
| bool | GetCurrentVoltage (float &CurOperatingVoltage) |
| | delivers the current voltage of the fps device ( in mV )
|
| bool | GetCurrentTemperature (float &CurrentTemperature) |
| | delivers the current temperature of the fps device ( in °C )
|
| bool | GetPortB (int &Flags) |
| | delivers the current state of the fps device
bit meaning
0 ---
1 ---
2 ---
3 offen ( open )
4 C
5 B
6 A
7 zu ( closed )
8 ---
9 ---
10 ---
11 ---
12 ---
13 ---
14 ---
15 ---
|
| bool | StartSampling (void) |
| | starts the sampling of sensor, voltage and portb data a value will be measured every 30 milliseconds 640 measures will be taken at all
|
| bool | IsSamplingDone (bool &bDone) |
| | tests if the sampling is already done
|
| bool | ResetEx (void) |
| | resets the OutOfRangeFlags writes back the week and year of the production of the fps devise and their serial number
|
| bool | GetServiceInfo (int &Week, int &Year, int &Serialnumber) |
| | delivers the week and year of the production of the fps device and their serialnumber
|
| bool | PasswordLogin (char *szIpAddress, char *szPassword, unsigned int uiBasePort, unsigned int uiPortnumber) |
| | handle the password login use the routine to connect to a password protected gateway
|
| void | GetCallNumber (char *pcCallNumber, unsigned int uiBufLen) |
| | delivers the currently used call number for a modem connection
|
| void | SetCallNumber (char *pcNewCallNumber) |
| | sets the currently used call number for a modem connection
|
| bool | InitModem (void) |
| | connect to modem
|
| virtual bool | initialize (void) |
| | init socket connection
|
| void | GetModemInitString (char *pcModemInitString, unsigned int BufLen) |
| | delivers the string which will be send to modem for initializing ( at commands )
|
| void | SetModemInitString (char *pcNewModemInitString) |
| | sets the string which will be send to modem for initializing ( at commands )
|
| void | GetModemDialString (char *pcModemDialString, unsigned int BufLen) |
| | delivers the string which will be send to modem for dialing ( at commands )
|
| void | SetModemDialString (char *pcNewModemDialString) |
| | sets the string which will be send to modem for dialing ( at commands )
|
| void | GetModemOkString (char *pcModemOkString, unsigned int BufLen) |
| | the modem answers the initializing by sending a string Use this routine to get the string which will be interpreted as a correct initialisation default : OK
|
| void | SetModemOkString (char *pcModemOkString) |
| | the modem answers the initializing by sending a string Use this routine to set the string which will be interpreted as a correct initialisation default : OK
|
| void | GetModemConnectString (char *pcModemConnectString, unsigned int BufLen) |
| | the modem answers the try to connect to another modem by sending a string Use this routine to get the string which will be interpreted as a correct connection default : CONNECT
|
| void | SetModemConnectString (char *pcModemConnectString) |
| | the modem answers the try to connect to another modem by sending a string Use this routine to set the string which will be interpreted as a correct connection default : CONNECT
|
| unsigned int | GetModemInitTimeout (void) const |
| | delivers the timeout value for initializing the modem
|
| void | SetModemInitTimeout (const unsigned int uiNewTimeOut) |
| | sets the timeout value for initializing the modem
|
| unsigned int | GetModemDialTimeout (void) const |
| | delivers the timeout value for establishing a connection with other modem ( dialing )
|
| void | SetModemDialTimeout (const unsigned int uiNewTimeoutValue) |
| | sets the timeout value for establishing a connection with other modem ( dialing )
|
| void | SetTcpIpAddress (char const *pcIpAddress) |
| | sets the tcpipaddress of the fps -device
|
| void | GetTcpIpAddress (char *pcIpAddress, SIZE_T BufLen) |
| | delivers the tcpipaddress of the fps -device
|
| void | SetTcpIpPort (unsigned int uiNewPort) |
| | sets the communication port
|
| unsigned int | GetTcpIpPort (void) |
| | delivers the communication port the default port is 5000
|
| void | SetBasePort (const unsigned int nBasePort) |
| | Set the base port of TCP/IP connection for login.
|
| unsigned int | GetBasePort (void) const |
| | Get the base port of TCP/IP connection for login.
|
| void | SetRcvTimeOut (const DWORD dwNewTimeOut) |
| | sets timeout ( for receiving data )
|
| DWORD | GetRcvTimeOut (void) const |
| | delivers the timeout for receiving data default 5 seconds
|
| void | ReadProfileFile (const std::string &sFilename) |
| | read address data from profile file
|
| void | ReadProfileFileConnectionType (const std::string &sFilename) |
| | read connection type from profile file and set it in the class data.
|
| void | WriteProfileFile (std::string sFilename) |
| | write address data to profile file
|
| bool | FetchData (RECEIVED_TYPE &Command, ADDRESS_TYPE &nAddress, unsigned int &uiLength, std::vector< unsigned char > &aucData) |
| | encapsolated functions in CRcvBuffer
|
| bool | StoreData (const RECEIVED_TYPE Command, const ADDRESS_TYPE nAddress, const unsigned int uiLength, const std::vector< unsigned char > &aucData=std::vector< unsigned char >::vector()) |
| | encapsolated functions in CRcvBuffer
|
Öffentliche Attribute |
| CFpsConvert | m_oConvert |
| | handle stuetzstellen ( data points ) for converting voltage to mm use this object to convert between :
native and spec ( depends on what is currently used ( switch with SetMeasureMode ) )
spec and native
mV and mm
mm and mV
native and mV
native and mm
mV and native
mm and native
|
Geschützte Methoden |
| bool | ReadFpsEeprom (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| | read in a block of data from eeprom memory from fps device the received data will be stored in m_Eeprom
|
| bool | ReadFpsProgram (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| | read in a block of data from program memory from fps device the received data will be stored in m_Program
|
| bool | ReadFpsRam (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| | read in a block of data from ram memory from fps device the received data will be stored in m_Ram
|
| bool | WriteFpsEeprom (ADDRESS_TYPE nAddress, unsigned int uiLength, std::vector< unsigned char > aucData) |
| | write a block of data to eeprom memory in the fps device
|
| bool | WriteFpsProgram (ADDRESS_TYPE nAddress, unsigned int uiLength, std::vector< unsigned char > aucData) |
| | write a block of data to program memory in the fps device
|
| bool | WriteFpsRam (ADDRESS_TYPE nAddress, unsigned int uiLength, std::vector< unsigned char > aucData) |
| | write a block of data to ram memory in the fps device
|
| RECEIVED_TYPE | WaitForData (void) |
| | wait for incoming data timeout = internal timeout
|