Vector Communication Access Programming Language (CAPL), the C-like programming language developed by Vector Informatik GmbH for modelling network nodes, evaluation, and testing programs in real-time relevant simulations managed by CANoe and CANalyzer.
Questions tagged [capl]
363 questions
1
vote
1 answer
How do you gateway FlexRay frames before a Graphics/Trace window if you have a CAPL node there?
This is more for practice than anything else. I've added a CAPL node before the graphics window (Location of CAPL node) and I'm just trying to get familiar with doing some simple things like adding offsets to signals and things.
I'm able to pass it…

Stereoblind_89
- 11
- 1
1
vote
1 answer
How to change many XCP signals at once in the ECU using XCP protocol and CAPL?
I'm actually working with CANoe and CAPL language on the test of some XCP signals in an ECU, thus I need to change those XCP signals all at the same time (as mentionned in the customer specifications) in order to check the behaviour of the software…

Amiiiiiiine
- 11
- 2
1
vote
1 answer
Adding a selection of signal values in a CAPL script and store in a variable in CANalyzer 8.5?
I need to access the values of several signals in order to calculate their total value. I also need to compare the value of a signal to a constant value for use in an if statement e.g.
on timer msTimer100
{
if(msg1.Sig1 < 23)
{
x=1;
}
…

A Kerr
- 11
- 2
1
vote
1 answer
Running CAPL function in CANoe with comtypes gives an error
Right now I'm trying to call a CAPL function in CANoe with the CANoe COM API using the python comtypes package.
For this I created the following small short python program:
from comtypes.client import…

Aleph0
- 5,816
- 4
- 29
- 80
1
vote
1 answer
How can I pass a string as user-defined function parameter in CAPL
In CAPL, apparently you cannot pass a string as an input parameter for a user-defined function, according to the docs (see CAPL Introduction » Data Types for Function Parameters).
I'm working with file handling, both in read and write directions.…

Daemon Painter
- 3,208
- 3
- 29
- 44
1
vote
1 answer
Convert 4 bytes into 32-bit Float in CAPL?
I Want to convert a CAN Message(4Bytes) into a Float value.
I'm reading a value from the current sensor and convert into 4 bytes send them using CAN Shield to Vector CANoe.In the Arduino program, converted the float value into bytes and back again…

Aasai
- 11
- 1
- 7
1
vote
1 answer
Apply censorship to LIN Slave transmitted frames before they reach Master via CAPL
In my current setup, I have a LIN Master and a LIN slave. The schedule table is unconditional, and never re-negotiated:
Master Frame
Slave Frame
Slave Frame
I'm using physical bus and simulated Master (physical Slave). My goal is to apply…

Daemon Painter
- 3,208
- 3
- 29
- 44
1
vote
1 answer
Using "Button" from Toolbox in Vector Panel Designer, for a CAPL
I am writing testcases in CAPL and want to activate each test case by using "Button" from Panel Designer.
The problem is that whenever I pressed the Button, it reacted as if it were pressed twice.
I just simply add a code like this to make that…

Eth
- 11
- 1
- 3
1
vote
2 answers
CAPL for writing to file not working in offline mode
I wrote a simple CAPL program to output data to a file.
When executing simulation in offline mode, nothing gets printed on file. I can't test it in online mode. I can't understand why.
Script is put in measurement setup right after the…

Daemon Painter
- 3,208
- 3
- 29
- 44
1
vote
1 answer
Is there a way for me to make parameters adjustable in canoe?
I'm trying to make parameters adjustable (read calibratable) in CANoe like what exists in CANape. In CANape, the menu item makes a parameter adjustable by copying it from the main memory to the pool memory. I'm trying to find a similar function in…

Hitesh Anand
- 43
- 5
1
vote
1 answer
How do I insert a graph of my signal readings / XCP readings during a test to my report using CAPL?
I'm trying to add a graph in the report which represents how an XCP changes as i change the signal. I'm able to output this as teststeppass in the report as text. How do i use a graphical representation?
I'm using CANOE to automate some tests and…

Hitesh Anand
- 43
- 5
1
vote
1 answer
Disable particular Node in CANoe using CAPL
I am trying to disable a particular message of a node from sending default values available in dbc file, and through capl i need to transmit new(dummy) values.
I found the function ILNodeControlStop(), which blocks the node completely, but i want to…

Sanjana25
- 11
- 3
1
vote
2 answers
Decimal to hexadecimal conversion using CAPL
Is there any CAPL function for converting decimal value into hexadecimal value? I have already looked in help option of CAPL browser.

Renuka Choudhari
- 21
- 1
- 2
1
vote
1 answer
How to modify message data in CAPL if message is generated by Interactive generator block?
I am using CANalyzer.
I am transmitting CAN message using Interactive Generator block. I use IG to modify signals in transmitted message by hand.
I need to automaticaly calculate checksum (the last byte in the message) every time the message is…

ZM81
- 31
- 1
- 4
1
vote
1 answer
Automatically generate nodes in a Canoe configuration simulation
I am trying to automate and create a Canoe simulation.
My usecase :
I have a configuration (LibraryTest.cfg) with a CAN Network and a node ACAN in the network. I want to create another node BCAN automatically into the existing configuration along…

hellogeek
- 13
- 6