Is there a possibility of real-time processing of Raspberry Pi's real-time output?

1 回表示 (過去 30 日間)
In the motion sensor example in Raspberry Pi support package in Simulink, you can monitor whether the sensor detected any motion if you ran the model in External mode. This is real-time observation. A scope is the output interface. If I want to process the output using some Simulink blocks that are NOT TO BE burned with the other sensing blocks on Raspberry Pi memory, is there a method to transfer the information acquired from one Simulink model to another? Keeping in mind that I need the transfer to be also real-tme. Or is there maybe a way to select some of the model blocks and burn them on Raspberry Pi and others just run through my PC processor? Any help is appreciated

採用された回答

Murat Belge
Murat Belge 2014 年 2 月 26 日
You can send the sensor output or any signal in the Simulink model to a secondary model running on your host computer using UDP blocks in the library. The demo, "Communicating with Raspberry Pi Hardware", exemplifies this idea. There is another way to do what you want using an External Mode simulation. You can designate a Simulink subsystem to be a "SimViewingDevice". Such a subsystem does not run on the Raspberry Pi. Instead it only runs on the host while running an External Mode simulation. You can find more information about SimViewingDevice in the following link: http://www.mathworks.com/help/simulink/sfg/sim-viewing-devices-in-external-mode.html
  1 件のコメント
Hatem El Serafy
Hatem El Serafy 2014 年 2 月 26 日
Gonna give that some research and definitely a try. Thanks a lot for your cooperation.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRun on Target Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by