TestWaitForUpdate
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
Waits for the next update of a valueHandle. This is equivalent to calling TestWaitForUpdateCountGreater (value, value.GetUpdateCount(), timeoutMs). Note that only updates which occur while the function waits are considered. If you want to wait for updates which may occur earlier, or if you want to wait for several updates, use TestWaitForUpdateFlag or TestWaitForUpdateCountGreater.Parameters
- value: Value handle of a communication object or distributed object.
- timeoutMS: Maximum time that should be waited [ms]. Transmission of 0: no timeout controlling.
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 was updated)