![]() |
Functions | |
MLPIRESULT | utilMotionWait (MLPIHANDLE connection, MlpiAxisRef axis, MLPIMOTIONHANDLE motionHandle, ULONG timeout=MLPI_INFINITE) |
MLPIRESULT | utilMotionWaitAxisInterrupted (MLPIHANDLE connection, MlpiAxisRef axis, const ULONG timeout=MLPI_INFINITE) |
This module contains some useful functions and macros for parameter handling.
Please note that this piece of source code is not directly part of the MLPI. You do not need this file to program against the MLPI. Nevertheless, at least parts of this file have been considered to be somewhat useful when using or learning to use MLPI functionality. It is therefore included without any support, but to act as sample code and source of inspiration.
|
inline |
This function waits until a given motion command is done or an error occurs. An optional timeout can be given to the function.
[in] | connection | Handle for multiple connections. |
[in] | axis | The commanded axis. |
[in] | motionHandle | The handle identifying the motion command to wait for. This handle is returned by the motion command. |
[in] | timeout | Timeout in milliseconds for motion command to finish (optional). |
Definition at line 1135 of file mlpiMotionHelper.h.
References MLPI_E_TIMEOUT, MLPI_INFINITE, MLPI_S_OK, and mlpiMotionGetStatus().
|
inline |
This function waits that the axis is no longer interrupted.
[in] | connection | Handle for multiple connections. |
[in] | axis | The commanded axis. |
[in] | timeout | Timeout in milliseconds for motion command interrupted (optional) |
Definition at line 1188 of file mlpiMotionHelper.h.
References MLPI_E_TIMEOUT, MLPI_INFINITE, MLPI_S_OK, MLPI_SUCCEEDED, and mlpiMotionGetState().