필터 지우기
필터 지우기

How do I transfer real time changing variables from MATLAB to Simulink?

조회 수: 2 (최근 30일)
Edoardo Serri
Edoardo Serri 2018년 10월 3일
댓글: Edoardo Serri 2018년 10월 4일
Hi everybody, I'm struggling against a real big problem to me. I have a MATLAB script which gets data from an UART sensor. Now I have to create a scheme in Simulink and, to do so, I need to give to Simulink the real time data acquired via MATLAB. I really don't know how to do it. I have tried many ways without any success. Do you know if there ara any way to do so?
  댓글 수: 2
Preethi
Preethi 2018년 10월 4일
hi,
can you elaborate... you can directly use simulink blocks from Instrument Control Toolbox to read data from sensor
Edoardo Serri
Edoardo Serri 2018년 10월 4일
Yeah, I have tried...I'm using a sensor connected to Raspberry and using the Raspberry Serial block I get ascii chars in decimal. And, using a Linux system, I wasn't be able to decode the Ascii code from the sensor. So I had to do in this way

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by