MPISqNodeStatus

Definition

typedef struct MPISqNodeStatus {
    MPISqNodeStatusPacketError   upStreamError;
    MPISqNodeStatusPacketError   downStreamError;
    MPISqNodeStatusCrcError      crcError;
    MPIEventMask                 eventMask;
    MPIEventStatusIoFaults       ioFaults;
} MPISqNodeStatus;

Change History: Modified in the 03.04.00.

Description

MPISqNodeStatus contains error counters and the eventMask for a SynqNet node.

upStreamError The rate and count of bad synqNet messages received by the controller from the Node. See MPISqNodeStatusPacketError.
downStreamError The rate and count of bad synqNet messages received by the Node from the controller. See MPISqNodeStatusPacketError.
crcError Counters for the CRC errors. See MPISqNodeStatusCrcError.
eventMask Array that defines the event mask bits. The array is defined as:
typedef MPIEventMaskELEMENT_TYPE MPIEEventMask[MPIEventMaskELEMENTS]
The bits are defined by the MPIEventType enumerations.
ioFaults Flags indicating the source of any I/O faults.See MPISqNodeStatusIoFaults.

Sample Code

/*
This function shows how to get the status of a Node, and read the Packet Errors with the node passed into the function,
then print to the console.
*/ int32_t getNodeStatus(MPISqNode sqNode)
{ MPISqNodeStatus nodeStatus;
int32_t returnValue;
int32_t intErrUp;
int32_t intErrDn;
returnValue = mpiSqNodeStatus(sqNode, &nodeStatus); if(returnValue == MPIMessageOK){
intErrUp = nodeStatus.upStreamError.count;
intErrDn = nodeStatus.downStreamError.count;
printf("Node Errors Up: %u, Node Errors Down: %u\n", intErrUp, intErrDn);
} return returnValue;
}

See Also

mpiSqNodeStatus | mpiSynqNetStatus | MPISqNodeConfig | MPISqNodeStatusIoFaults