当前位置:网站首页>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测试
边栏推荐
- How to participate in openharmony code contribution
- 图解基于AQS队列实现的CountDownLatch和CyclicBarrier
- 小王的面试训练任务
- ARCS模型介绍
- Express e stack - small items in array
- Xiao Wang's interview training task
- Experience Navicat premium 16, unlimited reset, 14 day trial method (with source code)
- Can Oracle's CTAs bring constraints and other attributes to the new table?
- IO stream code
- 专题教程——选队长游戏
猜你喜欢

Null pointer exception

Go从入门到实战——channel的关闭和广播(笔记)

流程控制任务

Go从入门到实战——错误机制(笔记)

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

Express e stack - small items in array

猜拳游戏专题训练

Here are 12 commonly used function formulas for you. All used ones are good

Covering access to 2w+ traffic monitoring equipment, EMQ creates a new digital engine for all elements of traffic in Shenzhen

语言弱点列表--CWE,一个值得学习的网站
随机推荐
Go from entry to practice -- CSP concurrency mechanism (note)
Galaxy Kirin system LAN file sharing tutorial
Save method of JPA stepping pit series
Go from entry to practice - dependency management (notes)
Quick excel export according to customized excel Title Template
IO stream code
创建对象时JVM内存结构
分享|智慧环保-生态文明信息化解决方案(附PDF)
Go从入门到实战——协程机制(笔记)
MySQL client tools are recommended. I can't imagine that it is best to use Juran
SQL必需掌握的100个重要知识点:用通配符进行过滤
Special training of guessing game
At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions
Modify large online games through CE modifier
Method of reading file contents by Excel
Go from introduction to actual combat - panic and recover (notes)
String类的常用方法
100 important knowledge points that SQL must master: creating calculation fields
Go from introduction to practice - polymorphism (note)
今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献