The Simulink® Real-Time™ kernel has two mutually exclusive execution modes.
Interrupt mode — The scheduler implements real-time single-tasking and multitasking execution of single-rate or multirate systems, including asynchronous events (interrupts). You can interact with the target computer while the real-time application is executing at high sample rates. To use this real-time mode:
Leave the Force polling mode configuration parameter disabled (default).
pollingThreshold application option at
the default value.
Polling mode — The kernel executes real-time applications at sample times close to the limit of the CPU. Using polling mode with high-speed and low-latency I/O boards and drivers enables you to achieve real-time application sample times that you cannot achieve by using interrupt mode. Because polling mode disables interrupts on the processor core where the model runs, it imposes restrictions on the model architecture and on target communication. To use this real-time mode, either:
Enable the Force polling mode configuration parameter.
pollingThreshold application option sample
time value to a rate below the base rate of the model.