Force polling mode
Enables polling mode — instead of interrupt-driven mode — for clocking the real-time application
Model Configuration Pane: Code Generation / Simulink Real-Time Options
Description
Dependencies
The SLRTForcePollingMode configuration parameter sets the initial value
for the pollingThreshold option when you build the real-time application.
Enabling SLRTForcePollingMode sets the pollingThreshold
to a value above the base sample rate. This setting forces clocking the real-time application
in polling mode.
Option:
pollingThreshold
|
Settings
off | on
Default:
off
-
off When
Force polling modeis disabled, the real-time application is clocked by a timer interrupt, unless the base sample rate is equal to or below the polling threshold (100 μs). If the base sample rate is less than or equal to the threshold, the real-time application is clocked in polling mode.-
on When
Force polling modeis enabled, the real-time application is always clocked in polling mode.
Recommended Settings
| Application | Setting |
|---|---|
Debugging |
|
Traceability |
|
Efficiency |
|
Safety precaution |
|
Programmatic Use
Parameter:
SLRTForcePollingMode
|
| Type: character vector |
Value:
'off' | 'on' |
Default:
'off'
|
Version History
Introduced in R2020b