The RMP Motion Controller APIs

◆ SampleCounterGet()

int32_t SampleCounterGet ( )
Description:
SampleCounterGet returns the value of the counter.
Returns
(int32_t) Sample counter value.
Remarks
This function is also available in RapidSequencer.

Part of the Information method group.

Sample Code:
// -- C++ -- //
printf("Sample Counter reads %ld\n", controller->SampleCounterGet());
int32_t SampleCounterGet()
Get the current value of the controller's processor's sample counter.
// -- C# -- //
Console.WriteLine("Sample Counter reads {0}", controller.SampleCounterGet());
Note
The return value is a 32 bit counter which will roll over.
Examples
PathMotion.cpp.