Main Content

Maximum duration

Maximum number of base rate steps for which external mode logs data after trigger event

Since R2022b

Model Configuration Pane: Code Generation / Interface

Description

The Maximum duration parameter specifies the maximum number of base rate steps for which external model logs data after a trigger event ( value of ExtModeTrigDuration). The code generator uses the value of this parameter to determine the amount of static memory to allocate for external mode communication. When parameter ExtModeSendContiguousSamples is set to 'on', memory requirements change depending on the value of ExtModeTrigDuration. When allocating memory automatically, the code generator allocates enough memory to run a simulation for possible values of ExtModeTrigDuration in the range [1, ExtModeMaxTrigDuration] without generating a memory error.

Dependency

To enable this parameter, select the Automatically allocate static memory parameter.

Settings

10 (default) | positive scalar

Maximum duration in base rate steps.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: ExtModeMaxTrigDuration
Type: integer
Value: valid value
Default: 10

Version History

Introduced in R2022b