mpiControlSampleCounter

Declaration

int32_t mpiControlSampleCounter(MPIControl   control, 
                             int32_t         *sampleCounter)

Required Header: stdmpi.h

Description

mpiControlSampleCounter 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

mpiControlSecondstoSamples | mpiControlSamplestoSeconds | mpiControlSampleWait