OpenModelica


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

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests and 0 other users also viewing this topic
You are here: