当前位置:网站首页>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
边栏推荐
- Oracle migration MySQL unique index case insensitive don't be afraid
- Common methods of string class
- Go from introduction to actual combat -- channel closing and broadcasting (notes)
- Go从入门到实战——多态(笔记)
- 语言弱点列表--CWE,一个值得学习的网站
- CORBA 架构体系指南(通用对象请求代理体系架构)
- qt base64加解密
- qt 大文件生成md5校验码
- 根据自定义excel标题模板快速excel导出
- STM32F107+LAN8720A使用STM32cubeMX配置网络连接+tcp主从机+UDP app
猜你喜欢

Icml2022 | scalable depth Gaussian Markov random field

JVM memory structure when creating objects

本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献

Codeforces Round #716 (Div. 2)

Set code exercise

ICML2022 | 可扩展深度高斯马尔可夫随机场

集合代码练习

MYSQL和MongoDB的分析

Tiktok's interest in e-commerce has hit the traffic ceiling?

今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献
随机推荐
跟我一起AQS SOS AQS
Go从入门到实战——Context与任务取消(笔记)
快递e栈——数组篇小型项目
qt 大文件生成md5校验码
Go from starting to Real - Interface (note)
SQL必需掌握的100个重要知识点:使用函数处理数据
matlab查找某一行或者某一列在矩阵中的位置
有时间看看ognl表达式
Set code exercise
STM32CubeIDE1.9.0\STM32CubeMX 6.5 F429IGT6加LAN8720A,配置ETH+LWIP
Go from introduction to actual combat - panic and recover (notes)
100 important knowledge points that SQL must master: sorting and retrieving data
[LeetCode]100. Same tree
Go从入门到实战——多态(笔记)
Go从入门到实战——接口(笔记)
Null pointer exception
∫(0→1) ln(1+x) / (x² + 1) dx
Go从入门到实战——仅需任意任务完成(笔记)
SQL必需掌握的100个重要知识点:检索数据
100 important knowledge points for SQL: in operator