|
Description
Provides an example of RTX Managed Code using a timer.
Programs
RtxMcTimerDemo project source file:
RtxMcTimerDemo.cs
's constructor initializes the RTX library and creates a non-signaled event. The program declares an instance of a callback function and then creates a timer that uses the callback function. The callback function will increment a counter each time the timer expires and signal an event when the counter reaches n. The main routine waits for the event to be signaled before exiting.APIs Referenced
Managed Code Class |
Methods Used |
RtssEnvironment |
InitializeRtxLibrary |
RTTimer |
RTTimerCallback Change Dispose |
RTEventWaitHandle |
Pulse WaitOne Close Dispose |