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

更多回答(0 个)

类别

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