Fixed-Point Data Type Support in the Ground Block

This example shows how to use the Ground block to ground block input ports that have fixed-point data types. The top row of this example illustrates the Ground block behavior when the fixed-point data type can represent zero. In that case, the Ground block outputs a signal with zero value, and the same fixed-point data type as the port it is connected to.

In the bottom row of this example, the output of the Constant block determines the data type of the port to which the Ground block is connected (fixdt(0,8,1,1)). Because zero cannot be represented exactly by the data type fixdt(0,8,1,1), the Ground block outputs a nonzero value that is the closest possible value to zero (in this case, 1).