Simulink Project - What are Simulink Projects?

我们在使用Matlab进行开发仿真时,一个系统总会有许多个模块。对每个模块的建模可能有多个版本,为了更好的管理每个模块及版本,Matlab提供了Simulink Project这么一个功能。help文档这么描述Simulink Project:

You can use Simulink® Projects to help you organize your work. Find all your required files; manage and share files, settings, and user-defined tasks; and interact with source control.

If your work involves any of the following:

More than one model file
More than one model developer
More than one model version
— then Simulink Projects can help you organize your work. You can manage all the files you need in one place — all MATLAB® and Simulink files, and any other file types you need such as data, requirements, reports, spreadsheets, tests, or generated files.

Projects can promote more efficient team work and individual productivity by helping you:

Find all the files that belong with your project.
Create standard ways to initialize and shut down a project.
Create, store, and easily access common operations.
View and label modified files for peer review workflows.
Share projects using built-in integration with Subversion® (SVN) or Git™, external source control tools.

因此,对系统的仿真,一开始就以工程的形式进行开发,对后续的管理将非常有利。

学习Simulink Projects,从例程开始。

在matlab命令窗口中输入"sldemo_slproject_airframe_svn",matlab自动生成一个例程。从该例程中,理解:

(1)Understand Project Startup and Shutdown Tasks

(2)Create a Startup Shortcut

When you open the project, the project performs the default action for startup shortcut files depending on their type:
Run .m files.
Load .mat files.
Open Simulink models.

(3)Open and Run Frequently Used Files

Regenerate the S-functions 需要安装C/C++编译器,MATLAB Support for MinGW-w64 C/C++ Compiler

 

posted @ 2020-07-12 10:48  wqq2000happy  阅读(305)  评论(0编辑  收藏  举报