AUTOSAR 标定和测量数据
AUTOSAR 参数和变量支持使用标定和测量工具对 AUTOSAR 应用程序进行运行时调节和监控。创建了一个映射到 AUTOSAR 软件组件的 Simulink® 模型后,您可以使用代码映射编辑器或等效的 AUTOSAR 映射函数来配置以下元素的代码和标定属性:
映射到以下各项的模型参数或查找表:
AUTOSAR 常量内存
AUTOSAR 内部标定参数
AUTOSAR 端口参数
映射到以下各项的信号、状态或数据存储:
AUTOSAR 静态内存
AUTOSAR 实例内存
映射到 AUTOSAR 可运行实体的模型入口函数
模型入口函数中的内部数据
模块
Curve | Approximate one-dimensional function |
Curve Using Prelookup | Use previously calculated index and fraction values to accelerate approximation of one-dimensional function |
Map | Approximate two-dimensional function |
Map Using Prelookup | Use previously calculated index and fraction values to accelerate approximation of two-dimensional function |
Prelookup | Compute index and fraction for a Curve Using Prelookup or Map Using Prelookup block |
Single Point Interpolation | Perform single point interpolation (自 R2023a 起) |
Ramp | Generate signal that follows input value bound by rising or falling slope (自 R2023b 起) |
工具
代码映射编辑器 | Map AUTOSAR elements for code generation |
函数
addSignal | Add Simulink block signal to AUTOSAR mapping |
getDataStore | Get AUTOSAR mapping information for Simulink data store |
getFunction | Get AUTOSAR mapping information for Simulink entry-point function |
getParameter | Get AUTOSAR mapping information for Simulink model workspace parameter |
getSignal | Get AUTOSAR mapping information for Simulink block signal |
getState | Get AUTOSAR mapping information for Simulink block state |
mapDataStore | Map Simulink data store to AUTOSAR variable |
mapFunction | Map Simulink entry-point function to AUTOSAR runnable and software address methods |
mapParameter | Map Simulink model workspace parameter to AUTOSAR component parameter |
mapSignal | Map Simulink block signal to AUTOSAR variable |
mapState | Map Simulink block state to AUTOSAR variable |
removeSignal | Remove Simulink block signal from AUTOSAR mapping |
主题
- Map AUTOSAR Elements for Code Generation
Use Code Mappings editor to view and map AUTOSAR software component from Simulink perspective.
- Configure Parameters and Signals for AUTOSAR Calibration and Measurement
Configure Simulink® model workspace parameters and signals for AUTOSAR run-time calibration and measurement.
- Map Calibration Data for Submodels Referenced from AUTOSAR Component Models
Use Code Mappings editor to view and map internal data for submodels referenced from AUTOSAR components.
- Configure Subcomponent Data for AUTOSAR Calibration and Measurement
For any model in an AUTOSAR model reference hierarchy, you can configure the model data for run-time calibration and measurement.
- Configure AUTOSAR Data for Calibration and Measurement
Define AUTOSAR data properties (
SwDataDefProps
), includingSwCalibrationAccess
,DisplayFormat
, andSwAddrMethod
. - Configure Lookup Tables for AUTOSAR Calibration and Measurement
Implement AUTOSAR integrated and distributed lookups with
Simulink.LookupTable
andSimulink.Breakpoint
objects. - Configure AUTOSAR Per-Instance Memory
Configure AUTOSAR per-instance memory (PIM) by using block signals, discrete states, or data store memory.
- Configure AUTOSAR Static Memory
Configure AUTOSAR static memory by using block signals, discrete states, or data store memory.
- Configure AUTOSAR Constant Memory
Configure AUTOSAR constant memory by using model workspace parameters.
- Configure AUTOSAR Shared or Per-Instance Parameters
Configure AUTOSAR shared or per-instance parameters by using model workspace parameters.
- Configure AUTOSAR Port Parameters for Communication with Parameter Software Component
Configure AUTOSAR parameter receiver component for port-based access to parameter data. Generate ARXML descriptions of parameter software components and ports.