主要内容

setlinio

将线性分析点保存到金宝appmodel, Linear Analysis Plots block, or Model Verification block

描述

example

setlinio(MDL,io)编写指定的分析点ioto the Simulink®modelMDL.

example

setlinio(blockpath,io)将指定的分析点设置为指定的线性分析图块或模型验证块。

example

奥尔德奥= setlinio(___)返回模型或块中当前的分析点集,并替换为io使用任何先前的语法。

例子

全部收缩

打开的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 themagballmodel.

setlinio(model,io);

The analysis points inio作为注释添加到模型中。然后,您可以保存模型以将分析点存储在模型中。

打开的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图')

在仿真过程中,软件使用指定的分析线性化模型,并绘制所得线性系统的幅度和相位响应。

打开的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

全部收缩

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.

分析点集, specified as a linearization I/O object or a vector of linearization I/O objects.

每个线性化I/O对象都有以下属性:

财产 描述
积极的

标志指示是否使用分析点进行线性化,指定为以下一个:

  • 'on'- 使用分析点进行线性化。此值是默认选项。

  • '离开'— Do not use the analysis point for linearization. Use this option if you have an existing set of analysis points and you want to linearize a model with a subset of these points.

堵塞

与分析点关联的块的完整块路径,指定为字符向量。

Portnumber

与分析点关联的输出端口,指定为整数。

类型

分析点类型,指定为以下之一:

  • 'input'— Input perturbation

  • 'output'- 输出测量

  • 'loopbreak'——循环打破

  • 'openinput'- 开环输入

  • 'openoutput'— Open-loop output

  • 'looptransfer'- 循环转移

  • '灵敏度'— Sensitivity

  • 'compsensitivity'— Complementary sensitivity

有关分析点类型的更多信息,请参见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.

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:

Output Arguments

全部收缩

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

在R2006a之前引入