Main Content

Support: absolute time

Code generation for model that includes blocks that depend on absolute or elapsed time

Model Configuration Pane: Code Generation / Interface

Description

The Support: absolute time parameter specifies whether the code generator produces code if a model includes blocks that depend on absolute or elapsed time. For models intended for generating production code for a target platform that does not provide timer services, you should avoid using blocks that depend on time. You can use this parameter to check whether the model includes such blocks by clearing the parameter.

Settings

On (default) | Off
On

Specifies that the model includes blocks that depend on absolute or elapsed time values. Select the parameter if the model includes at least one block that depends on time.

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

Off

Returns an error if the model includes blocks that depend on absolute or elapsed time.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOff
Safety precautionNo recommendation

Programmatic Use

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

Version History

Introduced before R2006a