TestWaitForChangeCountGreater
Syntax
long TestWaitForChangeCountGreater(COValue value, qword count, dword timeoutMs)
Function
Waits for the change counter of a communication object value to reach a certain value. Each CO value contains a change counter which is reset to 0 at measurement start and with explicit calls tovalueEntity::ResetValueState. You can read out the counter withvalueEntity::GetChangeCount.
Parameters
COValue Value of a communication object.
count
Change count to be reached.
timeoutMS
Timeout in milliseconds.
Return Values
-2: Resume due to constraint violation
-1: General error, for example, functionality is not available
0: Resume due to timeout
1: resume due to event occurred (value has changed)
long ret;consumedEventRef * anEvent;anEvent = lookupConsumedEvent(path);// ...ret = testWaitForChangeCountGreater(anEvent, anEvent.GetChangeCount() + 3, 200);
[TestWaitForChangeFlag](/en/syntax/communication-objects/misc/testwaitforchangeflag) | [TestWaitForChange](/en/syntax/communication-objects/misc/testwaitforchange) | [TestWaitForUpdateCountGreater](/en/syntax/communication-objects/misc/testwaitforupdatecountgreater)