Main Content

Fixed-Point S-Functions: Fixed-Point Source

This example shows a custom C language S-function written to generate a constant value. This operation is available in Simulink® with the "Constant" block, which can be used for comparison with this S-function example.

To see the source code for the S-function, right-click In the Edit Mask row of the context menu, pause on the arrow, and then click Look Inside Mask. Double click the S-Function block. When the dialog box appears, click the Edit button.