FIFOs
The program fifo_app.c below illustrates how to communicate with a real-time task using real-time FIFOs. The fifo_app.c is ran interpretively under Ch while the real-time task, fifo_task.c, is loaded as a module into the real-time kernel. This program can be found in the directory CHHOME/package/chrtai/demos after installation of the Ch RTAI package, where CHHOME is the home directory in which Ch is installed.

A GTK GUI has been created for the application. A snapshot of the application is shown below.


This demo does not require the installation of Ch RTAI in order to work.

View User Application Source Online
View Real-Time Task Source Online

Download the Demo: zip tar


Shared Memory
The program shm_app.c below illustrates how to use shared memory with a real-time task. The shm_app.c is ran interpretively under Ch while the real-time task, shm_task.c, is loaded as a module into the real-time kernel. This program can be found in the directory CHHOME/package/chrtai/demos after installation of the Ch RTAI package, where CHHOME is the home directory in which Ch is installed.

View User Application Source Online
View Real-Time Task Source Online

Download the Demo: zip tar