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

Pass parameters to mos script

Pass parameters to mos script

Dear all,
is there a way to pass parameters to a script mos?

For instance I would like to pass a model name like:

#omc RLCircuit test.mos

and in test.mos do
...
loadFile(param1); getErrorString(); // instead of loadFile(RLCircuit.mo);

Thank you
Thomas

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