Introduction to Simulink with Engineering Applications

This chapter is an introduction to the Sinks library. This is the thirteenth library in the Simulink group of libraries and consists of three sub-libraries, the Model & Subsystem Outputs Sub-Library, the Data Viewers Sub-Library, and the Simulation Control Sub-Library blocks shown below. We will describe the function of each block included in this library and we will perform simulation examples to illustrate their application.

The Models and Subsystems Outputs Sub-Library contains the blocks described in Subsections 14.1.1 through 14.1.4 below.
The Outport block creates an external output or an output port for a subsystem. This block is described in Section 2.1, Chapter 2, Page 2 2.
The Terminator block can be used to cap blocks whose output ports are not connected to other blocks. If we run a simulation with blocks having unconnected output ports, Simulink issues warning messages. We use Terminator blocks to cap those blocks to avoid warning messages. This block is described in Section 2.3, Chapter 2, Page 2 5.

The To File block writes its input to a matrix in a MAT-file. The block writes one column for each time step: the first row is the simulation time; the remainder of the column is the input data, one data point for each element in the input vector.
Let us consider matrix C defined as
where the elements of...