Fixed-Point S-Functions: Data Type Propagation
R2026bThis model shows how to propagate fixed-point data types in fixed-point S-functions. The model exercises a custom C-language S-function written to enforce data types across multiple signals. This operation is available in Simulink® with the Data Type Propagation block, which can be used for comparison with this S-function example.
To see the source code for the S-function, double-click the DTProp block to open the Block Parameters dialog. When the dialog box appears, click the Open the source file button.


