Simulink IO for customized Arduino block in Normal Mode

조회 수: 3 (최근 30일)
yuanyi wu
yuanyi wu 2019년 3월 2일
댓글: yuanyi wu 2019년 6월 25일
Hello,
I have a question regarding the Simulink IO for Arduino model in Normal mode (Link). I wonder whether this feature will support the custom driver block? I know we can use s-function to access extra hardware resource on an Arduino Board in External Mode. However, if I am using the Normal mode with Simulink IO, is it possible to customize the IO server run on the Arduino board?
As an example, I want to implement the OneWire Protocol and read the temperature from a DS18B20 sensor. Since the OneWire block is not implemented in the Arduino support for Simulink package, I would like to create a block by myself with C++ codes. This block will work well in External mode where it run on the Arduino target. I wonder whether it is possible to run the model on my PC, but read the data from the hardware using Simulink IO function?
Thank you

채택된 답변

Pradeep KS
Pradeep KS 2019년 4월 10일
Hi Yuanyi,
Follow the below mentioned link to enable Simulink IO for custom driver block.
This is available starting from R2019a release.
  댓글 수: 2
Jan
Jan 2019년 4월 11일
[MOVED from flags] yuanyi wrote:
Thank you!
@yuanyi: Please use flags only to inform admins about inappropriate contents like rudeness or spam. Thanks.
yuanyi wu
yuanyi wu 2019년 6월 25일
Oops! Sorry I didn't realize I clicked flag. I apologize for that.

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

추가 답변 (0개)

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by