◆ SyncInterruptWait()

virtual int32_t SyncInterruptWait ( )
pure virtual

Suspend the current thread until an interrupt arrives from the controller.

ℹ This function is avaliable in RapidCode and RapidSequencer

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());
// -- C# -- //
Console.WriteLine("A Sync Interrupt recieved at sample {0}.", controller.SyncInterruptWait());
See also
SyncInterruptEnableSet
Examples
StreamingMotionBufferManagement.cpp, SyncInterrupt.cpp, and UpdateBufferPoints.cpp.