Stateflow | ![]() ![]() |
Sharing Fixed-Point Data with Simulink
If you plan on sharing fixed-point data with Simulink, use one of the following methods:
For some Simulink blocks, you can specify the type of input or output data directly. For example, you can set fixed-point output data directly in the block parameters dialog of the Simulink Constant block when you select Specify via dialog for the Output data type mode field (under Show additional parameters).
For example, you can set the Simulink Constant block to inherit its type from the Stateflow Input to Simulink port that it supplies by selecting Inherit via back propagation for the Output data type mode field in its block parameters dialog (under Show additional parameters).
For a general discussion of data compatibility between Simulink blocks, see "Unified Simulink and Fixed-Point Blockset Blocks" and "Compatibility with Simulink Blocks" in the Fixed-Point Blockset documentation.
![]() | Overflow Detection for Fixed-Point Types | Fixed-Point "Bang-Bang Control" Example | ![]() |