Cdaqhandler::getdata, Cdaqhandler::geterrormessage – Yokogawa PC-Based MX100 User Manual
Page 54
![background image](/manuals/360310/54/background.png)
2-31
IM MX190-01E
MX100 -Visual C++
2
CDAQHandler::getData
Syntax
virtual int getData(int chType, int chNo, CDAQDateTime &
cDateTime, CDAQDataInfo & cDataInfo);
Parameters
chType
Specify the channel type.
chNo
Specify the channel number.
cDateTime
Specify the destination where the time information data is
to be returned.
cDataInfo
Specify the destination where the measured data is to be
returned.
Description
This function gets the instantaneous values in units of channels.
This function must be overridden with the inheritance class of each model. Returns
an error number if not overridden.
Return value
Returns an error number.
Error:
Not Support
Not supported.
CDAQHandler::getErrorMessage
Syntax
static const char * getErrorMessage(int errCode);
Parameters
errCode
Specify the error number.
Description
Gets the error message string corresponding to the error number specified by the
parameter. If the value is outside the range, the message string is set to Unknown.
Return value
Returns a pointer to the error message string.
2.4 Details of the MX100/DARWIN Common Class