TestWaitForValueString
Syntax
long TestWaitForValueString(COValue value, char[] 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 string 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 = testWaitForValueString(ErrorSignal[LeftMirror], "GeneralError", 200);
TestWaitForValue | TestWaitForValueUInt | TestWaitForValueFloat | TestWaitForValueSInt