TestWaitForValueSInt
Syntax
long TestWaitForValueSInt(COValue value, int64 awaitedValue, dword timeoutMs)
Function
Waits for a communication object value to reach a certain value. This function can only be used for communication object values with a signed integer data type. It cannot be used for system variables or bus system signals.
Parameters
COValue Value of a communication object.
awaitedValue
Value which is awaited.
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 been reached)
long ret;ret = testWaitForValueSInt(ErrorSignal[LeftMirror], -1, 200);
TestWaitForValue | TestWaitForValueUInt | TestWaitForValueFloat | TestWaitForValueString