.

meiSynqNetStatus

Declaration

 
long meiSynqNetStatus(MEISynqNet          synqNet,
                      MEISynqNetStatus    *status);
  Required Header: stdmei.h

Description

meiSynqNetStatus reads status from the network associated with the SynqNet object and writes it into the structure pointed to by status. The SynqNet status structure contains network operation state and error counters. This data is updated every controller sample.

 
synqNet a handle to a SynqNet object
*status pointer to a SynqNet status structure
   
 
Return Values
MPIMessageOK  
MPIMessageARG_INVALID  

Sample Code


/* getControllerCRCError(...) demonstrates how to read 
controller CRC errors using function meiSynqNetStatus(...) 
and structure MEISynqNetStatus.
*/ 

long getCRCError(MEISynqNet  synqNet, 
                 long        *crcErrUp, 
                 long        *crcErrDown)
{
   long returnValue;
   MEISynqNetStatus synqNetStatus;

   returnValue = 
      meiSynqNetStatus(synqNet, 
                       &synqNetStatus);

   if(returnValue == MPIMessageOK)
   {
      *crcErrUp = synqNetStatus.crcError.port[0];
      *crcErrDown = synqNetStatus.crcError.port[1];
   }
   return returnValue;
}

See Also

meiSqNodeStatus | meiSynqNetInfo

 

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