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
2
votes
2 answers
How-to Stop sending out PDU in FlexRay with capl
I have a FlexRay PDU called TEMP in our case, which is getting filled in every cycle, and i would like to simulate a timeout on this PDU, but it has no updatebit.
I have a panel where i check the enable button to decide if it should be sent out or…

vakesz
- 58
- 1
- 7
2
votes
1 answer
CAPL associative array with string types
Following this paper, I'm trying to create an associative array like this:
variables
{
char[30] translate[ char[] ];
}
It is exactly the same example in the paper. Problem comes when I try to put values to this associative array. For example:
on…

framontb
- 1,817
- 1
- 15
- 33
2
votes
2 answers
How to set DTC Status bits in diagnostic request in CAPL?
I trying to read a DTC from a CAPL script. I am using "(0x19) ReadDtcInformation - Report DTC snapshot record by DTC number" protocol service. My DTC number is 0x062003. I am able to set DTC number correctly. But, I am not able to set DTC status…

Flying Dutchmann
- 85
- 1
- 2
- 3
2
votes
2 answers
CAPL code, putting delay in the code
I have a CAPL test code that controls the start of CAN signal sending. My goal is to delay the start of the sending process.
My idea to do this is via a setTimer() function in combination with isTimerActive().
In general my code looks the…

Johann Diep
- 33
- 1
- 1
- 6
2
votes
2 answers
Is there a way to close terminal after calling sysExecCmd() in CAPL script?
I wrote a CAPL script that calls a python script using sysExecCmd like sysExecCmd("python",myParameters,myTree), where myTree is the current (nested) working tree wrt the current directory the CAPL resides in and myParameters are generated at…

Daemon Painter
- 3,208
- 3
- 29
- 44
2
votes
2 answers
how to copy entire content of the trace window to text file in canoe
i would like to know is there any way to copy the trace window data to text file ??
I've tried to copy every thing by "ctrl + a" then tried to paste in a text file, but unfortunately it is copying only some part of data.
even though the logging…

Harshan.B
- 93
- 5
- 13
2
votes
1 answer
Get CAN signal from database by its name in CAPL
I developped an user interface for simulating different types of failures on CAN signals contained in a frame (clock stuck, erroneous CRC). I need also to simulate unavailable values but in order to do so I have to use the input from the user which…

adinecsoi
- 21
- 3
2
votes
2 answers
Set relative path for Capl function sysExecCmd
I have following line of code. I want to set relative path instead of hardcoded path as is presently set in 2nd argument below-
sysExecCmd("Unlock_Ecu.bat","","D:\\Program Files\\ToolPath");
Should be replaced…

Tkumari
- 23
- 1
- 4
2
votes
4 answers
CANoe CAPL struct initialization
I'm having trouble with declaration and initialization of a struct in Vectors CANoe CAPL. I already know structs from C/C++ but it seems the declaration is a little different in CAPL.
The Vector help function isn't really revealing.
I have a number…

StealthScream
- 43
- 1
- 5
2
votes
1 answer
Invalid type in dll but I don't see the error
CAPL_DLL_INFO4 table[] = {
{CDLL_VERSION_NAME, (CAPL_FARCALL)CDLL_VERSION, "", "", CAPL_DLL_CDECL, 0xabcd, CDLL_EXPORT },
...
{"dllTEST",(CAPL_FARCALL)GetAttribute,"CAPL_DLL","...",'I', 5, "IIICI", "\001\001\001\100\001",{ "x","x","x","x","x"…

R. Joiny
- 309
- 7
- 17
2
votes
2 answers
C/CAPL defining one array from another
this is my first question here, please notice I'm very new to coding. Quick search doesn't helped me since I think the answer might be too simple.
Im writing some code in CAPL (a CANoe specific language based on C).
Lets have my scenario simplified:…

Robertk2016
- 35
- 1
- 2
- 8
2
votes
1 answer
How to load a dll into VS c++, which acts like a wrapper to another CAPL code?
I am trying to reference functions in a 3rd party dll file through CAPL Script. Since, I cannot directly call them, I am trying to create a wrapper which exports the functions in the dll.
int MA_Init(char *TbName, int Option); is the function in the…

MEHNAZ HUSSAIN
- 81
- 1
- 7
2
votes
1 answer
How to read a float in a csv with CAPL?
I have a .csv file and I want to read the data in its format, not at string.
This is the function that save the file in a readbuffer if is ok.
fileGetString(readbuffer,elcount(readbuffer),readHandle)!=0)
And I have the data is in this…

eloy0107
- 77
- 1
- 2
- 8
2
votes
1 answer
Log Write Output to File in CAPL
Is there an easy way to take what I write to the write window and log it to a file? Or do I need to separately create an array of chars manually and open a file to write the char[] to? I would love to be able to write to file using regular…

CodeMonkey
- 1,795
- 3
- 16
- 46
1
vote
0 answers
Set string systemvaribale in CANoe from python
I am trying to set a system varibale in CANoe from python over COM.
I have managed to set a integer system varibale from python like this
When setting the integer system varibale I am doing this ( which works)
self.Application =…

Ostpanaka
- 75
- 8