Simulink : real-time simulation with Raspberry Pi

3 visualizaciones (últimos 30 días)
Kento Fujita
Kento Fujita el 9 de Dic. de 2019
Editada: Kento Fujita el 9 de Dic. de 2019
Hi, i'm running simulink programs with 2 Raspberry Pi(1 master and 1 slave).
I want to synchronize the Simulation Pacing of two raspi.
The slave raspi send "clock time" data to the master raspi.
I expected that the slave's clock time difference between start and end matches the master's running time,
but it doesn't.
I set the both Simulation Pacing very slow, but when i run master's program with External mode, the running time is very fast.
And it seems that the slave's Simulation Pacing is also fast.
Running Time
master : 10s slave : inf
Building method
master : external mode slave : stand alone
Sampling time
same(0.001s)
Communication : UDP
MATLAB 2019b simulink support package for raspberry pi hardware
Japanese
こんにちは,2つのラズパイでシミュレーションペースを同期する方法を知りたいのですが何か良い方法はないでしょうか.
2つともリアルタイム実行(あるいは遅くても同じ)にすれば良いのではと考えたのですが,
スタンドアロンビルドやエクスターナルモードではシミュレーションペースの変更が適用されないようです.

Respuestas (0)

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by