Data synchronization of multi core Simulink RT programs designed in a producer-consumer architecture
1 回表示 (過去 30 日間)
古いコメントを表示
Suppose a reference model, running at 1 khz, produces a bunch of data to be used by another reference model running at 500 Hz. Each of those models is configured to run as different tasks.
Are there any design guidelines I need to adhere by to ensure consistency and synchronization of the data supplied by the producer reference model?
To be more specific, I'm worried about the following scenario : Producer ref model has two outputs : output1 which is a 12x1 signal and output2 which is a 50x50 matrix. Is there any possibility that those outputs aren't synchronized when read by the consumer ref model (e.g., output 1 is from iteration 10 of producer loop while output 2 is from an iteration 9, which may happen if consumer loop is executed before completion of output 2 update?)
If so, how do I ensure synchronization?
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!