필터 지우기
필터 지우기

Real time data transfer between MATLAB and Raspberrypi

조회 수: 13 (최근 30일)
Akshay Patil
Akshay Patil 2021년 2월 20일
답변: Prasanth Sunkara 2021년 3월 8일
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

답변 (2개)

Vimal Rathod
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

Prasanth Sunkara
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
Hope this helps!
-Prasanth

카테고리

Help CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by