APIs, concepts, guides, and more

◆ SyncInterruptWait()

int32_t SyncInterruptWait ( )
Description:
SyncInterruptWait suspends the current thread until an interrupt arrives from the controller.
Returns
(int32_t) Value of controller SampleCounter when interrupt occured.
Sample Code:
// -- C++ -- //
printf("A Sync Interrupt recieved at sample %ld.\n", controller->SyncInterruptWait());
int32_t SyncInterruptWait()
Suspend the current thread until an interrupt arrives from the controller.
// -- C# -- //
Console.WriteLine("A Sync Interrupt recieved at sample {0}.", controller.SyncInterruptWait());
See also
SyncInterruptEnableSet
Examples
StreamingMotionBufferManagement.cpp, SyncInterrupt.cpp, and UpdateBufferPoints.cpp.