Real time data transfer between MATLAB and Raspberrypi
17 ビュー (過去 30 日間)
古いコメントを表示
I am trying to control a hardware connected to a matlab PC through Raspberry pi. Basically the real time measurements used for control is collected in MATLAB and I have to transfer them to Rpi where I have written the control algorithm in python script.
Can anyone help me to establish this communication between MATLAB and rpi
0 件のコメント
回答 (2 件)
Vimal Rathod
2021 年 2 月 22 日
Hi,
Refer to the following link to know about transferring data from MATTLAB to Raspberry PI
Refer to the following link to know more about setup and config and other important processes involving raspberry pi
0 件のコメント
Prasanth Sunkara
2021 年 3 月 8 日
Hi Akshay,
You can setup a TCP/IP server on the raspberrypi(in your python code) and create tcpclient on MATLAB. Exchange the control information from MATLAB using the "write" method of the "tcpclient" object.
That said, you would be better off using off the shelf TCP/IP blocks of Simulink support package for Raspberry Pi and model your control application directly in Simulink, instead of python.
You will find some useful control application examples in the Simulink Support Package for Raspberry Pi documentation
3) General PID modelling in simulink --> https://in.mathworks.com/help/simulink/slref/pidcontroller.html
Hope this helps!
-Prasanth
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Run on Target Hardware についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!