Creating and Populating a Simulink Dataset from Simulink model

バージョン 1.3.0.0 (121 KB) 作成者: Stacey Gage
A Simulink project with files to help create a Simulink Dataset and populate the signal data

ダウンロード: 132

更新 2017/5/11

ライセンスの表示

編集メモ: This file was selected as MATLAB Central Pick of the Week

How does this work?
1. The Dataset is created from a models interface (root inports).
2. This Dataset is then populated with data specified by you. If your data is of the wrong type, data will be cast to the datatype of the root inport.
3. If placing this Dataset in the base workspace, you can set up this Dataset as external inputs to the model and simulate.
a. Use Configuration Parameters to set external input string, or
b. Use Root Inport Mapping with port order or block name mapping mode.
What is supported?
1. Built-in datatypes
2. Enumerations
3. Signals with dimensions (scalar and array)
What are the limitations?
1. No busses
2. No array of busses
3. No functions calls
See tryMe*.m in the project for examples of how to use in a MATLAB script.
Follow these directions to create your own Simulink project from this one:
http://www.mathworks.com/help/simulink/ug/create-a-new-project-from-an-archived-project.html

引用

Stacey Gage (2023). Creating and Populating a Simulink Dataset from Simulink model (https://www.mathworks.com/matlabcentral/fileexchange/58047-creating-and-populating-a-simulink-dataset-from-simulink-model), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2016a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.3.0.0

Update to use new R2017a function, createInputDataset.m

1.2.0.0

Add ability to generate Simulink Dataset from models with inherited properties on inports

1.1.0.0

1) Set default signal times to use model start time and stop time.
2) Integer signals use linear interpolation instead of zero-order hold.
3) Included README.m file in project work directory.

1.0.0.0

first submission