nxLibWaitForIntValue

Navigation:  NxLib API > C Interface > Waiting >

nxLibWaitForIntValue

Previous pageReturn to chapter overviewNext page

Wait for specific integer value of an item. When the condition to wait for is already satisfied initially, the function returns immediately.

Note: According to the behavior of nxLibGetInt the comparison for this condition is done with the rounded item value.

Signature

void nxLibWaitForIntValue (NXLIBERR* result, NXLIBINT itemPath, NXLIBINT value, NXLIBBOOL waitForEqual);

Parameters

result

The error code of the operation. If the item is deleted during the wait operation, the return code will be NxLibItemInexistent.

itemPath

The path of the item to wait for.

value

The value to wait for.

waitForEqual

When true, the function waits until the item has the specified value, otherwise it waits until the item's value is different from the specified value.

Return Value

none