网站大量收购闲置独家精品文档,联系QQ:2885784924

RTLAB系统仿真_培训.ppt

  1. 1、本文档共216页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
RTLAB系统仿真_培训

Python API与 RT-LAB 主机 RT-LAB Maincontrol的所有功能都可以在python下完成. 查看Maincontrol?Help?API 得到python中所有的函数调用. 为了将RT-LAB python库 引入python中: Import OpalApiPy 为了调用 RT-LAB API 函数 EX: OpalApiPy.SetCurrentModel(filename) Python API与 RT-LAB 主机 获取组1.PY 例子显示了怎样使用Python API从获取组中得到一些数据。你将在这个目录下发现这个例子 RT-LAB/Common/API_example 运行这个脚本前,核实模型被编译且正在运行。 注意你将接收到的获取数量,反映了你在RT-LAB Maincontrol 下probe control中指定的帧数量。 RT_LAB 可编程应用接口 RT-LAB 可编程应用接口 介绍 介绍 Python 介绍 TestDrive TestDrive例子 在这个训练中,我们将探究TestDrive 与 我们建立的模型! 问题? * Loop Iteration At each time step, the Simulink Engine: 1. Computes the models outputs. The Simulink Engine initiates this step by invoking the Simulink model Outputs method. The model Outputs method in turn invokes the model system Outputs method, which invokes the Outputs methods of the blocks that the model contains in the order specified by the Outputs method execution lists generated in the Link phase of the simulation (see Solvers). The system Outputs method passes the following arguments to each block Outputs method: a pointer to the blocks data structure and to its SimBlock structure. The SimBlock data structures point to information that the Outputs method needs to compute the blocks outputs, including the location of its input buffers and its output buffers. 2. Computes the models states. The Simulink Engine computes a models states by invoking a solver. Which solver it invokes depends on whether the model has no states, only discrete states, only continuous states, or both continuous and discrete states. If the model has only discrete states, the Simulink Engine invokes the discrete solver selected by the user. The solver computes the size of the time step needed to hit the models sample times. It then invokes the Update method of the model. The model Update method invokes the Update method of its system, which invokes the Update methods of each of the blocks that the system contains in the order specified

您可能关注的文档

文档评论(0)

153****9595 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档