Start timer during model initialization
Start the counter during model initialization
Since R2024b
Model Configuration Pane: Hardware Implementation / Simulink or Embedded Coder Hardware Support Package / Hardware board settings / Target hardware resources / Timers
Description
Enable Start Timer during model initialization parameter to start the counter during model initialization.
Settings
on
|
off
The starting of counter for any timer module is initiated only if any of the Timer, Timer capture, Encoder or PWM Output block are available in the model for that timer module
To
start/stop the counter in runtime, disable the Start Timer during model
initialization
parameter and select Enable Counter Input
parameter in the block. An input of 1
to the corresponding input will start
the counter and 0
will stop the counter.
Recommended Settings
No recommendation.
Programmatic Use
No programmatic use is available. |
Version History
Introduced in R2024b