主要内容

XCP可以数据获取

Acquire selected measurements from configured server connection

  • Library:
  • 车辆网络工具箱/ XCP Communication / CAN

    Simulink Real-Time / XCP / CAN

  • XCP可以数据采集块

描述

XCP可以数据获取Block根据您选择的测量结果从配置的服务器连接中获取数据。该块使用XCP可以在指定的仿真时间步骤中传输层来获取所选测量值的原始数据。配置XCP连接并使用XCP可以数据获取block to select your event and measurements for the configured server connection. The block displays the selected measurements as output ports.

XCP通信块支持使用Simulink金宝app金宝app®加速器模式和快速加速器模式。您可以使用这些模式加快Simulink模型的执行。金宝app有关这些仿真模式的更多信息,请参见Design Your Model for Effective Acceleration(Simulink)

Parameters

展开全部

Select the name of the XCP configuration that you want to use. This list displays all available names specified in theXCP CAN Configurationblocks in the model. Selecting a configuration displays events and measurements available in the A2L file of this configuration.

Note

You can acquire measurements for only one event by using anXCP可以数据获取block. Use one block for each event whose measurements you want to acquire.

Select an event from the available list of events. TheXCP CAN Configurationblock uses the specified A2L file to populate the events list.

This list displays all measurements available for the selected event. Select the measurement that you want to use and click the add button,to add it to the selected measurements. On your keyboard, press theCtrl选择多个测量的关键。

在“块参数”对话框中,输入要在Search盒子。这全部Measurements列表显示所有匹配名称的列表。单击X以清除您的搜索。

此列表显示选定的测量值。要删除此列表中的测量值,请选择测量值,然后单击“删除”按钮,

In the Block Parameters dialog box, use the toggle buttonsto reorder the selected measurements.

This parameter enables support for XCP data types and dimensions as defined in the ASAP2 standard. The Block Output Settings parameter selects whether the port outputs Compu method conversion values or raw values. The options provide:

  • 物理价值(应用Compu方法转换)enables the raw-to-physical conversion of ECU measurement values. For this option, the block port settings are set either to'双倍的'或者'细绳', based on the underlying Compu method conversion. For example, Compu method完全相同的,线性,rat_func,TAB_INTP, 和tab_nointpport settings is'双倍的'while Compu methodtab_verbport settings is'细绳'。Compu方法转换支持的最大字符串长度为1024金宝appASAM XIL specification

    这FORM Compu method conversion is not supported. Simulink throws a warning for such a conversion and IDENTICAL conversion is applied to the underlying measurement. Also, only scalar measurement signals are supported for TAB_VERB conversion as Simulink only supports scalar strings.

    选择此选项显示块蒙版上测量名称前面的物理单元(如果有)。该物理单元是从A2L的测量和COMPU方法的描述中获取的。如果未指定物理单位,则仅显示测量名称。

  • Raw values (no Compu method conversion)根据A2L文件中的类型定义设置端口数据类型,并在Simulink中最多支持三维XCP测量。金宝app金宝app

  • Raw values as double (no Compu method conversion)将端口数据类型设置为双倍的,转换所有内部测量值。此选择最多支持Simulink金宝app中的三维XCP测量。金宝app

这些ASAP2数据类型通过相应的Simulink端口数金宝app据类型支持:金宝app

  • Sbyte

  • UWORD

  • ULONG

  • sl

  • A_UINT64

  • A_INT64

  • FLOAT32_IEEE

  • FLOAT64_IEEE

块中的尺寸支撑可容纳MATL金宝appAB的不同矩阵处理®和ECU。MATLAB默认操作将矩阵视为行矩阵。XCP测量可以具有LAYOUTascolumn_dir或者row_dir。If a matrix measurement iscolumn_dir,将块重新排列内存中的测量值,并确保MATLAB中的矩阵(X,Col y)指的是与ECU上(第X,Col y)相同的条目。重排会导致在ECU上连续的矩阵条目在MATLAB和SIMULINK中是不可连续的。金宝app

Specify a priority value as an integer from 0 to 255 for the server device driver to prioritize transmission of data packets. The server can accumulate XCP packets for lower priority DAQ lists before transmission to the client. A value of 255 has the highest priority. TheSET_DAQ_LIST_MODEcommand communicates theDAQ List Priorityvalue from client to server. This communication method differs from the specification of the Event Channel Priority property, which comes from the A2L file.

Specify the sampling time of the block during simulation, which is the simulation time. This value defines the frequency at which theXCP可以数据获取block runs during simulation. If the block is inside a triggered subsystem or is to inherit sample time, you can specify–1作为样本时间。您还可以在示例时间内指定MATLAB变量。默认值为0.01仿真秒。有关更多信息,请参阅Timing in Hardware Interface Models

启用时间戳后,该块将读取来自传入DTO数据包的时间戳,并输出时间戳到Simulink。金宝app这Enable Timestamp当在A2L文件中支持参数时,复选框显示在“块参数”对话框中。金宝app

Extended Capabilities

在R2013a中引入