meiControlSampleCounter

Declaration
long meiControlSampleCounter(MPIControl   control, 
                             long         *sampleCounter)
Required Header stdmei.h
Description

ControlSampleCounter writes the number of servo cycles (samples) that have occured 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 if the sample counter could be read
See Also meiControlSecondstoSamples | meiControlSamplestoSeconds | meiControlSampleWait