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 Gateway In block (Dbl To FixPt1) 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 Gateway Out (FixPt to Dbl1) 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 GUI block launches the Fixed-Point Settings interface, 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. If you have many fixed-point blocks whose scaling must be optimized, however, you should use this tool. Refer to Tutorial: Feedback Controller Simulation for more information.


  Example: Converting from Doubles to Fixed-Point Simulation Results