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

Is it possible to execute model .exe's as stand-alone programs?

Is it possible to execute model .exe's as stand-alone programs?

Hi.
If possible, I would become able to distribute (MS windows) executable files created through OM from Modelica models to other people, so that they can execute them repeatedly, with different value of parameters.
If this is possible I could myself create a piece of software with the GUI to do this.

I have two issues:
1) the .exe file has dependencies. Either I should have a clear list of the files to distribute along with exe or, much better, some option to create executables with everything already linked inside, i.e. that have no dependencies.
2) I don't know there the executable reads parameters from.  I suppose there is some text file. And I suppose there is somewhere the formal description of this file so that I can write code to read and write it safely.

Is it possible? Can anyone give hints?

Thanks


Re: Is it possible to execute model .exe's as stand-alone programs?

1) You can use a windows program called "depends.exe" to find out the list of dependencies. Compiling a version without dependencies requires that we link against the static versions.
2) Executable reads a file called model_init.xml and I don't think we have any formal description about it.

Adeel.

Re: Is it possible to execute model .exe's as stand-alone programs?

thanks

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