SetAxisDirection
Sets the direction of an axis' position.
Syntax
KsError SetAxisDirection(
int Index,
McPolarity Direction
);
Parameters
Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.
Direction: the direction of a position. See the McPolarity type.
Return value
If the function succeeds, it returns errNoError
, otherwise an error code. For more information about the error code, see the KsError list.
Example
Copy
KsError nRet = SetAxisDirection(0, McPolarity::mcPositive);
Requirements
RT | Win32 | |
---|---|---|
Minimum supported version | 4.0 | 4.0 |
Header | ksmotion.h | ksmotion.h |
Library | KsApi_Rtss.lib | KsApi.lib |
See also