Skip to Main Content Skip to Search
Product Documentation

Ground - Ground unconnected input port

Library

Sources

Description

The Ground block connects to blocks whose input ports do not connect to other blocks. If you run a simulation with blocks having unconnected input ports, Simulink issues warnings. Using a Ground block to ground those unconnected blocks can prevent these warnings.

The Ground block outputs a signal of the same data type as the port to which it connects. For example, consider the following model:

In this example, the output of the Constant block determines the data type (int8) of the port to which the Ground block is connected. That port determines the output data type of the Ground block.

The Ground block outputs a signal with zero value. When the output data type cannot represent zero exactly, the Ground block outputs a nonzero value that is the closest possible value to zero. This behavior applies only to fixed-point data types with nonzero bias. The following expressions are examples of fixed-point data types that cannot represent zero:

If the output is an enumerated data type, the Ground block outputs the default value of the enumeration. This behavior applies whether or not:

If the enumerated type does not have a default value, the Ground block outputs the first enumeration value in the type definition.

Data Type Support

The Ground block supports all data types that Simulink supports, including fixed-point and enumerated data types. For more information, see Data Types Supported by Simulink in the Simulink documentation.

Parameters and Dialog Box

Examples

The following Simulink demos show how to use the Ground block:

Characteristics

Sample Time

Constant (inf)

Dimensionalized

Yes

Multidimensionalized

Yes

Virtual

Yes

For more information, see Virtual Blocks in the Simulink documentation.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS