当前位置:网站首页>Simulink method for exporting FMU model files
Simulink method for exporting FMU model files
2022-06-27 21:51:00 【studyer_ domi】
One 、 install FMIKIT
First download FMIKit-Simulink-master.zip file , Then decompress , stay matlab Add the file to the path
addpath("C:\FMIKit-Simulink-master")
Two 、 load FMIKIT
initialization FMIKIT stay matlab Command line input :
FMIKit.initialize()
3、 ... and 、 install Cmake
install “cmake-3.21.0-windows-x86_64.msi”, For compiling
Four 、 export FMU Model file
- 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.
stay simulink Test the exported model ,

Or use FMIpy test
边栏推荐
- 本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献
- [LeetCode]动态规划解分割数组II[Arctic Fox]
- GBase 8a OLAP分析函数cume_dist的使用样例
- [LeetCode]30. Concatenate substrings of all words
- Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2)
- [LeetCode]161. 相隔为 1 的编辑距离
- The difference between scrum and Kanban
- Codeforces Round #721 (Div. 2)
- GBase 8a V8版本节点替换期间通过并发数控制资源使用减少对系统影响的方法
- GBase 8a OLAP分析函数cume_dist的使用样例
猜你喜欢

List of language weaknesses --cwe, a website worth learning

∫(0→1) ln(1+x) / (x² + 1) dx

STM32CubeIDE1.9.0\STM32CubeMX 6.5 F429IGT6加LAN8720A,配置ETH+LWIP

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!"

CEPH distributed storage

SQL必需掌握的100个重要知识点:过滤数据

Go从入门到实战——行为的定义和实现(笔记)

我想我要开始写我自己的博客了。

Icml2022 | scalable depth Gaussian Markov random field

图解基于AQS队列实现的CountDownLatch和CyclicBarrier
随机推荐
Go from introduction to actual combat -- channel closing and broadcasting (notes)
Go从入门到实战——共享内存并发机制(笔记)
Codeforces Round #723 (Div. 2)
ABC-Teleporter Setting-(思维+最短路)
Array assignment
ICML2022 | 可扩展深度高斯马尔可夫随机场
Go from entry to practice - dependency management (notes)
Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2)
洛谷P5706 再分肥宅水
GBase 8a OLAP分析函数cume_dist的使用样例
Go从入门到实战——所有任务完成(笔记)
Go from starting to Real - Interface (note)
Go从入门到实战——Panic和recover(笔记)
跟我一起AQS SOS AQS
Little known MySQL import data
根据自定义excel标题模板快速excel导出
JVM memory structure when creating objects
How to delete "know this picture" on win11 desktop
STM32CubeIDE1.9.0\STM32CubeMX 6.5 F429IGT6加LAN8720A,配置ETH+LWIP
Knowledge sorting of exception handling