.

mpiRecorderMemoryGet

Declaration

 
long mpiRecorderMemoryGet(MPIRecorder   recorder,
                          void          *dst,
                          const void    *src,
                          long          count) 
 

Required Header: stdmpi.h
Change History: Modified in the 03.03.00

Description

mpiRecorderMemoryGet copies count bytes of a Recorder's (recorder) memory (starting at address src) to application memory (starting at address dst).

 
Return Values
MPIMessageOK  

Sample Code


/* recorderHighCountGet(...) demonstrates how to read recorder High
Count directly through memory. mpiRecorderMemory(...) obtains the
recorder control memory pointer. The pointer's address is then passed
into mpiRecorderMemoryGet(...) to obtain the HighCount value.
Note: MEIXmpRecorder *memory must be casted as (void *) in
mpiRecorderMemory.
*/

long recorderHighCountGet(MPIRecorder  recorder, 
                          long         *highCount)
{

   MEIXmpDataRecorder *memory;
   long               returnValue;

   /* Get recorder control memory pointer */
   returnValue = 
   mpiRecorderMemory(recorder, 
                    (void *)&memory);

   /* Get recorder HighCount */
   if(returnValue == MPIMessageOK)
   {

      returnValue = 
         mpiRecorderMemoryGet(recorder,
                              highCount,
                              &memory->HighCount,
                              sizeof(&memory->HighCount));
   }

   return returnValue;
}

See Also

mpiRecorderMemory | mpiRecorderMemorySet

 

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