mpiMotionCreate

Declaration
 MPIMotion mpiMotionCreate(MPIControl control,
                           long       number,
                           MPIAxis    axis)              
Required Header stdmpi.h
Description

MotionCreate creates a Motion object associated with the motion supervisor identified by number located on motion controller control. MotionCreate is the equivalent of a C++ constructor.

If number is -1, MotionCreate selects the next unused motion supervisor. The axis parameter specifies the initial element in the list of Axis objects which determine the coordinate system (axis may be MPIHandleVOID).

Return Values
handle handle to a Motion object
MPIHandleVOID if the object could not be created
See Also mpiMotionDelete | mpiMotionValidate