Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Functional Mock-Up Interface details
Login with GitLab

Functional Mock-Up Interface

Add some functionalities to use (import/export) FMU blocks inside Scilab/Xcos
(5501 downloads for this version - 5953 downloads for all versions)
Details
Version
0.7.1
Authors
Clément DAVID <clement.david@scilab-enterprises.com>
Vladislav TRUBKIN
Owner Organization
ESI Group
Maintainers
Vincent COUVERT
Clément DAVID
Category
License
Creation Date
August 26, 2020
Source created on
Scilab 6.1.x
Binaries available on
Scilab 6.1.x:
Windows 64-bit
Install command
--> atomsInstall("fmu_wrapper")
Description
            This community edition provides the following features:
- Support of FMI 1.0 for Model Exchange and Co-Simulation.
- Simulation for compiled FMUs: an FMU must have at minimum one binary
corresponding to working platform.     
- Simulation in Xcos with using any type of explicit solvers.
- Simulation in Scilab with fixed step integration (Method of Euler).

import FMUs: Allow the user to add FMU blocks inside Xcos. This toolbox provides
an easy way to use Functional Mock-up Interface for Model Exchange and
Co-Simulation. 
             In Xcos it should to use the palette "Functional Mock-up
Interfaces", the user is able to simulate the Functional Mock-up
Units(dynamic system models). 
             It is possible to use several instances of a model and to connect
any models hierarchically together.
             In Scilab it should to use the function "fmiSimulate".
export FMUs: Xcos model can be exported as an FMU for Model Exchange or for
Co-Simulation. 
            Actually, only generation of FMUs version 1.0 of FMI is supported in
Xcos. 
            Code generation works by translation the Xcos super-block in FMU.
Generated model can be imported in Xcos or in an another simulation tool.

For enterprise deployment, find out more about our Enterprise Edition:
https://www.scilab.org/software/atoms/fmi-model-exchange-co-simulation            
Files (2)
[6.59 MB]
Windows 64-bit binary for Scilab 6.1.x

[23.54 MB]
Source code archive

News (0)
Comments (2)     Leave a comment 
Comment from XIAOMENG TONG -- November 3, 2020, 02:07:05 AM    
Dear Sir/Madams,

Recently I'm glad to try the fmu-wrapper-0.7.1-bin.zip in my windows 10 computer and 
SCILAB6.1.0. I have 2 questions. 

(1) I can successfully run the demo FMUs, however, the FMU outputs in all cases from 
XCOS are zeros throughout the simulation. To rule out the bin file issue, I also compile 
with the source code to generate my own bin file. The same problem is repeated. 

(2) I generated an FMU with other software, and want to import it into XCOS. By double 
clicking to select this FMU, I can see this FMU has been imported since the name has 
been changed for the block, however, the input/output ports are not updated or shown in 
my screen. This is still a block without any ports. 

Any suggestions will be highly appreciated. Thanks very much. 

Frank

email: tongxiaomeng1989@gmail.com
Comment from semi-infiknight -- May 19, 2023, 08:53:47 AM    
I am not able to export FMU for any superblock. This is the error that I am facing.
If someone can help me out to fix this please do. IF in someones xcos this is working 
please tell.

operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
Xcos error:   Wrong type for field model.sim : String matrix expected.
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
Xcos error:   Wrong type for field model.sim : String matrix expected.
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
Xcos error:   Wrong type for field model.sim : String matrix expected.

   Generating C:\Users\SEMIIN~1\AppData\Local\Temp\SCI_TMP_6220_24980/\sCZ.fmu
   Generate calls to Scilab blocks
   Generate scheduling
   Generate FMU XML
   Generate FMU API ME
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
operation +: Warning adding a matrix with the empty matrix will give an empty matrix 
result.
   FMU API has not been generated: Undefined operation for the given operands.
   FMU API has not been generated: check or define function %c_a for overloading.
   Generating failed.
 ans  =
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.