Main Content

Support: absolute time

Code generation for integer counters for absolute and elapsed time values

Model Configuration Pane: Code Generation / Interface

Description

The Support: absolute time parameter specifies whether to generate and maintain integer counters for absolute and elapsed time values.

Select this parameter if a model includes blocks that use absolute or elapsed time values.

Settings

On (default) | Off
On

Enables generation and maintenance of integer counters for blocks that use absolute or elapsed time values. Absolute time is the time from the start of program execution to the present time. An example of elapsed time is time elapsed between two trigger events.

If you select this parameter and the model does not include blocks that use time values, the code generator does not generate code for the counters.

Off

Disables generation of integer counters for representing absolute and elapsed time values. If you clear this parameter and the model includes blocks that use absolute or elapsed time values, the code generator returns an error.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOff
Safety precaution

No recommendation

Programmatic Use

Parameter: SupportAbsoluteTime
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced before R2006a