◆ SyncInterruptPeriodSet()

virtual void SyncInterruptPeriodSet ( uint32_t  samples)
pure virtual

Configure the period for the Sync Interrupt on the controller.

ℹ This function is avaliable in RapidCode and RapidSequencer

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);
// -- 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.