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

Posts

Posts

Thank you for your answer. Probably something that can communicate with serial port could help me. Is Modelica Device Drivers only for Dymola or also for OpenModelica?


Hello,

I would like to connect OpenModelica and Arduino. Are there any similar projects?

OpenModelica should communicate with Arduino through serial port.

There is a very good library ModelPlug for Wolfram System Modeler which is also Modelica software but is not open source:
http://blog.wolfram.com/2014/11/07/usin … omponents/
http://reference.wolfram.com/system-mod … lPlug.html

I would like to make something like this in OpenModelica.

I am ready to accept different solutions.

Thank you

Hello,
I would like to make a bigger university project with Arduino. You can see the scheme here:

http://s9.postimg.org/gf9xvmn5b/otazka_a_schema.png

I would like to control the system using Petri Net logic. Petri Nets should be vizualized on the PC. PC is connected to Arduino and controlled system is connected to Arduino of course. Controlled system would be of discrete event or hybrid character.

Do you have any idea of existing projects or how to start?

For example I like OpenModelica and its Statechart (simplified Petri Nets) in this theoretical paper: https://www.modelica.org/publications/p … sc98fp.pdf

http://s21.postimg.org/wpjg1jn3r/otazka_a_schema_vytah.png

You can see that the places of Petri net are connected to actuator. So when the token is in the place - the actuator turn on. So in our case - when the token is in the place - the specific pin on Arduino or function is executed.

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