Simulink SPI comunication beaglebone black

2 ビュー (過去 30 日間)
Daniele Ludovico
Daniele Ludovico 2017 年 7 月 15 日
コメント済み: Kurt Stewart 2018 年 5 月 15 日
I would like to implement in simulink an SPI comunication on a beaglebone black in order to read the values provided by 2 encoders, but in the hardware support package for beaglebone is not present the SPI block. It is possible to define a block able to read the SPI bus using simulink in the external mode?
  1 件のコメント
Kurt Stewart
Kurt Stewart 2018 年 5 月 15 日
did you happen to make a block using S-function that I could use?

サインインしてコメントする。

回答 (1 件)

Don Zheng
Don Zheng 2017 年 7 月 18 日
Unfortunately, at this time Simulink does not have blocks for SPI built in to the Simulink Embedded Coder support package for the BeagleBone Black development platform.
As a workaround, you can use S-function builder to access the SPI interface. The MATLAB Support Package for Beaglebone Black ships with the C-source code to access the SPI interface. The C-code is located under the following:
Support Package Root>\R20XXX\toolbox\realtime\targets\beagleboneio\src\server
The following File Exchange submission contains a step by step tutorial on how to develop BeagleBone Black device drivers blocks: http://www.mathworks.com/matlabcentral/fileexchange/49702-device-drivers-for-the-beaglebone-black
  1 件のコメント
Kurt Stewart
Kurt Stewart 2018 年 5 月 15 日
this would be useful to have this block

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by