MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ SyncInterruptPeriodSet()

void SyncInterruptPeriodSet ( int32  samples)
pure virtual

Configure the period for the Sync Interrupt on the controller.

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.