RMP Motion Controller
10.6.4
APIs
, concepts, guides, and more
Community
Support
Contact
◆
SampleCounterGet()
int32_t SampleCounterGet
(
)
Description:
SampleCounterGet returns the value of the counter.
Returns
(int32_t) Sample counter value.
Part of the
Information
method group.
Sample Code:
// -- C++ -- //
printf(
"Sample Counter reads %ld\n"
, controller->
SampleCounterGet
());
RSI::RapidCode::MotionController::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
.
RSI
RapidCode
MotionController
Generated by
1.10.0