.

MPICaptureMessage / MEICaptureMessage

Definition: MPICaptureMessage

 
typedef enum {
    MPICaptureMessageMOTOR_INVALID,
MPICaptureMessageCAPTURE_TYPE_INVALID, MPICaptureMessageCAPTURE_INVALID, MPICaptureMessageENCODER_INVALID,
} MPICaptureMessage;

Description

MPICaptureEdge is an enumeration of Capture error messages that can be returned by the MPI library.

MEICaptureMessageMOTOR_INVALID
 

The capture motor number is not valid. This message code is returned by mpiCaptureConfigSet(...) if the captureMotorNumber does not have node hardware or the value is MPICaptureNOT_MAPPED.

MEICaptureMessageCAPTURE_TYPE_INVALID
 

The capture type is not valid. This message code is returned by mpiCaptureConfigSet(...) if the type is not one of the values defined by the enum MPICaptureType.

MPICaptureMessageCAPTURE_INVALID
  The capture number is out of range. This message code is returned by mpiCaptureCreate(...) if the capture number is less than zero or greater than or equal to MEIXmpMaxCapturesPerMotor.
MPICaptureMessageENCODER_INVALID
  The encoder index is out of range. This message code is returned by mpiCaptureCreate(...) if the encoder index is less than MPIMotorEncoderFIRST or greater than or equal to MPIMotorEncoderLAST. See MPIMotorEncoder.

See Also

mpiCaptureCreate | mpiControlConfigSet

 

Definition: MEICaptureMessage

 
typedef enum {
    MEICaptureMessageINVALID_EDGE,
MEICaptureMessageGLOBAL_CONFIG_ERR,
MEICaptureMessageGLOBAL_ALREADY_ENABLED,
MEICaptureMessageCAPTURE_NOT_ENABLED,
MEICaptureMessageCAPTURE_STATE_INVALID,
MEICaptureMessageNOT_MAPPED, MEICaptureMessageUNSUPPORTED_PRIMARY, MEICaptureMessageUNSUPPORTED_SECONDARY, MEICaptureMessageSECONDARY_INDEX_INVALID, MEICaptureMessageCAPTURE_ARMED, } MEICaptureMessage;
  Change History: Modified in the 03.03.00

Description

MEICaptureMessageINVALID_EDGE
 

The encoder edge trigger type is not valid. This message code is returned by mpiCaptureConfigSet(...) if the encoder capture edge type is not a member of the MPICaptureEdge enumeration.

MEICaptureMessageGLOBAL_CONFIG_ERR
 

The global trigger configuration is not valid. This message code is returned by mpiCaptureConfigSet(...) if the capture's trigger source is set to global and the capture's global trigger is enabled simultaneously. To correct this problem, either set the capture's trigger source to global or enable the capture's global trigger (not both).

MEICaptureMessage_GLOBAL_ALREADY_ENABLED
 

The global trigger is already enabled. This message code is returned by mpiCaptureConfigSet(...) if a global trigger is already enabled on another capture on the same node. Only one global trigger enable is allowed per node. To prevent this problem, do not enable a second global trigger on a single node.

MEICaptureMessageCAPTURE_NOT_ENABLED
 

This value is returned by mpiCaptureCreate(...) when the capture number specified is greater than the number of captures enabled in firmware. See MPIControlConfig.

MEICaptureMessageCAPTURE_STATE_INVALID
 

This value is returned by mpiCaptureStatus(...) when the communication between the controller and the capture logic on the node fails resulting in an invalid capture state. See MPICaptureState.

MEICaptureMessageNOT_MAPPED
  The capture object's hardware resource is not available. This message code is returned by mpiCaptureCreate(...) if the node hardware for the specified motor and encoder is not found. During controller and network initialization the nodes and motor count for each node is discovered and mapped to the controller's motor and capture objects. A capture object cannot be created if there is no mapped hardware to support it. To correct this problem, verify that all expected nodes were found. Use meiSynqNetInfo(...) and meiSqNodeInfo(...) to determine the node topology and motor count per node. Check the node hardware power and network connections.
MEICaptureMessageUNSUPPORTED_PRIMARY
  The capture hardware does not support the primary encoder. This message code is returned by mpiCaptureCreate(...) if the node hardware's primary encoder does not support the specified capture. To correct this problem, select a different motor, encoder, or capture number.
MEICaptureMessageUNSUPPORTED_SECONDARY
  The capture hardware does not support the secondary encoder. This message code is returned by mpiCaptureCreate(...) if the node hardware's secondary encoder does not support the specified capture. To correct this problem, select a different motor, encoder, or capture number.
MEICaptureMessageSECONDARY_INDEX_INVALID
 

This message is returned from MPICaptureConfigSet(...) when the secondary encoder's index is specified as a trigger source in conjunction with other capture sources.

MEICaptureMessageCAPTURE_ARMED
 

The Capture resource being configured is already armed and cannot be reconfigured until it is disabled or triggered.

See Also

mpiCaptureCreate

 

 

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