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

ExternalFunction

ExternalFunction

Dear Sir,

   I  try to use external functions in a Modelica model and to compile it with the new version 1.9.2 of OpenModelica. 

   It  seems to me that for instance,in the joined example, users lost at the end of compilation its own external function.

Best regards,

ALAIN_2

function f2
  input  Real x;
  output Real y;
external "C" y=f2(x) annotation(Library = "f2.o");
end f2;

model TestExternalFunction2
  constant Real x=5;
  Real y;
equation
  y = f2(x);
end TestExternalFunction2;

There are 0 guests and 0 other users also viewing this topic
You are here: