Skip to main content

CANoe IL CAPL Functions

Valid for: CANoe DE • CANoe4SW DE The following functions are available with the CANoe Interaction Layer (CANoe IL) and included CANoeILNLVector.vmodule. These CAPL functions are supported by Windows and Linux. The functionality under Linux has not been fully tested yet. Not all functions are supported by ERT, see ERT Support column. ON THIS PAGE:

Callback Interface [▲ back]

FunctionsERT SupportShort Description
applILTxPendingThis callback is optionally being called before the IL sends a message to the bus.
applILTxRequestConsumedAfter the IL clamp 15 state has been enabled by ILActivateClamp15 or any wake-up-allowed signal is transmitted, then optionally this functions is called.
applILTxRequestPendingIf the IL clamp 15 state is being enabled by ILActivateClamp15 or any wake-up-allowed signal is changed, then optionally this functions is called.

Control [▲ back]

FunctionsERT SupportShort Description
ILActivateClamp15Forwards the appropriate state of clamp 15.
ILConfigureNMNotificationsAllows manipulating the coupling between IL and NM module.
ILControlInitInitialization of CANoe IL.
ILControlResumeCyclical sending restarts.
ILControlSimulationOffStops the simulation of the IL.
ILControlSimulationOnStarts the simulation of the IL.
ILControlStartCyclical sending starts; setting signals is now possible.
ILControlStopCyclical sending is stopped; setting signals is now no longer possible.
ILControlWaitCyclical sending is stopped; setting signals is possible.
ILDeactivateClamp15Forwards the appropriate state of clamp 15.
ILSetAutoStartParamDefines the behavior of the interaction layer at the start of measurement.

Fault Injection and Disturbance [▲ back]

FunctionsERT SupportShort Description
ILFaultInjectionDisableMsgPrevents all sending of the message except the sending by calling the function ILSetMsgEvent.
ILFaultInjectionEnableMsgEnables the sending of the message.
ILFaultInjectionResetAllFaultInjectionsReset all fault injection settings.
ILFaultInjectionResetMsgCycleTimeResets the cycle time of the message to the database cycle time.
ILFaultInjectionResetMsgDlcResets the DLC of the message to the database DLC.
ILFaultInjectionResetMsgLengthResets the message length (in bytes) of the message to the database.
ILFaultInjectionSetMsgCycleTimeAssigns a new cycle time to the message.
ILFaultInjectionSetMsgDlcAssigns a new DLC to the message.
ILFaultInjectionSetMsgLengthAssigns a new message length (in bytes) to the message.

Functions for Test Setup and Simulation Setup [▲ back]

Various control and disturbance functions are provided for implementing a central control node in the Simulation Setup or tests in the CAPL test module.
FunctionsERT SupportShort Description
ILNodeControlMsgInfluences the sending of a certain message of a simulation node with an assigned interaction layer.
ILNodeControlResumeRestarts cyclical sending.
ILNodeControlSimulationOffStops the simulation of the interaction layer.
ILNodeControlSimulationOnStarts the simulation of the interaction layer.
ILNodeControlStartStarts cyclical sending. Setting of signals is possible again.
ILNodeControlStopStops cyclical sending. Setting of signals is not possible anymore.
ILNodeControlWaitStops cyclical sending. Setting of signals is still possible.
ILNodeDisturbAllNodesUpdateBitsModifies all update bits of signals/signal groups of all nodes in the current bus context.
ILNodeDisturbAllUpdateBitsModifies all update bits of signals/signal groups of a node.
ILNodeDisturbChecksumDisturbs the checksum a configurable value.
ILNodeDisturbCounterDisturbs the counter with a configurable value.
ILNodeDisturbPduUpdateBitModifies the update bit of a signal group.
ILNodeDisturbSignalGroupUpdateBitDisturbs the signal update bit with a configurable value.
ILNodeDisturbSignalUpdateBitDisturbs the PDU Update Bit with constant 0 or 1.
ILNodeSetAllNodesOperationModeSets specific operation mode in the interaction layer of all nodes.
ILNodeSetOperationModeSets specific operation mode in the interaction layer.
ILNodeSetSigGroupOperationModeSets specific operation mode in the interaction layer for a specified signal group.
ILNodeSetPDUTimingCyclicOverrides the defined cyclic-timing from the database.
ILNodeResetPDUTimingCyclicResets the cyclic-timing to the values from the database.
ILNodeSetPDUTimingEventOverrides the defined event timing from the database.
ILNodeResetPDUTimingEventResets the event-timing to the values from the database.
ILNodeSetPDUAsrTxModeOverrides the current valid transmission mode of the PDU.
ILNodeResetPDUAsrTxModeResets the current valid transmission mode to the condition that is defined by or-ing all data filters of all signals.

Maintenance [▲ back]

FunctionsERT SupportShort Description
ILErrnoReturns the last CANoe IL error code.
ILSetResultStringConverts the transferred error code to text.

Message Handling [▲ back]

FunctionsERT SupportShort Description
ILControlMsgAllows to manipulate the sending behavior of a message.
ILResetAllCANFDParamResets CAN FD parameters of all messages to database values.
ILSetCANFDParamAllows setting of CAN FD parameters for a specific message.
ILSetMsgEventSends the transferred message directly to the bus if the network is active.

OEM Add-on Based on Fault Injection Functions [▲ back]

CAN or FlexRay Specific Functions for Simulation Setup
FunctionsERT SupportShort Description
ILCalculateChecksumCalculates the corresponding CRC checksum based on the payload.
ILDisableMSGDisables the sending of the message except by calling the function ILSetMsgEvent.
ILEnableMSGEnables the sending of the message.
ILEnableTimingCyclicControls the cyclic timing of PDUs. The cyclic timing can be enabled/disabled.
ILEnableTimingEvtTrgControls the event triggered timing of PDUs. The event triggered timing can be enabled/disabled.
ILEnableTimingImmedControls the immediate timing of PDUs. The immediate timing can be enabled/disabled.

Signal Handling [▲ back]

FunctionsERT SupportShort Description
ILSetEventSends the transferred signal directly to the bus if the network is active.
ILSetSignalRawFieldSets the transferred signal to the provided value.
CANoe Interaction Layer (CAN)Return CodesTest Feature Set CAPL FunctionsFunctions in the Execution Context