当前位置:网站首页>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测试
边栏推荐
- Save method of JPA stepping pit series
- SQL必需掌握的100个重要知识点:过滤数据
- 强制 20 天内开发 APP 后集体被裁,技术负责人怒批:祝“早日倒闭!”
- Little known MySQL import data
- ICML2022 | 可扩展深度高斯马尔可夫随机场
- Xiao Wang's interview training task
- 100 important knowledge points that SQL must master: using functions to process data
- Flask----应用案例
- Go from entry to practice - dependency management (notes)
- Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
猜你喜欢

JVM memory structure when creating objects

集合代码练习

Very comprehensive dolphin scheduler installation and use documents

Use the storcli tool to configure raid. Just collect this article

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

What is the core competitiveness of front-line R & D personnel aged 35~40 in this position?

关于异常处理的知识整理

Codeforces Round #716 (Div. 2)

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

MySQL usage notes 1
随机推荐
oracle迁移mysql唯一索引大小写不区分别怕
微服务之远程调用
Unleash the innovative power of open source database | [Gansu] opengauss meetup has come to a successful conclusion
TreeSet详解
GBase 8a OLAP分析函数cume_dist的使用样例
List of language weaknesses --cwe, a website worth learning
Special tutorial - Captain selection game
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!"
图解基于AQS队列实现的CountDownLatch和CyclicBarrier
互联网 35~40 岁的一线研发人员,对于此岗位的核心竞争力是什么?
100 important knowledge points that SQL must master: sorting and retrieving data
Go from entry to practice -- CSP concurrency mechanism (note)
Golang 使用正则来匹配出子字符串函数
100 important knowledge points that SQL must master: retrieving data
Go从入门到实战——Context与任务取消(笔记)
100 important knowledge points that SQL must master: combining where clauses
快递e栈——数组篇小型项目
Release of global Unicorn list in 2021: the full list of 301 Unicorn enterprises in China is coming!
Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2)
Here are 12 commonly used function formulas for you. All used ones are good