Skip to Main Content Skip to Search
Product Documentation

Overview

Data Import and Logging Workflow

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:

  1. Import signal data from a Microsoft® Excel® spreadsheet into a Signal Builder block. Import Signal Data

  2. Simulate the model after enabling the logging of output signals during simulation. Simulate Model

  3. View and compare the output signals in the Simulation Data Inspector. Compare Signals

  4. Create, print, and save a plot from the Simulation Data Inspector. Create, Save, and Print a Figure

Example Description

sldemo_2counters is a Simulink model that includes a Signal Builder block and two subsystems. Each subsystem is a counter circuit.

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.

  


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