文章目录

  • 1. DirFeedthrough的设置
  • 2. DirFeedthrough的帮助文档
  • 3. 参考链接:

1. DirFeedthrough的设置

sizes.DirFeedthrough = 0/1
简而言之,只要在mdlOutputs函数或者mdlSampleNextTime函数中,使用到了输入 u (包括使用 u的任意元素),则DirFeedthrough = 1

2. DirFeedthrough的帮助文档

在matlab中打开了DirectFeedthrough的 help 文档,原文及翻译如下:
Direct Feedthrough means that the output (or the variable sample time for variable sample time blocks) is controlled directly by the value of an input port signal.
DirFeedthrough 是指输入端口的信号直接控制输出(或者是控制可变采样时间块的可变采样时间)。
Typically, an S-function input port has direct feedthrough if the output function (mdlOutputs) is a function of the input u.
通常情况下,如果输出函数(mdlOutputs)是有关输入 u 的函数。那么该 s 函数的输入端口是 DirFeedthrough 的,即令 DirFeedthrough = 1
That is, there is direct feedthrough if the input u is accessed by mdlOutputs.
也就是说若 mdlOutputs 含有输入 u ,则设置DirFeedthrough = 1。
Outputs can also include graphical outputs, as in the case of an XY Graph scope.
通常,输出也包括图形输出,比如 XY 图形示波器。
The "time of next hit" function (mdlGetTimeOfNextVarHit) of a variable sample time S-function accesses the input u.
可变采样时间函数 mdlGetTimeOfNextVarHit 也与输入 u 有关。
An example of a system that requires its inputs (that is, has direct feedthrough) is the operationy=k×uy=k×uy=k×uwhere u is the input, k is the gain, and y is the output.
举例来说,在 y=k×u 系统中,u 是输入,k 是增益,y 是输出,则这个系统需要对输入 u 进行操作(意味着 DirFeedthrough = 1)。
An example of a system that does not require its inputs (that is, does not have direct feedthrough) is the simple integration algorithmy=xx˙=uy=x\\ \dot x = uy=xx˙=uwhere x is the state, x˙\dot xx˙ is the state derivative with respect to time, u is the input, and y is the output. Simulink® integrates the variable x˙\dot xx˙.
相对而言,举个简单的系统不需要输入 u 的例子(意味着 DirFeedthrough = 0)。在y=xx˙=uy=x\\ \dot x = uy=xx˙=u系统中,x 是状态变量, x˙\dot xx˙是状态变量相对与时间的导数,u 是输入,y 是输出,Simulink®对变量 x˙\dot xx˙进行操作。
It is very important to set the direct feedthrough flag correctly because it affects the execution order of the blocks in your model and is used to detect algebraic loops (see Algebraic Loops in Using Simulink).
DirFeedthrough 会影响模型中程序块的执行顺序,并且它被用与检测代数循环(查看代数循环在 simulink 中的使用),因此 DirFeedthrough 标志是否设置正确是十分重要的。
If the simulation results for a model containing your S-function do not converge, or the simulation fails, you may have the direct feedthrough flag set incorrectly.
对于包含 s 函数的模型,如果仿真结果没有收敛,或者仿真失败,可能的原因是 DirFeedthrough 没有正确的被设置。
Try turning on the direct feedthrough flag and setting the Algebraic loop solver diagnostic to warning (see the Algebraic loop option on the Diagnostics Pane: Solver reference page in Simulink Graphical User Interface).
试着将 DirFeedthrough 的值取反,并把代数循环求解器的诊断
设置为警告模式(具体步骤查看代数循环诊断章节:Solver
reference page in Simulink Graphical User Interface)。
Subsequently running the simulation displays any algebraic loops in the model and shows if the engine has placed your S-function within an algebraic loop.
随后执行仿真,在模型中观察任一代数循环,确定 s 函数
被执行器放置在代数循环中。

3. 参考链接:

S函数初始化中DirFeedthrough 该如何设置
请问matlab s函数中的Dirfeedthrough怎么设定?
Matlab——如何判断某个函数为直通(Dirfeedthrough = 1)

matlab入门4-mdlInitializeSizes解析相关推荐

  1. pagerank算法实现matlab,Matlab 入门及PageRank算法求解.ppt

    Matlab 入门及PageRank算法求解 矩阵运算 + 矩阵加 - 矩阵减 * 矩阵乘 / 矩阵左除 \ 矩阵右除 ^ 矩阵幂 维数相同才能加减:方 阵才能求幂. 注意左乘,右乘. a\b?求a* ...

  2. matlab入门之旅,MATLAB 入门之旅学习笔记

    MATLAB 入门之旅学习笔记 https://matlabacademy.mathworks.com/R2019a/cn/portal.html?course=gettingstarted 1.概述 ...

  3. vuex 源码分析_前端入门之(vuex-router-sync解析)

    前端入门之(vuex-router-sync解析) 发布时间:2018-11-14 13:31, 浏览次数:513 , 标签: vuex router sync 前言:vue全家桶的内容我们已经研究过 ...

  4. python程序实例讲解_python入门编程实例 python入门编程实例解析

    python入门编程实例 python入门编程实例解析 python入门编程实例及解析: 题目:有1.2.3.4四个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 程序分析:可填在百位.十 ...

  5. Linux入门之inode解析及管道重定向

    Linux入门之inode解析及管道重定向 inode 简介: 当磁盘分区格式化后会根据分区格式.大小等信息来指定分区分配多少个inode表,每个inode表都会有一个在当前分区中唯一的编号,可能有一 ...

  6. matlab在大气科学,MATLAB入门在大气科学中的应用学术沙龙活动圆满成功

    2010年4月12日上午,在我所研究生部的大力支持下,大气科学常用数据分析软件系列学术沙龙讲座在研究生公寓一层会议室拉开帷幕.本活动宗旨是激发学生们的学习热情和学习动力,促进学生间的相互了解,加强课题 ...

  7. matlab 有一函数 _写一程序_输入自变量的值_输出函数值.,第2讲 MATLAB入门1_数学建模_ppt_大学课件预览_高等教育资讯网...

    数学建模与数学实验 MATLAB入门数学建模及其基于 MATLAB的实现辽宁工程技术大学理学院应用数学系 MATLAB作为线性系统的一种分析和仿真工具,是理工科大学生应该掌握的技术工具,它作为一种编程 ...

  8. Matlab中的参数解析

    本文中,我们讨论如何在Matlab中进行参数解析. 参数解析对于软件开发和程序设计至关重要.在Matlab中,函数参数传递一般采用直接传值方式,最复杂的情况下也就是使用varargin变长数组.那么如 ...

  9. matlab入门精讲 【官方资料精简而来,确保全面】

    matlab入门精讲 learn_matlab_zh_CN.pdf             Matlab快速入门[本文取于此书] matlab_3d_visualize_zh_CN.pdf      ...

  10. 8 精通matlab入门求微分方程组的通解特解数值解看这篇文章就够了

    %% 学习目标:使用MATLAB求解常微分方程 通解 特解 数值解 %% 求微分方程的通解 clear all; f1=dsolve('Dy-y=sin(x)') %默认情况下以t为自变量求解 求出的 ...

最新文章

  1. 5G:这次中国说了算!
  2. 虚拟机服务器503解决,(图文)解决重启VCSA 6.0提示:503 Service Unavailable错误
  3. 线性表之链式存储结构
  4. 数据中心空调系统一种变风量节能控制策略
  5. python爬虫天气预报难不难_python爬虫可以用来看天气预报吗?
  6. word自定义模板的存储位置
  7. 集合视图控制器(CollectionViewController) 、 标签控制器(TabBarController) 、 高级控件介绍...
  8. Redis系列教程(三):如何解决Redis缓存雪崩、缓存穿透、缓存并发等5大难题
  9. [C++] - 中的复制初始化(copy initialization)
  10. 关于更改apache和mysql的路径的问题..
  11. linux下驱动程序数字签名,64位Windows操作系统为驱动程序添加测试数字签名
  12. python数字金额转换为中文大写金额
  13. 【Linux】rm -rf 删除命令
  14. Zabbix实现短信报警设置(实战)
  15. 小女子12行代码实现Javascript双向数据绑定两个input框
  16. 服务器内存怎么看型号,怎么查看服务器内存的型号
  17. 常用设计模式系列(十)—装饰者模式
  18. 银河麒麟专用服务器RPM软件包打包方式。
  19. Go语言中的uint和int的区别
  20. Android rom开发:mtk android9.0 开放预置app权限

热门文章

  1. dj电商-架构与布局
  2. 如何绘制吞吐率曲线图
  3. 卡巴斯基发现新型恶意软件StoneDrill,或与 Shamoon有关
  4. Spring-boot快速实现Spring框架配置
  5. oninput,onpropertychange,onchange的使用方法和差别
  6. JQuery中trim函数的具体实现代码
  7. SEO(search engine optimization)搜索引擎优化
  8. Linq杂谈之 — Linq导入Excel
  9. [转帖]每天看一遍,释怀所有难过
  10. 文昌帝君 -- 《文昌帝君阴骘文》