GX5290, GX5295, File
Return the compared results type.
DioRealTimeCompareGetResultsDataType (nHandle, pnDataType, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Board or File Board handle. |
pnDataType |
PSHORT |
Returned compared results type:0. DIO_RTC_SAVE_COMPARED_DATA: saved data is the result of the incoming data masked by the mask memory and compared with the expected memory (default).1. DIO_RTC_SAVE_INPUT_DATA: saved data is the raw input data that failed comparison. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The maximum member of compared data points is 1K. See the DioRealTimeCompareReadResults function for more details.
The board has to be in Real Time Compare operating mode prior calling this function. See the DioDomainSetupOperatingMode function for more details.
Note: the Real Time Compare functionality is supported by GX529x boards with firmware versions 0x8A00 and above.
The following example return the compared results type:
SHORT nDataType;
DioRealTimeCompareGetResultsDataType (nHandle, &nDataType, &nStatus);
DioRealTimeCompareSetupConditionValue, DioRealTimeCompareSetupDataDelay, DioRealTimeCompareSetupInputDataClockEdge, DioRealTimeCompareSetupResultsDataType, DioRealTimeCompareSetupStopCondition, DioRealTimeCompareWriteExpectedMemory, DioRealTimeCompareWriteMaskMemory, DioRealTimeCompareReadResults