mpiCaptureCreate

Declaration
 MPICapture mpiCaptureCreate(MPIControl  control,
                             long        number) 
Required Header stdmpi.h
Description

CaptureCreate creates a Capture object associated with a number (number), that is located on a motion controller (control).

CaptureCreate is the equivalent of a C++ constructor. Each motion block supports 10 capture registers. The default configuration is two capture registers per motor, while the last two (8,9) on each motion block are reserved for the Auxiliary Encoder (not supported). The capture registers are default mapped as follows: 0 and 1 for Motor0; 2 and 3 for Motor1; 10 and 11 for Motor4; etc. The first Capture for each motor uses the default (primary) encoder input for position capture. The second uses the AUX encoder input.

Return Values
handle to a Capture object
MPIHandleVOID if the object could not be created
See Also mpiCaptureDelete | mpiCaptureValidate