Cdaqmx::getchdata, Cdaqmx::getchdatano – Yokogawa PC-Based MX100 User Manual
Page 69
![background image](/manuals/360310/69/background.png)
2-46
IM MX190-01E
CDAQMX::getChData
Syntax
int getChData(MXDataNo * dataNo, CDAQMXDataInfo & cMXDataInfo,
int * pFlag = NULL);
Parameters
dataNo
Specify the destination where the data number is to be returned.
cMXDataInfo
Specify the destination where the measured data is to be returned.
pFlag
Specify the destination where the flag is to be returned.
Description
Gets the measured data that was declared to be retrieved using the talkChData and
talkFIFOData functions in units of channels. Analyzes information and stores the
data in the return destination.
If an association with channel information data exists in the measured data return
destination, channel information data that identifies the measured data is stored.
When the last set of data is retrieved, the flag status is set.
It is also set when the function ends in error.
Do not perform communications using other functions until the data retrieval is completed.
Return value
Returns an error number.
Reference
incCurFIFOIdx receiveBlock searchChNo CDAQMXChInfo::setChNo
CDAQMXChInfo::setFIFONo CDAQMXChInfo::setPoint
CDAQMXChInfo::setValid CDAQMXDataInfo::getClassMXChInfo
CDAQMX::getChDataNo
Syntax
int getChDataNo(int chNo, MXDataNo * startDataNo, MXDataNo *
endDataNo);
Parameters
chNo
Specify the channel number.
startDataNo
Specify the destination where the start data number is to be returned.
endDataNo
Specify the destination where the end data number is to be returned.
Description
Gets the data number of measured data that can be retrieved.
Gets the data range that can be retrieved starting from the next data after the
measured data that was received last through channel designation.
Return value
Returns an error number.
Error:
Not support
The channel number is outside the range.
Reference
getDataNo
2.5 Details of the MX100 Class