Hi Christian,
Another email bounced to me.
Comments inline ....
On 2010-12-16 17:02, Christian Stanek wrote:
To: [email protected]
From: Christian Stanek <[email protected]>
Subject: Compiler Options for Simulation with omedit
Date: Thu, 16 Dec 2010 16:01:44 +0000 (UTC)
Hello,
we want to couple a modelica model with an external C-Function. We use threads
in the C-Program.
1. Can we set the compiler options in the omedit environment?
We know how we can make a simple C-function call.
We want to use omedit for quick protyping of the modelica models.
As far as I know right now that is not possible.
We should design a better dialog for setting all
the things needed for the simulation:
- C flags
- C libraries
- Library folders
- Include folders
Some of these things can be set via annotations
for external functions, but not all of them.
2. Secound question we need a initial function call to an external C-function
Is it correct to put a function in the part
"initial equation" for one time?
As far as I know it should work fine.
Another way would be to have an equation like:
when initial() then
var = functionCall(...);
end when;
Thanks for help
Best regards
Christian Stanek
Cheers,
Adrian Pop/