5.0

5.0 | 2 ratings Rate this file 11 Downloads (last 30 days) File Size: 35.92 KB File ID: #15852
image thumbnail

Example: Creating TimeSeries and TsArray Inputs for Simulink Bus Signal Input Data

by Robyn Jackey

 

06 Aug 2007 (Updated 22 Jan 2010)

Create timeseries inputs for Simulink model root inports that are bus signals.

| Watch this File

File Information
Description

This entry provides functions and examples allowing you to create Simulink.TsArray and Simulink.TimeSeries objects from a script or the MATLAB command line. A Simulink.TsArray object can be used as input data for a bus signal input in Simulink.

Note: These functions contain **UNDOCUMENTED** functionality that is subject to change in a future MathWorks release. The code has been tested in R2009b, but there is no guarantee of future compatibility.

Acknowledgements
This submission has inspired the following:
Create Bus Data for Models with Root-Level Bus Inputs, CreateMatrixFromModelData
Required Products Simulink
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
12 Sep 2007 Takashi Chikamasa

Great work! It's really useful.

05 Sep 2008 Joel Henry

This tool is an absolute necessity when working with stand-alone Simulink models that have bus inputs. I believe that it should be embedded in future releases of Simulink.

13 Nov 2009 Stuart Bowman

Thank you! Works just fine in 2009a and should be a really big help to our team.

I echo the above comment from Mr. Henry. This capability should be included in future releases of Simulink.

Please login to add a comment or rating.
Updates
17 Sep 2007

Updated to fix a speed issue with larger datasets.

01 Dec 2009

Updated copyright statements for BSD license.

02 Dec 2009

Updated copyright statements to BSD license. Published code in M-files instead of P-files.

22 Jan 2010

CreateTimeSeries.m
- Updated the code for computing the End Time (tEnd) for matrix data >= 2D.
- Updated copyright to 2010

Tag Activity for this File
Tag Applied By Date/Time
data import Robyn Jackey 22 Oct 2008 09:22:18
data export Robyn Jackey 22 Oct 2008 09:22:18
simulink structure bus signal input inport port tsarray timeseri Robyn Jackey 22 Oct 2008 09:22:18
simulink structure bus signal input inport port tsarray timeseri Mike Anthony 14 Nov 2008 12:05:39
data import Mike Anthony 14 Nov 2008 12:05:51
data export Mike Anthony 20 Oct 2009 11:58:21
initialize bus initialization root top model Robyn Jackey 07 Jun 2010 15:11:19
data export Sreenivasulu Ozili 08 Jun 2010 02:47:18
data import Pankaj 20 Dec 2010 02:43:42

Contact us at files@mathworks.com