APIs, concepts, guides, and more

◆ SyncInterruptPeriodSet()

void SyncInterruptPeriodSet ( uint32_t samples)
Description:
SyncInterruptPeriodSet configures the number of Controller firmware foreground samples between Sync interrupts. Therefore, an interrupt will be generated every [x] samples.
Parameters
samplesThe number of foreground cycles between successive interrupts from the controller.
Sample Code:
Configure for a Sync interrupt every 10ms (assumes controller running at default 2000Hz sample rate)
// -- C++ -- //
controller->SyncInterruptPeriodSet(20);
void SyncInterruptPeriodSet(uint32_t samples)
Configure the period for the Sync Interrupt on the controller.
// -- C# -- //
controller.SyncInterruptPeriodSet(20);
Note
The Sync Interrupt is only intended for real-time operating systems.
See also
InterruptWait
Examples
StreamingMotionBufferManagement.cpp, SyncInterrupt.cpp, and UpdateBufferPoints.cpp.