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 scalarMaximum duration in base rate steps.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: ExtModeMaxTrigDuration |
Type: integer |
Value: valid value |
Default: 10 |
Version History
Introduced in R2022b
See Also
Topics
- Model Configuration Parameters: Code Generation Interface
- External Mode Simulation by Using XCP Communication
- Memory Allocation for Communication Buffers During XCP External Mode Simulation
- Run XCP External Mode Simulation From Command Line (Embedded Coder)
- Customize XCP Server Software
- XCP Platform Abstraction Layer