Using Simulink Previous page   Next Page

Generator and Viewer Objects

This group of controls lets you edit the sources and viewers already associated with your model. It contains the following controls.

Generators

The Generators pane displays a table listing the generators associated with your model.

Each row corresponds to a generator. The columns specify each generator's name and type.

Viewers

The Viewers pane displays a table listing the viewers associated with your model.

Each row corresponds to a viewer. The columns specify each viewer's name, type, and number of inputs. If a viewer accepts a variable number of inputs, the #in entry for the viewer contains a pull-down list that displays the range of inputs that the viewer can accept. To change the number of inputs accepted by the viewer, pull down the list and select the desired value.

Edit Buttons

Selecting the table entry for a generator or viewer enables the following buttons.

Button
Description

Opens the parameter dialog box for the selected generator or viewer. The parameter dialog box enables you to view and change the current settings of the selected object's parameters. See the documentation for the corresponding source or sink block for more information.

Opens the Signal Selector for the selected generator or viewer. The Signal Selector lets you connect signal generators to your model's inputs and your model's signals to its signal viewers.

    Note    You can also use port or signal context menus to connect signals to input ports and output ports to viewers. For example, to connect a signal to a new viewer, select Create Viewer from the signal or output port's context menu, then the type of viewer. To connect a signal to an existing viewer, select Connect to Viewer, then the axis to display the signal. You can connect multiple signals to the axes of a Simulink Scope viewer. Similarly, to connect a new signal generator to a block input port, select Create Generator from the input port's context menu, then the type of generator.


Deletes the selected generator or viewer.

Edit Menu

Selecting a row in the generator or viewer table and pressing the right button on your mouse displays an edit menu containing entries corresponding to the edit buttons described in the preceding section. It also displays a Rename command for renaming the selected object (e.g., a viewer). Selecting this command causes Simulink to replace the selected object's name with an edit control. Use the edit control to rename the object.


Previous page  The Signal & Scope Manager Signals connected to Generator/Viewer Next page

© 1994-2005 The MathWorks, Inc.