当前位置:网站首页>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测试
边栏推荐
- Go from introduction to actual combat - context and task cancellation (notes)
- Day8 ---- 云资讯项目介绍与创建
- Full record of 2022 open source moment at Huawei partners and Developers Conference
- Go从入门到实战——所有任务完成(笔记)
- Go从入门到实战——package(笔记)
- Null pointer exception
- 根据自定义excel标题模板快速excel导出
- Covering access to 2w+ traffic monitoring equipment, EMQ creates a new digital engine for all elements of traffic in Shenzhen
- Scrum和看板的区别
- Industry case | see the operation of bank digital transformation from the king of retail
猜你喜欢

"Apprendre cette image" apparaît sur le Bureau win11 comment supprimer

MySQL performance optimization index function, hidden, prefix, hash index usage (2)

快递e栈——数组篇小型项目

Codeforces Round #723 (Div. 2)

Go from introduction to practice - Interface (notes)

Go从入门到实战——Context与任务取消(笔记)

熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊

VMware vSphere esxi 7.0 installation tutorial

Go从入门到实战——共享内存并发机制(笔记)

Process control task
随机推荐
Go from introduction to practice -- coordination mechanism (note)
SQL必需掌握的100个重要知识点:创建计算字段
Go从入门到实战——错误机制(笔记)
OpenSSL 编程 二:搭建 CA
Experience Navicat premium 16, unlimited reset, 14 day trial method (with source code)
互联网 35~40 岁的一线研发人员,对于此岗位的核心竞争力是什么?
GBase 8a V8版本节点替换期间通过并发数控制资源使用减少对系统影响的方法
Can Oracle's CTAs bring constraints and other attributes to the new table?
豆沙绿保护你的双眼
Here are 12 commonly used function formulas for you. All used ones are good
Go从入门到实战——channel的关闭和广播(笔记)
强制 20 天内开发 APP 后集体被裁,技术负责人怒批:祝“早日倒闭!”
100 important knowledge points that SQL must master: filtering data
鲜为人知的mysql导入数据
Codeforces Round #721 (Div. 2)
String类的常用方法
Go from introduction to practice - polymorphism (note)
TypeScript学习
Go从入门到实战——协程机制(笔记)
快速excel导出