当前位置:网站首页>Simulink导出FMU模型文件方法
Simulink导出FMU模型文件方法
2022-06-27 19:34:00 【studyer_domi】
一、安装FMIKIT
首先下载FMIKit-Simulink-master.zip文件,然后解压缩,在matlab中把添加该文件到路径
addpath("C:\FMIKit-Simulink-master")
二、加载FMIKIT
初始化FMIKIT在matlab命令行输入:
FMIKit.initialize()
三、安装Cmake
安装“cmake-3.21.0-windows-x86_64.msi”,用以编译用的
四、导出FMU模型文件
- Add external inputs and outputs (optional)
- Open **Simulation > Model Configuration Parameters** (CTRL+E)
- Under **Solver > Type** select **Fixed-step** for a Co-Simulation FMU or **Variable-step** for a Model Exchange FMU
- Under **Code Generation > System target file** click **Browse** and select **grtfmi.tlc** for a Generic Real-Time based FMU or **rtwsfcnfmi.tlc** for an S-function based FMU
- Under **Code Generation > CMake** select the **CMake generator** for your toolchain
- Apply the **Model Configuration Parameters** dialog
- Select **Code > C/C++ Code > Build Model** (CTRL+B) to export the FMU to the current working directory。
在simulink测试导出的模型,

或者用FMIpy测试
边栏推荐
- 100 important knowledge points that SQL must master: retrieving data
- CEPH distributed storage
- linux下安装oracle11g 静默安装教程
- Burp suite遇到的常见问题
- Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
- Use the storcli tool to configure raid. Just collect this article
- GBase 8a数据库用户密码安全相关参数汇总
- DO280OpenShift访问控制--security policy和章节实验
- Day8 ---- 云资讯项目介绍与创建
- 空指针异常
猜你喜欢

抖音的兴趣电商已经碰到流量天花板?

Burp suite遇到的常见问题

Go从入门到实战——错误机制(笔记)

语言弱点列表--CWE,一个值得学习的网站

AI 绘画极简教程

Release of global Unicorn list in 2021: the full list of 301 Unicorn enterprises in China is coming!

01-Golang-环境搭建

Experience Navicat premium 16, unlimited reset, 14 day trial method (with source code)

Can Oracle's CTAs bring constraints and other attributes to the new table?
![Unleash the innovative power of open source database | [Gansu] opengauss meetup has come to a successful conclusion](/img/21/9c5f5122270adea9444ff5f2d199ed.jpg)
Unleash the innovative power of open source database | [Gansu] opengauss meetup has come to a successful conclusion
随机推荐
After being forced to develop the app within 20 days, the group was laid off, and the technical director angrily criticized it: I wish "closure as soon as possible!"
Modify large online games through CE modifier
∫(0→1) ln(1+x) / (x ² + 1) dx
熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
SQL必需掌握的100个重要知识点:检索数据
Covering access to 2w+ traffic monitoring equipment, EMQ creates a new digital engine for all elements of traffic in Shenzhen
100 important knowledge points that SQL must master: creating calculation fields
Flask----应用案例
SQL必需掌握的100个重要知识点:排序检索数据
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
SQL必需掌握的100个重要知识点:过滤数据
Go from introduction to actual combat - panic and recover (notes)
SQL必需掌握的100个重要知识点:用通配符进行过滤
图解基于AQS队列实现的CountDownLatch和CyclicBarrier
The difference between scrum and Kanban
Burp suite遇到的常见问题
Set code exercise
100 important knowledge points that SQL must master: combining where clauses
Go从入门到实战—— 多路选择和超时控制(笔记)
Here are 12 commonly used function formulas for you. All used ones are good