| Contents | Index |
| On this page… |
|---|
Simulink provides two features to import data and view simulation results: the Signal Builder block and the Simulation Data Inspector. Use the Signal Builder block to import input signals into your model. The Simulation Data Inspector allows you to view model output signals and compare them.
A typical workflow includes the following steps:
Import signal data from a Microsoft® Excel® spreadsheet into a Signal Builder block. Import Signal Data
Simulate the model after enabling the logging of output signals during simulation. Simulate Model
View and compare the output signals in the Simulation Data Inspector. Compare Signals
Create, print, and save a plot from the Simulation Data Inspector. Create, Save, and Print a Figure
sldemo_2counters is a Simulink model that includes a Signal Builder block and two subsystems. Each subsystem is a counter circuit.
Enabled Subsystem — Increments the counter when the subsystem is enabled and subsequently retains its output while the subsystem is disabled. Because the Enable port is configured to reset states when enabling, the counter returns to zero when the subsystem is re-enabled.
Triggered Subsystem — Increments the counter for each rising edge of the control signal.

sldemo_signal_builder.xls is a Microsoft Excel file. It contains two sets of input data on two sheets. The first set of input data is a square wave to test the model response to an impulse. The second set of input data is a triangular wave to test the model response to a ramp signal.

![]() | Basic Simulation Workflow | Import Signal Data | ![]() |

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 |