long meiSynqNetInfo(MEISynqNet       synqNet,
                    MEISynqNetInfo   *info);
  Required Header: stdmei.h


meiSynqNetInfo reads static information about the network associated with the SynqNet object and writes it into the structure pointed to by info. The SynqNet info structure contains read only data that was determined during network initialization.

synqNet a handle to a SynqNet object
*info pointer to a SynqNet network information structure
Return Values

Sample Code

Get the number of nodes on the SynqNet network
Returns -1 if there is an error

int NumberOfNodes(MEISynqNet synqNet)
MEISynqNetInfo info;
long returnValue;
int numNodes = -1; returnValue = meiSynqNetInfo(synqNet, &info);
if(returnValue == MPIMessageOK)
if(info.nodeCount >= 0 && info.nodeCount <= MEIXmpMaxSynqNetBlocks)
numNodes = info.nodeCount;
} return numNodes;

See Also

meiSynqNetIdleCableListGet | MEISynqNetState


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