Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » Ujjee
  • » Profile

Posts

Posts

Apr-13-14 13:14:07
Trying to simulate a discrete controller FMU in openmodelica

Then it must've something to do with the when statements.

Adeel, I am sending you a very simple example with a single when condition. I hope you can find out the problem.

Thanks.

Apr-11-14 10:28:43
Trying to simulate a discrete controller FMU in openmodelica

Hello,
I have built model of a discrete controller which changes states on the basis of its inputs. It worked fine as a modelica model. I then exported it as an FMU and then re-imported it in openmodelica. Now when I am trying to simulate this re-imported FMU, I am not getting the desired results.
The imported FMU model has some code lines like this
{fmi_input_cmd, fmi_input_windowState} = fmi1Functions.fmi1SetInteger(fmi1me, {2.0, 3.0}, {cmd, windowState});
and it looks that the "fmi_input_cmd" variable should follow the "cmd" variable that is provided to the FMU externally; but it doesn't. In fact, I have two integer inputs and one boolean but none of the internal "fmi_input_variable" follows the connected external inputs.

Can anyone help?

Thanks

I too am searching for a way to export 64-bit FMUs. If anyone has any idea, please guide me.

Ujjee

  • Index
  • » Users
  • » Ujjee
  • » Profile
You are here: