- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Connection between OpenModelica and...
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.
- adrpo
- 885 Posts
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.
- adrpo
- 885 Posts
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
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Connection between OpenModelica and...