.

meiControlSampleCounter

Declaration

 
long meiControlSampleCounter(MPIControl   control, 
                             long         *sampleCounter)
 

Required Header: stdmei.h

Description

meiControlSampleCounter writes the number of servo cycles (samples) that have occurred since the last sample counter reset/rollover, to the sampleCounter. When the user resets the controller, the sample counter will also be reset. Since the sample counter is a long, if the sample counter is 2147483647 it will roll over on the next servo cycle to -2147483648.

 
Return Values
MPIMessageOK  

See Also

meiControlSecondstoSamples | meiControlSamplestoSeconds | meiControlSampleWait

 

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