MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ SampleCounterGet()

int32 SampleCounterGet ( )
pure virtual

Get the current value of the controller's processor's sample counter.

Description:
SampleCounterGet returns the value of the counter.
Returns
(int32) Sample counter value.
Sample Code:
// -- C++ -- //
printf("Sample Counter reads %ld\n", controller->SampleCounterGet());
// -- C# -- //
Console.WriteLine("Sample Counter reads {0}", controller.SampleCounterGet());
Note
The return value is a 32 bit counter which will roll over.