DioRealTimeCompareSetupResultsDataType

Applies To

GX5290, GX5295, File

Purpose

Sets the compared results type.

Syntax

DioRealTimeCompareSetupResultsDataType (nHandle, nDataType, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Board or File Board handle.
nDataType
SHORT
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.

Comments

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.

Example

The following example sets the compared results type:

 

DioRealTimeCompareSetupResultsDataType (nHandle, DIO_RTC_SAVE_COMPARED_DATA, &nStatus);

 

See Also

DioRealTimeCompareSetupResultsDataType, DioRealTimeCompareSetupConditionValue, DioRealTimeCompareSetupDataDelay, DioRealTimeCompareGetInputDataClockEdge, DioRealTimeCompareSetupStopCondition, DioRealTimeCompareWriteMaskMemory, DioRealTimeCompareWriteMaskMemory,  DioRealTimeCompareReadResults