GithubHelp home page GithubHelp logo

fmipp / matlab-fmu Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 742 KB

The FMI++ MATLAB Toolbox for Windows

Python 17.64% MATLAB 19.85% Batchfile 2.44% C 9.99% C++ 27.36% Modelica 3.42% HTML 19.31%

matlab-fmu's Introduction

The FMI++ MATLAB Toolbox for Windows

This toolbox for MATLAB provides the full functionality of the FMI++ library on Windows. This includes the import of FMUs for Model-Exchange and Co-Simulation as well as the export of MATLAB scripts as FMUs for Co-Simulation.

Instructions on installation and usage are given in the documentation, which is provided as part of the binary release version.

Features

  • import of FMUs for Model Exchange (FMI 1.0 and FMI 2.0) into MATLAB scripts
  • import of FMUs for Co-Simulation (FMI 1.0 and FMI 2.0) into MATLAB scripts
  • export of MATLAB scripts as FMUs for Co-Simulation (FMI 1.0 and FMI 2.0)

matlab-fmu's People

Contributors

ait-ces avatar

Stargazers

Christian Bertsch avatar  avatar Jose Martin avatar Chen Shouyuan avatar Philipp Huth avatar

Watchers

Edmund Widl avatar Philipp Huth avatar

Forkers

claudialaorga

matlab-fmu's Issues

Warning: FMI++ export interface is not active.

I was using it to generate the fmu model and it generated a warning. Does it affect the model negatively

`warning: FMI++ export interface is not active.

In fmipputils/FMIAdapter/defineRealInputs (line 211)
In SimpleController/init (line 19)
In fmipputils.createFMU (line 65)
In create_fmu (line 10)
warning: FMI++ export interface is not active.
In fmipputils/FMIAdapter/defineRealOutputs (line 236)
In SimpleController/init (line 23)
In fmipputils.createFMU (line 65)
In create_fmu (line 10) `

Loading of FMU dynamic link library (TestController.dll) failed!

When I import the exported FMU into Dymola for use, an error occurs during the simulation
The details are as follows:

Log-file of program ./dymosim
(generated: Thu Apr 06 02:27:10 2023)

dymosim started
... "ControlledRadiator" simulating
... "dsin.txt" loading (dymosim input file)
Error: The following error was detected at time: 0
Loading of FMU dynamic link library (TestController.dll) failed!
The stack of functions is:
TestController_fmu.fmi_Functions.fmiModel
TestController_fmu.fmi_Functions.fmiModel("TestController_fmu", testController_fmu.fmi_loggingOn, "file:///D:/matlab-fmipp_v0.4_x64/test/export/Resources/Library/FMU/TestController/resources", 0, 1)

Error: Integrator failed to start model.

... Error message from dymosim

ERROR: The simulation of ControlledRadiator FAILED

Variable has no start value

When I use the generated fmu model it produces an error (the variable has no start value). I looked at the function in createfmu and it does not seem to have a start value parameter defined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.