.

meiSqNodeSegmentUserDataSet

Declaration

 
long meiSqNodeSegmentUserDataSet(MEISqNode                 node,
                                 long                      segment,
MEISqNodeSegmentUserData *data);
  Required Header: stdmei.h
Change History: Added in the 03.02.00

Description

Modules attached to a SQID node have a small section of non-volatile memory that can be used for any purpose by the user. meiSqNodeSegmentUserDataSet changes the user data stored on a segment on a SynqNet node.

 
node a handle to a SynqNet node object.
segment the index of the slice/module attached to this SynqNet node.
For more information, please see the Overview of MPI I/O.
data a pointer to the new user data.
   
 
Return Values
MPIMessageOK  

Sample Code

The following MPI code changes the contents on the non-volatile memory to a string:

 

MEISqNodeSegmentUserData nodeData;

strncpy( nodeData.data, “test” , MEISqNodeUserDATA_CHAR_MAX );

meiSqNodeSegmentUserDataSet( sqNode1, 0,&nodeData );

See Also

meiSqNodeSegmentUserDataGet | MPI Overview I/O: User Data | Overview of MPI I/O

 

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