Specify data type, code generation options, other attributes of signal
For run-time calibration of AUTOSAR component data, R2018b and R2019a introduced graphical mapping of model workspace parameters and internal signals, states, and data stores to AUTOSAR component internal parameters and variables by using the Code Mappings editor. For more information, see Map AUTOSAR Elements for Code Generation.
With this class, you can create workspace objects for mapping internal global signals
to AUTOSAR memory sections. You can create an AUTOSAR4.Signal
object
in the base MATLAB® workspace.
This class extends the Simulink.Signal
class. With signal objects,
you can assign or validate the attributes of a signal or discrete state, such as its
data type, numeric type, dimensions, and so on. For more information, see the Simulink.Signal
reference
page.
To define an AUTOSAR4.Signal
object, in the MATLAB Command Window, instantiate the object and assign it a name.
ar4Sig = AUTOSAR4.Signal;
Open the workspace object to view and modify its properties.
The Simulink.Signal
reference page
describes the signal attributes in detail. The AUTOSAR4.Signal
class extends the Simulink.Signal
class with the following
additional selection for the Storage class attribute:
Global
— Allows you to map internal global
signals to AUTOSAR memory sections. Selecting this storage class enables the
custom attribute MemorySection.
MemorySection allows you to explicitly select AUTOSAR
memory section VAR
, CAL
, or
VOLATILE
, or accept the
Default
.
For more information, see