fmusdk | originally developed by QTronic
kandi X-RAY | fmusdk Summary
kandi X-RAY | fmusdk Summary
This is an SDK (originally developed by QTronic) for testing the new Functional Mockup Interface developed by the Modelisar project.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fmusdk
fmusdk Key Features
fmusdk Examples and Code Snippets
Community Discussions
Trending Discussions on fmusdk
QUESTION
I'm using FMPy to simulate some FMUs which have String output variables, yet these are not available in the simulation results (object returned by simulate_fmu(filename)).
Are these variables handled in a different way? If so, how can I access them?
Thank you.
Edit 1:I runned a simulation using values.fmu which has a String output variable (string_out
).
ANSWER
Answered 2019-Apr-10 at 13:15Strings are only supported as parameters (as of FMPy 0.2.10). If you need Strings as input or output you can build a custom simulation loop and use the fmu.setString()
and fmu.getString()
functions directly.
You can use the custom_input.py example as a starting point.
QUESTION
I downloaded the FMUSDK and I want to compile the code. Unfortunately the build script is supposed to work with the Visual Studio C compiler, but I can't install/use it on my machine. Thus, I try to modify the script (and some parts of the code) to be able to compile it with the GCC. But I am completely new to compiling complex code (I usually just use gcc *.c -o outfile.exe)
Here is my problem: In some files there is a library linked with
...ANSWER
Answered 2017-Nov-21 at 12:11You should replace -lxml2
by -llibxml2
.
Explaination, from Mingw :
Also note that the library names
"lib.a"
and"lib.lib"
are not equivalent; if you have a library named according to the aberrant"lib.lib"
convention, it will not be found by an"-l"
specification -- if you cannot rename the library, you must use the form"-llib"
instead.
QUESTION
This is my function. I am trying to export this code to fmu. I am using fmusdk.
For each cycle(time step),
- my
input
should be changed to the value given during simulation. myexecute()
should be called.- the values of
input
andpout
should be stored during simulation, so that we can plot the values after the simulation.
I tried the examples(BouncingBall and values) given in fmusdk. I have created corresponding fmus and imported them in Amesim. They are working fine. But i am unable to figure out how to do the same for my C file/function
...ANSWER
Answered 2017-Jul-07 at 11:32Consider the C file given below similar to the files you mentioned bouncingBall.c or valus.c . Since you have referred the function myexecute
from another c file, replace yourCFile.c
and/or yourHFile.h
with the correct files.
Also your modelDescription.xml should be in sync with this C file. For ex) guid
value should be the same in both files. Also the value reference for the scalar variables should be the same. Analyse and
#define pin_ 0
. Similarly for pout
. Create a folder structure similar to bouncingBall. Create a separate batch file, since we have to include additional files(yourCFile.c
and/or yourHFile.h
)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fmusdk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page