主要内容

Mark Signals of Interest for Batch Linearization

When batch linearizing a model using anSllinearizerinterface, you can mark signals of interest using analysis points. You can then analyze the response of your system at any of these points using functions such asgetIOTransfergetLoopTransfer

另外,如果您使用以下方式将模型线性化。

有关选择批处理线性化工具的更多信息,请参见Choose Batch Linearization Methods

分析点

分析点识别Simulink中的位置万博1manbetx®与线性分析相关的模型。每个分析点与源自Simulink块的外口的信号相关联。万博1manbetx例如,在以下模型中,参考信号r和the control signaluare analysis points that originate from the outputs of the设定点Cblocks respectively.

Each analysis point can serve one or more of the following purposes:

  • 输入- 该软件在分析点上注入加法输入信号,以模拟工厂输入的干扰。

  • Output— The software measures the signal value at a point, for example, to study the impact of a disturbance on the plant output.

  • Loop Opening— The software interprets a break in the signal flow at a point, for example, to study the open-loop response at the plant input.

当您将分析点用于多个目的时,该软件将在此序列中应用目的:输出测量,然后循环打开,然后输入。

Using analysis points, you can extract open-loop and closed-loop responses from a Simulink model. You can also specify requirements for control system tuning using analysis points. For more information, seeMark Signals of Interest for Control System Analysis and Design

Specify Analysis Points

You can mark analysis points either explicitly in the Simulink model, or programmatically using theaddPointcommand for anSllinearizerinterface.

Mark Analysis Points in万博1manbetx模型

要直接在Simulink模型中指定分析点,请首先打开万博1manbetx线性化tab. To do so, in theAppsgallery, click线性化Manager

指定一个分析点:

  1. 在模型中,单击要定义为分析点的信号。

  2. On the线性化标签,在Insert Analysis Points画廊,选择要定义的分析点的类型。

    当您指定分析点时,软件会向指示线性分析点类型的模型添加注释。

  3. Repeat steps 1 and 2 for all signals you want to define as analysis points.

You can select any of the following closed-loop analysis point types, which are equivalent within anSllinearizerinterface.

  • 输入Perturbation

  • Output Measurement

  • 灵敏度

  • 互补灵敏度

如果您还想在信号上引入永久性循环开口,请选择以下开环分析点类型之一:

  • 开环输入

  • Open-Loop Output

  • 循环转移

  • 循环中断

When you define a signal as an open-loop point, analysis functions such asgetIOTransferalways enforce a loop break at that signal during linearization. All open-loop analysis point types are equivalent within anSllinearizerinterface. For more information on how the software treats loop openings during linearization, seeHow the Software Treats Loop Openings

When you create anSllinearizerinterface for a model, any analysis points defined in the model are automatically added to the interface. If you defined an analysis point using:

  • A closed-loop type, the signal is added as an analysis point only.

  • An open-loop type, the signal is added as both an analysis point and a permanent opening.

Mark Analysis Points Programmatically

To mark analysis points programmatically, use theaddPoint命令。例如,考虑scdcascademodel.

open_system('scdcascade')

要标记分析点,首先创建一个Sllinearizerinterface.

sllin = slLinearizer('scdcascade');

要添加信号作为分析点,请使用addPoint命令,指定信号的源块和端口号。

AddPoint(Sllin,'scdcascade/C1',1);

If the source block has a single output port, you can omit the port number.

AddPoint(Sllin,'scdcascade/g2');

For convenience, you can also mark analysis points using the:

  • Name of the signal.

    AddPoint(Sllin,'y2');
  • 组合源块路径和端口号。

    AddPoint(Sllin,'scdcascade/c1/1')
  • End of the full source block path when unambiguous.

    AddPoint(Sllin,'g1/1')

You can also add permanent openings to anSllinearizer使用addOpeningcommand, and specifying signals in the same way as foraddPoint。有关软件在线性化过程中如何处理循环开口的更多信息,请参见How the Software Treats Loop Openings

addOpening(sllin,'y1m');

You can also define analysis points by creating linearization I/O objects using theLinio命令。

io(1) = linio('scdcascade/C1',1,'input');io(2) = linio('scdcascade/g1',1,'output');AddPoint(Sllin,io);

就像定义分析直接指向模型中时一样,如果您指定线性化I/O对象:

  • A closed-loop type, the signal is added as an analysis point only.

  • An open-loop type, the signal is added as both an analysis point and a permanent opening.

Refer to Analysis Points

Once you have marked analysis points in anSllinearizer接口,您可以使用以下分析功能在任何这些点分析响应:

  • getIOTransfer— Transfer function for specified inputs and outputs

  • getLoopTransfer— Open-loop transfer function from an additive input at a specified point to a measurement at the same point

  • getSensitivity— Sensitivity function at a specified point

  • getCompSensitivity- 指定点的互补灵敏度功能

To view the available analysis points in anSllinearizer接口,使用GetPoint命令。

GetPoint(sllin)
ans = 3x1单元格数组{'scdcascade/c1/1 [u1]'} {'scdcascade/g2/1 [y2]'} {'scdcascade/g1/1 [y1]'}

要使用分析功能,您可以指定分析点名称返回的分析点名称的明确缩写GetPoint。For example, compute the transfer function fromu1toy1, and find the sensitivity to a disturbance at the output of blockG2

位店长= getIOTransfer (sllin,'u1','y1');sensg2 =敏感性(sllin,'g2');

See Also

|||

相关话题