setlinio
将线性分析点保存到金宝appmodel, Linear Analysis Plots block, or Model Verification block
描述
例子
Simulink模型中的设置分析点金宝app
打开的si金宝appmulink模型。
model ='magball';Open_System(型号)
创建用于线性化植物模型的分析点的向量:
在控制器块的输出处输入扰动
Open-loop output at the output of the Magnetic Ball Plant block
io(1) = linio(``弹力/控制器'',1,'input');io(2) = linio('magball/Magnetic Ball Plant',1,'openoutput');
Write the analysis points to themagball
model.
setlinio(model,io);
The analysis points inio
作为注释添加到模型中。然后,您可以保存模型以将分析点存储在模型中。
Set Analysis Points in Linear Analysis Plots Block
打开的si金宝appmulink模型。
open_system('scdcstr')
Create analysis points for finding the transfer function between the coolant temperature and the residual concentration.
在冷却液温度块的输出处输入扰动
在CSTR块的CA输出处的输出测量
io(1) = linio('SCDCSTR/冷却液温度',1,'input');io(2) = linio('scdcstr/CSTR',2,'output');
Set the analysis points in the Bode Plot block.
setlinio('SCDCSTR/BODE图',io);
View the analysis points in the Bode Plot Block Parameters dialog box.
open_system('SCDCSTR/BODE图')
在仿真过程中,软件使用指定的分析线性化模型,并绘制所得线性系统的幅度和相位响应。
Save Old Analysis Points When Storing New Analysis Points
打开的si金宝appmulink模型。
MDL='scdpwm';Open_System(MDL)
This model is configured with analysis points for finding the combined transfer function of the PWM and plant blocks.
Create analysis points for finding the transfer function of just the plant model.
io(1) = linio('scdpwm/Voltage to PWM',1,'input');io(2) = linio(“ SCDPWM/植物模型”,1,'output');
Store the analysis points to the model, and save the previous analysis point configuration.
奥尔德奥= setlinio(mdl,io)
2x1 vector of Linearization IOs: -------------------------- 1. Linearization input perturbation located at the following signal: - Block: scdpwm/Step - Port: 1 2. Linearization output measurement located at the following signal: - Block: scdpwm/Plant Model - Port: 1
Input Arguments
MDL
—Simulink model name
character vector|string
Simulink model name, specified as a character vector or string. The model must be in the current working folder or on the MATLAB®path.
If the model is not open or loaded into memory,setlinio
加载模型into memory.
io
—分析点集
linearization I/O object|vector of linearization I/O objects
分析点集, specified as a linearization I/O object or a vector of linearization I/O objects.
每个线性化I/O对象都有以下属性:
财产 | 描述 |
---|---|
积极的 |
标志指示是否使用分析点进行线性化,指定为以下一个:
|
堵塞 |
与分析点关联的块的完整块路径,指定为字符向量。 |
Portnumber |
与分析点关联的输出端口,指定为整数。 |
类型 |
分析点类型,指定为以下之一:
有关分析点类型的更多信息,请参见Specify Portion of Model to Linearize. |
BusElement |
Bus element name with which the analysis point is associated, specified as a character vector or |
描述 |
User-specified description of the analysis point, which you can set for convenience, specified as a character vector. |
blockpath
—Linear Analysis Plots block or Model Verification block
character vector|string
Linear Analysis Plots block or Model Verification block, specified as a character vector or string that contains its full block path. The model that contains the block must be in the current working folder or on the MATLAB path.
For more information on:
Linear analysis plot blocks, seeVisualization During Simulation.
模型验证块,请参阅模型Verification.
Output Arguments
奥尔德奥
— Old analysis point set
linearization I/O object | vector of linearization I/O objects
Old analysis point set, returned as a linearization I/O object or a vector of linearization I/O objects.
替代功能
金宝app模型
You can also specify analysis points directly in a Simulink model. For more information, see指定模型的一部分,以在Simulink模型中线性化金宝app.
Version History
开放示例
You have a modified version of this example. Do you want to open this example with your edits?
matlab命令
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择一个网站
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
您还可以从以下列表中选择一个网站:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
美洲
- AméricaLatina(Español)
- 加拿大(英语)
- 美国(英语)