Modify the storage class in the data dictionary programmatically

Technical Source
1 min readSep 4, 2021

--

I have my data dictionary build and running for my model. But all of my signals are set automatically to sotrage class to ExportedGlobal. Does anyone know how to change the StorageClass to Auto programmatically?

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Editing a storage class is editing the properties of a Simulink Signa Object.

To do this, edit the Simulink Signal Object programmatically, not in the Model Explorer.

The method is described in the documentation.

% ex
% Define signa object
mySignal1 = Simulink.Signal;
% edit storage class
mySignal1.CoderInfo.StorageClass = 'ExportedGlobal';

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet