APIs, concepts, guides, and more

◆ SampleWait()

void SampleWait ( uint32_t samples)
Description:
SampleWait blocks and delays execution of code until the specified number of MotionController firmware samples has elapsed.
Parameters
samplesThe number of samples to wait.

Part of the Information method group.

Sample Code:
@code
controller.SampleWait(10) ; // wait 10 samples
void SampleWait(uint32_t samples)
Wait for controller firmware to execute samples.
Note
This method is typically used test code or a multithreaded application where a thread can wait/block while other threads are executing.
Examples
CalculateAccelerationFromVelocity.cpp, Compensator.cs, DifferenceOfPositionUserLimit.cpp, Homing.cs, InputOutput.cs, MathBlock.cs, PathMotion.cpp, and PointToPoint.cpp.