.

MPICaptureConfig

Definition

typedef struct MPICaptureConfig {
    MPICaptureTrigger         source[MPICaptureSourceCOUNT];
/* use MPICaptureSource to index */ MPICaptureEdge edge; MPICaptureTriggerGlobal global; MPICaptureType type; long captureMotorNumber; long feedbackMotorNumber; /* the same as captureMotorNumber for POSITION capture */ MPIMotorEncoder encoder; long captureIndex; /* 0,1,... */ } MPICaptureConfig;

Description

 
source[MPICaptureSourceCOUNT] An array of capture trigger source inputs. The capture can be configured to trigger from one or more sources. See MPICaptureTrigger and MPICaptureSourceCOUNT.
edge An enumerated index to the trigger edge type. The capture can be configured to trigger from a variety of logic. See MPICaptureEdge.
global A structure to configure the global capture, to chain capture block triggering. See MPICaptureTriggerGlobal.
type

Specifies either postion-based or time-based capture. Use MPICaptureTypePOSITION for position-based capture and MPICaptureTypeTIME for time-based capture.

captureMotorNumber

The number of the motor whose "source" (MPICaptureTrigger) is used to capture position.

feedbackMotorNumber The number of the motor whose position is being returned from the capture event. (It must be the same as captureMotorNumber for position capture).
encoder Specifies the encoder feedback being captured.
captureIndex

A zero-based index that specifies which capture resource on an axis is to be associated with the capture object.

Each axis on a node has a given number of captures associated with it. An axis may have up to 4 capture resources on it. At present, no vendor provides a node with more than one capture resource, therefore, captureIndex must be set to zero.

Remarks

Time-based capture will only work correctly if the speed of an axis is less than 344 million counts per second.

See Also

MPICaptureType | mpiCaptureConfigGet | mpiCaptureConfigSet

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering