Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about pyfmi

Read more about pyfmi

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - pyfmi

Why I'm obtaining NaN in the output of a simple FMU exported from Simulink and tested in Python 3?

I'm new to the FMI standard and FMUs. I'm trying to export a FMU of a simple Simulink model, the Ohm's law in my case, to test the funcionality of the FMI standard in Python. I'm obtaining NaN in the ...
test-img

Jon

simulink

fmi

pyfmi

Votes: 0

Answers: 2

Latest Answer

I assume that the model get's evaluated in initialization mode before the inputs are set. Does the Simulink FMU export allow for setting start values for the inputs? Then set them to a nonzero value.
test-img

Christian Bertsch

Error executing FMU model with pyFMI: "pyfmi.fmi.FMUException: Failed to get the Boolean values"

I am using the code below to simulate a model. def run_demo(with_plots=True): traj = np.array([[start_time,2.25]]) input_object = ('input_1[1]', traj) model = load_fmu('[pyfmimodel.fmu',lo...
test-img

Nitin Gondule

python

simulation

openmodelica

fmi

pyfmi

Votes: 0

Answers: 0

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved