このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
Control Format and Placement of Rate Transition Block Code and Data (Embedded Coder)
If you have an Embedded Coder® license and your model is configured to use a data code interface, you can control the format and placement of code generated for Rate Transition blocks by changing the setting of model configuration parameter Rate Transition block code (Embedded Coder). By default, the code generator inlines Rate Transition block code with other model code and declares the block data in the global block state structure.
Alternatively, for Rate Transition blocks, you can configure the code generator to place the block state data in a dedicated structure and produce separate functions that model entry-point functions call.
getandsetfunctions thatentry-point functions callmodel_stepstartandinitializefunctions that theentry-point function callsmodel_initialize
To change the format and placement of the code:
Make sure that Rate Transition blocks are not fed by a variable-size signal and are not inside a For Each Subsystem block.
Select Rate Transition block parameter Ensure data integrity during data transfer.
Set model diagnostic parameter Multitask data transfer to
error.Set model configuration parameter Rate Transition block code to
Function.
参考
トピック
- Rate Transitions (Embedded Coder)
- Control Data Transfer Behavior in Generated Code (Embedded Coder)
- Detect Data Transfer Issues in a Model (Embedded Coder)