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
  • » Fritz
  • » Profile

Posts

Posts

Hi,
i was wondering if its possible to add new nodes to the .xml file without getting problems while executing the .exe of the model? I would like to store some data from my CAD-programm relating to the model.

I know i could try it but i thought i first ask you guys if someone tried it already.

Thanks in advance for your help!

Ok i think ill go for the .csv Version. My Software is just a prototype so it must not be very efficient it just has to work^^

Thank you a lot current/smile

hm... ok not that easy but ill get help tomorrow of a friend of mine, he knows c++.

Hm... ok if there is no C# version ill try to translate it ^^

Thanks a lot!! current/smile

I found a easier solution for my problem. I use the ".exe" file to simulate. I just have the problem that i didnt found a way to read the results from the ".mat" file with C#.

I found this library but its only for Matlab 5 Files... and it doesnt work for the modelica results (Matlab 4)

http://www.mathworks.com/matlabcentral/ … or-net-2-0


Does anyone has a idea to read the result files without matlab in C#?

Jun-16-16 10:58:40
Topic: close!

close!

Jun-16-16 10:31:07
Topic: close!

close!

do you know any code examples? Maybe in C or C++? Would help me a lot, cause the documentation doesnt gives a quick introduction in coding a FMI master^^

thx for your quick reply!

Could you help me get started by coding a FMI master? I started working with modelica this week so i have no clue how to do this current/big_smile Or do you know a good tutorial how to code a FMI master?

Thx!

Simon

Hi,

iam new in this community and want to learn to work with modelica. My first project idea was to connect a robot model with my Robot in Solidworks, to simulate the Robot while turning in my motion study in Solidworks.

Therefor i need to export the Modelica-Model in C#. I saw its possible to export as C-Code, but when i change the target language i get this error:

------------------------------------------------------------------------------------------------------

[27] 13:18:18 Übersetzung Fehler
Interner Fehler Unknown FMU template target: CSharp

[28] 13:18:18 Übersetzung Fehler
Interner Fehler SimCode: The model testrob could not be translated to FMU

------------------------------------------------------------------------------------------------------


What setting do i need to export the FMU as CSharp?




The next question is, how can i work with the exported model-Code. I saw the Exporter exports a "main.c" file, but i didnt got how i can start the model and get any output?!

Does any one of you exported a Model and used it in a code? Maybe i start a 2. thread but i first need the Csharp files to test it with my Solidworks-Addin.


Best regards,
Simon Fritz

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