Simulink signal Code generation property
Mostra commenti meno recenti
I am unable to set an exported global storage class for simulink signal under of Signal property window. In 2019, i can select from code generation under signal property but its removed from 2020b. I'm using autosar blockset and
mysignal.CoderInfo.StorageClass = 'ExportedGlobal';
or code mapping are not helping me because of the target selection. How Can i set signal as a global in AUTOSAR target 2020b

Risposta accettata
Più risposte (1)
Infinite_king
il 5 Feb 2024
0 voti
Hi Suleyman,
In R2020b, you can set the storage class of a signal using the Code Mapping Editor. Follow the steps below to open the editor and set the storage class for a signal.
- In the C Code Tab, select Code Interface -> Default Code Mappings.

- This will open a Code Mapping Editor.
- In the editor, click on Signals/States tab.
- Select the signal for which you want to change the storage class.
- Click the 'Add selected signals to code mappings' button. (below the Data Defaults tab)
- Here you can change the storage class of that signal.
1 Commento
Suleyman
il 5 Feb 2024
Categorie
Scopri di più su AUTOSAR Blockset in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
