Download Simulink User's Guide

Transcript
using_simulink_book_2.1 : c09_blocks_2of3 Page 79 Thursday, May 22, 1997 2:24 PM
Inport
If you renumber the Port number of an Inport block, the block becomes
connected to a different input port, although the block continues to receive its
signal from the same block outside the subsystem.
The Inport block name appears in the Subsystem block icon as a port label. To
suppress display of the label, select the Inport block and choose Hide Name
from the Format menu. Then, choose Update Diagram from the Edit menu.
Inport Blocks in a Top-Level System
Inport blocks in a top-level system have two uses: to supply external inputs
from the workspace, which you can do by using either the Simulation
Parameters dialog box or the sim command, and to provide a means for
analysis functions to perturb the model:
• To supply external inputs from the workspace (using the Simulation
Parameters dialog box). On the Workspace I/O tab, select the Input check
box in the Load from workspace area. In the data field, specify either the
matrix of time and input values, or a function that provides input values:
Select this check
box to load input
from the workspace
using Inport blocks.
If you specify a matrix of time and input values, the first column is a vector
of time values. Remaining columns are data at those time values, where each
column supplies data for an Inport block, in port number order. If necessary,
Simulink interpolates input data for time values not in the time vector.
If you specify a function, the function is evaluated at each time step to
generate one or more inputs.
9-79