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

Connection between OpenModelica and Arduino -or serial port in general

Connection between OpenModelica and Arduino -or serial port in general


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

Re: Connection between OpenModelica and Arduino -or serial port in general

Unfortunately I don't know of any such open-source library available.
It should be possible to make your own library using external C code to connect to the board.

Re: Connection between OpenModelica and Arduino -or serial port in general

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?

Re: Connection between OpenModelica and Arduino -or serial port in general

As far as I know we do support (maybe partially) Modelica Device Drivers but I'm not sure.
You could give it a try and we can help you with specific issues.

Re: Connection between OpenModelica and Arduino -or serial port in general

I tried to do this but serial communication got wrong when loading serial port fd. So I communicate via shared memory to a C program which handle serial port and update the shared memmory

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