share data between multi runables or how to use global data

1 vue (au cours des 30 derniers jours)
Zhenwei Sun
Zhenwei Sun le 24 Août 2018
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.

Réponses (0)

Catégories

En savoir plus sur AUTOSAR Blockset dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by