当前位置:网站首页>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测试
边栏推荐
- Oracle migration MySQL unique index case insensitive don't be afraid
- Little known MySQL import data
- Have time to look at ognl expressions
- Method of reading file contents by Excel
- 100 important knowledge points that SQL must master: filtering data
- OpenSSL 编程 一:基本概念
- Installing Oracle11g under Linux
- Quick excel export according to customized excel Title Template
- How to participate in openharmony code contribution
- Xiao Wang's interview training task
猜你喜欢

Go from introduction to actual combat - package (notes)

PCIE知识点-008:PCIE switch的结构

Go从入门到实战—— 多路选择和超时控制(笔记)

Null pointer exception

于文文、胡夏等明星带你玩转派对 皮皮APP点燃你的夏日

强制 20 天内开发 APP 后集体被裁,技术负责人怒批:祝“早日倒闭!”

Industry case | see the operation of bank digital transformation from the king of retail

01-Golang-环境搭建

Kirin V10 installation font

语言弱点列表--CWE,一个值得学习的网站
随机推荐
Save method of JPA stepping pit series
Here are 12 commonly used function formulas for you. All used ones are good
Go从入门到实战——Context与任务取消(笔记)
Magic POI error in reading excel template file
The difference between scrum and Kanban
Go从入门到实战—— 多路选择和超时控制(笔记)
Acwing周赛57-数字操作-(思维+分解质因数)
关于异常处理的知识整理
TreeSet详解
Go从入门到实战——CSP并发机制(笔记)
Go from entry to practice - multiple selection and timeout control (notes)
MySQL client tools are recommended. I can't imagine that it is best to use Juran
JVM memory structure when creating objects
Go從入門到實戰——接口(筆記)
Special training of guessing game
White whoring red team goby & POC, how do you call white whoring?
SQL必需掌握的100个重要知识点:组合 WHERE 子句
Covering access to 2w+ traffic monitoring equipment, EMQ creates a new digital engine for all elements of traffic in Shenzhen
SQL必需掌握的100个重要知识点:用通配符进行过滤
Codeforces Round #722 (Div. 2)