第七章
Simulink 基础
Chapter 7: Introduction to Simulink
一.Simulink 初步(Primer of Simulink)
MATLAB
Simulink是一个动态仿真系统,用于对动态系统进行仿真和分析,预先模拟实际系统的特性和响应,根据设计和使用要求,对系统进行修改和优化。
Simulink提供了图形化用户界面,只须点击鼠标就可以轻易的完成模型的创建、调试和仿真工作,用户不须专门掌握一种程序设计语言。
Simulink可将系统分为从高级到低级的几个层次,每层又可以细分为几个部分,每层系统构建完成后,将各层连接起来构成一个完整系统。
模型创建完成后,可以启动系统的仿真功能分析系统的动态特性,其内置的分析工具包括各种仿真算法、系统线性化、寻求平衡点等。仿真结果可以以图形方式在示波器窗口显示,也可将输出结果以变量形式保存起来,并输入到MATLAB中以完成进一步的分析。
Simulink可以仿真线性和非线性系统,并能创建连续时间、离散时间或二者混合的系统。支持多采样频率系统。
Simulink
Version 6.0 (R14) 05-May-2004
Model
analysis and construction functions.
Simulation
sim -
Simulate a Simulink model.
sldebug - Debug a Simulink model.
simset
- Define options to SIM Options structure.
simget
- Get SIM Options structure
Linearization and trimming.
linmod
- Extract linear model from continuous-time system.
linmod2 - Extract linear model, advanced
method.
dlinmod - Extract linear model from discrete-time
system.
trim -
Find steady-state operating point.
Model
Construction.
close_system - Close open model or block.
new_system - Create new empty model window.
open_system - Open existing model or block.
load_system - Load existing model without making model
visible.
save_system - Save an open model.
add_block - Add new block.
add_line - Add new line.
delete_block - Remove block.
delete_line - Remove line.
find_system - Search a model.
hilite_system - Hilite objects within a
model.
replace_block - Replace existing blocks with a new
block.
set_param - Set parameter values for model or
block.
get_param - Get simulation parameter values from
model.
add_param - Add a user-defined string parameter to a
model.
delete_param - Delete a user-defined parameter from a
model.
bdclose - Close a Simulink window.
bdroot
- Root level model name.
gcb -
Get the name of the current block.
gcbh -
Get the handle of the current block.
gcs -
Get the name of the current system.
getfullname - get the full path name of