Fixed-Point Blockset    

Block Descriptions

The Signal Generator block is configured to output a sine wave with an amplitude defined on the interval [-5 5]. It always outputs double-precision numbers.

The FixPt Gateway In block is used as the interface between Simulink and the Fixed-Point Blockset. Its function is to convert the double-precision numbers from the Signal Generator block into one of the Fixed-Point Blockset data types. For simplicity, its output signal is limited to 5 bits in this example.

The FixPt Gateway Out block is used as the interface between the Fixed-Point Blockset and Simulink. Its function is to convert one of the Fixed-Point Blockset data types into a Simulink data type. In this example, it outputs double-precision numbers.

The FixPt GUI block launches the Fixed-Point Blockset Interface tool, fxptdlg. This tool provides convenient access to the global override and logging parameters, the logged minimum and maximum simulation data, the automatic scaling script, and the plot interface tool. It is not used in this example. However, if you have many fixed-point blocks whose scaling must be optimized, you should use this tool. Refer to Chapter 6, Tutorial: Feedback Controller Simulation for more information.


 Example: Converting from Doubles to Fixed-Point Simulation Results