share data between multi runables or how to use global data
1 次查看(过去 30 天)
显示 更早的评论
hello, I am now using autosar package. how can I share data between difference runnable (time event, with difference solver time). if I used data store memory then with following error.
/*********************************************************************************************************************/
The blocks 'PMAHP/Subsystem5/Data Store Read34 (matlab:open_and_hilite_hyperlink ('PMAHP/Subsystem5/Data Store Read34','error'))' and 'PMAHP/Subsystem5/Task60ms/Data Store Read34 (matlab:open_and_hilite_hyperlink ('PMAHP/Subsystem5/Task60ms/Data Store Read34','error'))' are accessing the Data Store Memory block 'SEN_Filt_HP1_P2'. The two blocks execute in different runnables, which can lead to a lack of data integrity in the real-time environment. Consider adjusting the sample times of the blocks that access that data store. Alternatively, clear the 'Configuration Parameters' > 'Solver' > 'Treat each discrete rate as a separate task' option. /*********************************************************************************************************************/
Is there any other way to used globe data consider 2 point:
1. code generated as user module, not related to RTE.
2. can be accessible by multi runnable, and also multi sub-system.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AUTOSAR Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!