CPAL脚本自动化测试 ———— Flexray系列函数及使用
现在,CANoe能支持的协议已经越来越多了,Flexray也逐步被使用到了整车网络中。既然可以使用以太网进行通信,那也需要对Flexray进行一定的操作。CANoe 内部存在着Flexray系列函数,现在来介绍一下如何使用。frEnableGateway函数该函数的使用格式如下。功能是激活网关。frEnableNodeTx函数该函数的使用格式如下。功能是启用/禁用指定节点的所有 TX帧 / PDU
现在,CANoe能支持的协议已经越来越多了,Flexray也逐步被使用到了整车网络中。既然可以使用以太网进行通信,那也需要对Flexray进行一定的操作。CANoe 内部存在着Flexray系列函数,现在来介绍一下如何使用。
-
frEnableGateway函数
该函数的使用格式如下。功能是激活网关。
-
frEnableNodeTx函数
该函数的使用格式如下。功能是启用/禁用指定节点的所有 TX帧 / PDU。启用后,将 传输帧/ PDU的默认数据。
-
frGetConfiguration函数
该函数的使用格式如下。功能是将FlexRay协议参数复制到。FlexRay协议存在着那些参数呢?
FRBaudrate:Baud rate in kBit/s.
gdMacrotick:FlexRay protocol parameter. See FlexRay specification.
gMacroPerCycle:FlexRay protocol parameter. See FlexRay specification.
gdNIT:FlexRay protocol parameter. See FlexRay specification.
gdSampleClockPeriod:FlexRay protocol parameter. See FlexRay specification.
gdTSSTransmitter:FlexRay protocol parameter. See FlexRay specification.
gPayloadLengthStatic:FlexRay protocol parameter. See FlexRay specification.
gdActionPointOffset:FlexRay protocol parameter. See FlexRay specification.
gdStaticSlot:FlexRay protocol parameter. See FlexRay specification. gNumberOfStaticSlots:FlexRay protocol parameter. See FlexRay specification.
gdMinislotActionPointOffset:FlexRay protocol parameter. See FlexRay specification. gdMinislot:FlexRay protocol parameter. See FlexRay specification.
gNumberOfMinislots:FlexRay protocol parameter. See FlexRay specification.
gClusterDriftDamping:FlexRay protocol parameter. See FlexRay specification.
gListenNoise:FlexRay protocol parameter. See FlexRay specification.
gColdstartAttempts:FlexRay protocol parameter. See FlexRay specification.
gSyncNodeMay:FlexRay protocol parameter. See FlexRay specification.
gOffsetCorrectionStart:FlexRay protocol parameter. See FlexRay specification.
gdDynamicSlotIdlePhase:FlexRay protocol parameter. See FlexRay specification.
gdSymbolWindow:FlexRay protocol parameter. See FlexRay specification.
gdCASRxLowMax:FlexRay protocol parameter. See FlexRay specification.
gdCASRxLowMax:FlexRay protocol parameter. See FlexRay specification.
gdWakeupSymbolRxIdle:FlexRay protocol parameter. See FlexRay specification.
gdWakeupSymbolRxLow:FlexRay protocol parameter. See FlexRay specification.
gdWakeupSymbolRxWindow:FlexRay protocol parameter. See FlexRay specification.
gdWakeupSymbolTxIdle:FlexRay protocol parameter. See FlexRay specification.
gdWakeupSymbolTxLow:FlexRay protocol parameter. See FlexRay specification.
gMaxWithoutClockCorrectionFatal:FlexRay protocol parameter. See FlexRay specification.
gMaxWithoutClockCorrectionPassive:FlexRay protocol parameter. See FlexRay specification.
gNetworkManagementVectorLength:FlexRay protocol parameter. See FlexRay specification.
pChannels:FlexRay protocol parameter. See FlexRay specification.
pMicroPerCycle:FlexRay protocol parameter. See FlexRay specification.
pSamplesPerMicrotick:FlexRay protocol parameter. See FlexRay specification.
pPayloadLengthDynMax:FlexRay protocol parameter. See FlexRay specification.
pPayloadLengthFIFO:Size of the maximum data length that can be received via the FIFO buffer in 16-bit words.
pLatestTx:FlexRay protocol parameter. See FlexRay specification.
pdMaxDrift:FlexRay protocol parameter. See FlexRay specification.
pdAcceptedStartupRange:FlexRay protocol parameter. See FlexRay specification.
pClusterDriftDamping:FlexRay protocol parameter. See FlexRay specification.
pDecodingCorrection:FlexRay protocol parameter. See FlexRay specification.
pDelayCompensation_A:FlexRay protocol parameter. See FlexRay specification.
pDelayCompensation_B:FlexRay protocol parameter. See FlexRay specification.
pOffsetCorrectionOut:FlexRay protocol parameter. See FlexRay specification.
pRateCorrectionOut:FlexRay protocol parameter. See FlexRay specification.
pExternOffsetCorrection:FlexRay protocol parameter. See FlexRay specification.
pExternRateCorrection:FlexRay protocol parameter. See FlexRay specification.
pExternCorrectionMode:FlexRay protocol parameter. See FlexRay specification.
pMacroInitialOffset_A:FlexRay protocol parameter. See FlexRay specification.
pMacroInitialOffset_B:FlexRay protocol parameter. See FlexRay specification.
pMicroInitialOffset_A:FlexRay protocol parameter. See FlexRay specification.
pMicroInitialOffset_B:FlexRay protocol parameter. See FlexRay specification.
pWakeupChannel:FlexRay protocol parameter. See FlexRay specification.
pWakeupPattern:FlexRay protocol parameter. See FlexRay specification.
pAllowHaltDueToClock:FlexRay protocol parameter. See FlexRay specification.
pAllowPassiveToActive:FlexRay protocol parameter. See FlexRay specification.
pBGTick:FlexRay protocol parameter. See FlexRay specification.
pPhysicalLayer:Defines the physical layer to be used.
pSingleSlotEnabled:FlexRay protocol parameter. See FlexRay specification.
pBGEnable:FlexRay protocol parameter. See FlexRay specification.
pDynamicSegmentEnable:FlexRay protocol parameter. See FlexRay specification.
pChannelsMTS:FlexRay protocol parameter. See FlexRay specification.
pCCVersion:Indicates the selected FlexRay interface type
pStrobePointPosition:E-Ray parameter. See E-Ray specification.
pdMicrotick:FlexRay protocol parameter. See FlexRay specification. -
frGwBypassDynamic函数
该函数使用格式如下。功能是激活/禁用动态零件的自动布线。测量期间不能使用该功能。“网络硬件配置”对话框中的设置被该功能覆盖。
-
frSendSymbol函数
该函数使用格式如下。功能是在下一个可能的符号窗口中发送MTS符号。
-
frSetConfiguration函数
该函数的使用格式如下。功能是将FlexRay协议参数从配置对象写入FlexRay接口的Communication Controller。必须先前已按照FlexRay规范在配置对象中设置了这些值。仅在重置Communication Controller时才应用新协议参数。
-
frSetKeySlot函数
该函数使用格式如下。功能是配置要发送给FlexRay总线的两个可能的键槽之一。更改将在接口硬件的下一次重置时应用。
-
frSetMode函数
该函数使用格式如下。功能是初始化FlexRay总线驱动程序。 本质上,它定义了将驱动程序设置为普通模式还是睡眠模式。
-
frSetPduFilter函数
该函数使用格式如下。功能是为PDU配置过滤器。可以在 on preStart上和测量期间调用此功能。此功能仅对Simulation Setup中的CAPL节点有效。
-
frSetSendPDU函数
该函数使用格式如下。功能是配置硬件以传输指定的PDU。所有相关的插槽均已提交以进行传输。此提交必须在传输分支的On preStart例程中进行。如果使用frPDU创建了frPDU对象,则可以使用此功能将其提交以进行传输 。
-
frUpdatePDU函数
该函数使用格式如下。功能是更新分配的FlexRay帧中的PDU有效负载。也可以设置更新位。
对于上述函数中使用到的一些参数所表示的具体的状态,请大家到工程中按F1键获取到相对应的解释和帮助,这里不一一赘述。
更多推荐
所有评论(0)