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

Posts

Posts

May-08-17 07:59:21
How can I pass parameters to a mos script?
Category: Developer

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

Oct-11-16 15:04:54
emscripten setup
Category: Developer

Hi Matthis,
thank you for your suggestions.
Yes I was able to run emscripten basic examples (as described on the emscripten homepage), but I wasn't able to compile my modelica model.
I defined my simcodeTarget as Javascript.
Still trying...

Regards,
Thomas

Sep-28-16 07:48:03
emscripten setup
Category: Developer

Hi,
I have the same issue, both on Windows 10 and Ubuntu 16.04.

In Windows 10 emcc command is not recognized when mos script is launched (emcc is in path).

In Ubuntu 16.04 the _node.js file is generated, but the direct .js file is missing.
The error in log is: ChuaCircuit.o is not valid LLVM bitcode.

Any suggestions?

Thank you very much,
Thomas

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