主要内容

AUTOSAR 标定和测量数据

为运行时标定和测量配置组件数据

AUTOSAR 参数和变量支持使用标定和测量工具对 AUTOSAR 应用程序进行运行时调节和监控。创建了一个映射到 AUTOSAR 软件组件的 Simulink® 模型后,您可以使用代码映射编辑器或等效的 AUTOSAR 映射函数来配置以下元素的代码和标定属性:

  • 映射到以下各项的模型参数或查找表:

    • AUTOSAR 常量内存

    • AUTOSAR 内部标定参数

    • AUTOSAR 端口参数

  • 映射到以下各项的信号、状态或数据存储:

    • AUTOSAR 静态内存

    • AUTOSAR 实例内存

  • 映射到 AUTOSAR 可运行实体的模型入口函数

  • 模型入口函数中的内部数据

模块

CurveApproximate one-dimensional function
Curve Using PrelookupUse previously calculated index and fraction values to accelerate approximation of one-dimensional function
MapApproximate two-dimensional function
Map Using PrelookupUse previously calculated index and fraction values to accelerate approximation of two-dimensional function
PrelookupCompute index and fraction for a Curve Using Prelookup or Map Using Prelookup block
Single Point InterpolationPerform single point interpolation (自 R2023a 起)
RampGenerate signal that follows input value bound by rising or falling slope (自 R2023b 起)

工具

代码映射编辑器为代码生成映射 AUTOSAR 元素

函数

addSignalSimulink 模块信号添加到 AUTOSAR 映射
getDataStore获取 Simulink 数据存储的 AUTOSAR 映射信息
getFunctionGet AUTOSAR mapping information for Simulink entry-point function
getParameter获取 Simulink 模型工作区参数的 AUTOSAR 映射信息
getSignal获取 Simulink 模块信号的 AUTOSAR 映射信息
getState获取 Simulink 模块状态的 AUTOSAR 映射信息
mapDataStoreMap Simulink data store to AUTOSAR variable
mapFunctionMap Simulink entry-point function to AUTOSAR runnable and software address methods
mapParameterMap Simulink model workspace parameter to AUTOSAR component parameter
mapSignalSimulink 模块信号映射到 AUTOSAR 变量
mapStateSimulink 模块状态映射到 AUTOSAR 变量
removeSignal从 AUTOSAR 映射中删除 Simulink 模块信号

主题