Questions tagged [capl]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

EthernetPacket.source() CAPL function interpretation in Vector CANoe

I am new to Vector CANoe, I am trying to find the MAC address of the Ethernet packet being received from real ECU node and sent to another real Node. The two nodes are connected on two ports of the ...
Akhil Alugam's user avatar
-1 votes
0 answers
31 views

Capl script to send and receive 256 byte of data

I am new in capl scripting. I need to send and receive 256 byte of data in simple CAN and CANFD by capl. Can someone send me full script for above. I know how to send/recieve consecutive frames for ...
ANIL DUTT's user avatar
0 votes
1 answer
22 views

How to read the full data bytes of positive diagnostic service via trace interface by using Vector CANoe

I have difficulty reading full length of data bytes via trace interface when the data bytes I need are over the upper limit which traceface can show. I want to using service 22 to read a trail of VIN ,...
Mori's user avatar
  • 1
0 votes
0 answers
42 views

How to read full DTC via trace of Vector CANoe

I can't read the full length of DTCs via trace interface as the byte data is limited in 8 bytes. I changed the byte data and sent the diagnostic message via CAN IG,response can be seen via trace ...
Mori's user avatar
  • 1
0 votes
0 answers
51 views

CRC8 CAPL Script in CANOE not calculating CRC correctly

I have compiled a script in CAPL to operate in CANOE and it needs to calculate a CRC8 checksum. I have done this but it is calculating the wrong values. This is the code provided by the plant to ...
W1990's user avatar
  • 1
0 votes
0 answers
31 views

Measurement obejct has no attribute 'OnInit' in Python using CANoe

I want to run a CAPL function from Python script using COM to send a frame to network, as i read the documentation in chapter 2.7, there needs to be an OnInit event, so I modified py_canoe and ...
Alex Olivier Michaud's user avatar
-4 votes
1 answer
74 views

CAPL script to produce a Bus off on can Network

Actually I am trying to produce a BUS off using CAPL predefined functions. I am sending error frame using this function canOutputErrorFrame(can1.errorframe,8,0) repetitively so the counter reach 255 ,...
mohcine antouri's user avatar
0 votes
0 answers
24 views

How to reformat code for CAPL language in vs code?

When I write code for CAPL language but format of souce code not beauty, So I want to find the way to reformat code in vs code. I was try with prettier but It not operation
XuanDang's user avatar
0 votes
1 answer
88 views

How to calculate CRC for ISO CAN-FD frames

I'm working on a study about CRC in ISO CAN-FD but I'm having issues with the calculation of the actual check sequence. First of all, I have carefully read the specification ISO 11898-1:2015 that ...
Phil Snow's user avatar
0 votes
2 answers
75 views

How to increment Hex Value of a message in CAPL

I am trying to read data from my Vehicle ECU. My plan is to send IDs from 0x700 to 0x7FF and check against which cases a response is received from the ECU. My code goes as follows. But upon compiling, ...
Kryptic30's user avatar
0 votes
1 answer
67 views

Convert a string character to a hex value

I´m trying to build a CAPL script in which I can read the string data contained in an array and then convert it to hex. I tried to use functions such as "strtoul" and "DecodeString"...
A-DnielMR's user avatar
0 votes
0 answers
66 views

SOMEIP Service message Received on Canoe with the same timestamp can not be processed

I am Trying at the moment to read some service signals from the bus with Canoe and then assign the values to system variables so they can be assigned to a visual panel in Canoe. At the moment I am ...
Mihai's user avatar
  • 19
0 votes
0 answers
25 views

setting parameters of array type using hex taken from the panel

I'm currently writing a CAPL script that would take the parameters from a panel and create UDS requests with it. In the panel I have a hex/text editor which I use to get bytes that would be later used ...
Ahmed Sayed Mousse's user avatar
0 votes
1 answer
36 views

createGlobalMarker() function is not allowed within the current context

I am attempting to use the function createGlobalMarker() in a CAPL script of a CANalyzer configuration. The script is inserted on the Send branch of the configuration. I am sending frames with ...
Daemon Painter's user avatar
0 votes
0 answers
72 views

getValue method in CAPL does not return expected value

I am developing a CANoe simulation which takes a string from a panel, processes it in CAPL and provides info about that string further. See the following snippet: char myString[17]; int x=0; x = ...
Andrei Tudora's user avatar
0 votes
0 answers
82 views

Lin Master Cannot read slave response

I want to simulate a Lin Master request/response on my CANoe Capl. for this, I'm sending a header from my lin master node to my tested device slave, the slave reveice the header correctly prepare and ...
Huntermor's user avatar
0 votes
0 answers
35 views

How to run only failed testcases in Vector CANoe

I am executing XML test module of 182 testcases in CANoe. Wherein 2-3 random testcases are getting failed every time and those are getting passed if I run those individually. To get complete Pass test ...
AshviniK's user avatar
0 votes
0 answers
236 views

How to concatenate two bytes in CAPL?

I have been working on a CAPL code to display certain values from CAN signals on my Panel. I am now stuck at a point, where I have to merge two bytes in order to proceed further with my code. I am ...
Heisnam's user avatar
0 votes
0 answers
132 views

How to output a changing message within a for loop in CAPL Script

I would like to output using the message name that is stored within a string which changes throughout my for loop. When I place the string as the parameter within my output function, I am throwing an ...
Cooper Myers's user avatar
0 votes
0 answers
166 views

How to use function diagGetSuppressResp, diagSetSuppressResp in CAPL

I am writing a CAPL script to automate testing for service testerPresent and need to send requests with suppressPosRspMsgIndicationBit" ("suppress positive response message indication bit&...
Dragoni's user avatar
0 votes
0 answers
77 views

In capl using canoe test node,which function can we use to get the first PDU from an Ipadress

I am writting a capl code to automate startup time measurement of aurix controller.i want to measure the first PDU send by giving the ipadress of aurix(as i have aurix and orin together in my system) ...
mary korah's user avatar
0 votes
0 answers
200 views

Signal value not yet sent! shown on CANoe panel

I'm trying to get the value from track bar to update a variable original_threshold in CAPL. I've been getting this issue in the CANoe panel. After reading a few posts, it seems like I missed the IL to ...
Emily Lin's user avatar
0 votes
1 answer
303 views

CAPL programming -how to manipulate messages from 1 ecu and send it to target

I am completely new to CANoe and CAPL. I am trying to implement a man in the middle manipulation between a sender ECU and target ECU.How can i write code in capl to recieving messages from sender ecu ...
AVS's user avatar
  • 1
0 votes
1 answer
648 views

CANoe signal manipulation and CRC calculation

I have a CANoe environment where I am simulating a series of nodes and their associated frames using a DBC file. Some of these frames have 8-bit CRC checksums for the payloads, which I am calculating ...
Trinxas's user avatar
0 votes
1 answer
235 views

How to use applPDUILTxPending() in CAPL

How do you use applPDUILTxPending() in CANoe? Also, what is the difference between longID & shortID of a PDU? I have tried the example code given by Vector but it does not work. dword ...
Cubuc's user avatar
  • 66
0 votes
1 answer
308 views

How can I access value table entries of signals in CAPL?

I'm building CAPL test cases, and when the test passes, I want to output a signal (Status P) description based on current value . a table in signal: Value Description 0*0 OFF 0*1 INIT 0*2 IDEAL 0*...
K.Stefan's user avatar
0 votes
1 answer
129 views

Compiling and running C++ (Contains Java Library) dll file in CAPL code

Would you please help me with my problem through the CANoe, CAPL code? I am currently working on a project that automates the XDS110 debugger through the CAPL code, Simply by creating a C++ dll with ...
Muhammed Atef's user avatar
0 votes
0 answers
235 views

How can I react to event on system variable defined in CAPL script?

I defined a system variable in my CAPL file that I use to set up different modes in my script. I declared it in my CAPL file and not in my CANAlyzer window in order to allow the script to work with ...
Alexis Viardot's user avatar
0 votes
0 answers
205 views

How to caputre ethrent messages in real time with CAPL

I'm trying to build CAPL code to monitor Ethernet commuincation for automotive items. I have used [on ethernetPacket *] function to capture for some/ip messages in trace. But there were some problem ...
WONHEELEE's user avatar
1 vote
0 answers
228 views

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 ( ...
Ostpanaka's user avatar
0 votes
0 answers
98 views

message output not working due to BitCount and Length being zero

I'm kind of new to CAPL. Today I am trying to use the output function for sending UDS messages on CAN, using a simple code below: UdsReq.dir = 1; UdsReq.byte(0) = 0x02; UdsReq.byte(1)...
Piyush.bosch's user avatar
1 vote
1 answer
667 views

CANoe error in write window: "Local RT Kernel: Connection is lost"

Iam using CANoe v16 and simulating a configuration with a couple of CAPL nodes. I have been succesfully running the configuration for weeks now. Since today morning, all I can get when trying to run ...
sandc's user avatar
  • 11
-1 votes
2 answers
314 views

How I can set direction as only Tx message should be there and filter out TxRq

I am writing a CAPL script to mimic a CAN message on network. While I am getting intended message, direction is both Tx & TxRq. How I can filter out and send only Tx message. I tried CANID.dir=1 (...
Prashant Thakre's user avatar
0 votes
1 answer
225 views

Corrupting CRC field of a CAN message in CAPL

I want to add some anomalies to corrupt the CRC field of the CAN message. Theoretically, the CRC is being calculated using the info from data field/ctrl field/ ARB field. How to add the CRC corruption ...
Ahmed900's user avatar
1 vote
0 answers
49 views

what is Program /46-0106 Error in node Veh1 on channel WLAN 1 in C2X IL CAPL function C2xGetTokenInt: Protocol "EU_ApplMsg::DENM" not found

I'm trying to write a counter which is sending a msg+CTR but when I'm running the program it's saying this type of error "Program / Model 46-0106 Error in node Veh1 on channel WLAN 1 in C2X IL ...
Dani Nasser's user avatar
0 votes
1 answer
96 views

(CAPL) I want to assign same values in the specific array. how can I use "memcpy"?

I am new using CAPL. I want to make int array with same value(3). Below is okay.. (No error) However, As you could see this, this is way too complicated and hard to change the array value. int a[102] =...
James Hwang's user avatar
0 votes
0 answers
61 views

is it possible to define events or capl inbuilt test module functions in includes.cin file and import it in test modules?

I am currently working on capl browser (Vector Cannoe) test modules. I have a requirement where I am performing same set of actions such as testWaitForSignalChange(), testWaitForSignalMatch() as a ...
Nowzish M's user avatar
0 votes
0 answers
13 views

Is there a way to use mptcp using CAPL environment?

There is a software requirement that needs to send parallel tcp streams, is there a way to enable mptcp in CAPL ?
Nikhil 's user avatar
  • 139
-1 votes
1 answer
224 views

How to use setTimer and teswaitXXXX function in test module with CAPL

I'm trying to make automated test cases with CAPL in test module. First problem I faced is that I can't use setTimer in CAPL. As I know, setTimer is activated in [on Start] but It can't be used in ...
WONHEELEE's user avatar
0 votes
0 answers
282 views

CAPL Script - security access

I want to unlock ECU using more than one security level and use API diagGenerateKeyFromSeed to calculate the key but I occur some problems below: How to import multiple .dll files using CAPL script? (...
XuanDang's user avatar
0 votes
0 answers
79 views

How to send a CAN-message in CANoe 10 in one network to an another network?

I want to send a message from one network to trigger an event on an another network in CANoe. They have different dbcs. I've tried it with output(CAN.MessageName). Unfortunately it didn't work. "'...
JonasE's user avatar
  • 1
0 votes
0 answers
110 views

How to get can channel id using char name

How to get can channel id using char name? For example. my CANoe first can channel is 1, and it's name is "BCAN", is there a capl function that can get 1 from "BCAN"?
Zijia Niu's user avatar
-1 votes
1 answer
508 views

I am new to CAPL and looking for its tutorials

Is there any data available regarding CAPL -Books Tutorial Channels etc ,.
Hussain's user avatar
0 votes
0 answers
676 views

How to convert canoe test reports of CAPL into HTML report

How to convert the file from Canoe CAPL report to HTML format? I was tried in report viewer selector but no option i was found in it.
Imam Jafar Md's user avatar
0 votes
0 answers
15 views

How to use a Hex Number in Cubl

First of all I´m new to Cubl. So I have some Hex Values in a Table. I want to use the Values in Hex format to send them to a device. My Table looks the following long lookup[10] = { 0x129867, ...
Markus's user avatar
  • 52
0 votes
0 answers
172 views

vTestStudio: Type library generation for canoe configuration internal system gerneration failed

When I am importing canoe configuration variable in vTestStudio i am getting "type library generation for canoe configuration internal system gerneration failed". Due to this many of the ...
Prakash's user avatar
  • 27
0 votes
0 answers
283 views

Send CAN form error frames to test device with CAPL

I would like to send form error frames to a device, but I can't figure out how to do that (or a crc error, ack error, etc) with CAPL in the CAPL browser. I think I have to add something like ...
Bayou's user avatar
  • 3,303
0 votes
1 answer
144 views

Get the receivers of any message

Hello I'm trying to write down a code like this: on message * { if(this.receiver == "BCM") { write("The message %s will be received by the BCM", this.ID) } } But the ...
Sombra do Baiano's user avatar
0 votes
0 answers
581 views

Calculating BusLoad on CANoe

I have been trying to calculate busload in CAPL but it is always 0 no matter how many message signals i send from my node. I tried using the BusLoad member and some other helps from stack overflow ...
Shravan Kumar's user avatar
0 votes
0 answers
365 views

How can I verify CAN message ID received in CANoe against DBC file using CAPL?

I did similar with message DLC using predefined function ChkCreate_InconsistentDLC. Looking for options to do the same for message ID. I have been trying to find some predefined function.
Aakash Babar's user avatar

1
2 3 4 5
8