◆ SampleCounterGet()

virtual int32_t SampleCounterGet ( )
pure virtual

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

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the Information method group.

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