The RMP Motion Controller API

◆ Sleep()

virtual void Sleep ( int32_t  milliseconds)
pure virtual

Put the current thread to sleep.

Description:
Sleep puts the current thread to sleep.
Parameters
millisecondsThe number of milliseconds the thread should sleep.

ℹ This function is avaliable in RapidCode

Sample Code:
// put this thread to sleep for some milliseconds
controller->OS->Sleep(SLEEP_MILLISECONDS);
Examples
Gantry.cpp, SyncInterrupt.cpp, and UserLimitDigitalInputAction.cpp.