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!