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.

363 questions
1
vote
1 answer

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 the simulation is this error from System: "Local…
sandc
  • 11
  • 5
1
vote
0 answers

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 CAPL function C2xGetTokenInt: Protocol…
1
vote
0 answers

How to update another byte of a CAN message while changing a byte in real-time?

I'm new to CANoe and CAPL scripting. I need to update a byte of CAN message based on a change in another byte through a panel. I added a CAPL script for the automatic change/update but when I send/update the byte through the panel it sends the…
Keshav
  • 93
  • 1
  • 1
  • 10
1
vote
0 answers

Converting a STRING to PGN in CAPL

I am preparing a simulation in CAPL for almost 200+ pgn which is in *.xls format. 1)Is there any way to convert the string to pgn datatype? 2) Other method to convert the 200+ PGNs to capl with prio would be really helful?
1
vote
2 answers

CAPL associative array with message type

I'm trying to make CAPL associative array which could hold e.g. 10 most recent CAN messages for each ID like below: message[10] messages[long] Is there possibility to make associative array in CAPL, where key would be some integral type value, and…
Juhas
  • 178
  • 2
  • 13
1
vote
1 answer

CAPL check between two char arrays

I have a question regarding some CAPL programming. I am looking to check between two arrays. But I can't seem to figure out how to do it. Can i please have some help. I have The following code: void Check(char out[]) { char checker[8] =…
Bogdan Marius
  • 45
  • 1
  • 4
1
vote
1 answer

Reset the time stamp to zero with CAPL

I am trying to automate with a CAPL for replaying different .asc files saved all of them in one specific path, I want to replay them one by one to generate new .asc log files but I would like to know if it is possible to reset to zero the timestamp…
1
vote
1 answer

CAPL PutValuetoControl

I am trying to display a message using PutvaluetoControl in Hex/Text Editor, but it is not working. on diagResponse Active_Steering.Active_Steering_Feb2021.DID_B526_Read { Write("PUT value into display panel"); …
1
vote
1 answer

How to open a specific CANoe configuration through command prompt without using VB scripts?

Is there any possibility to open a specific CANoe configuration through command prompt? I tried opening a configuration like sample.cfg through command prompt by using the command: C:\Users\Downloads\Sample>CANoe64 sample.cfg With this command, I…
suryadevi
  • 77
  • 3
1
vote
2 answers

How to open a excel file/Log file through CAPL for viewing

Whenever the CAPL script is executed, I want to open an excel file or log file. For example, there is a file named " Standard_details.xlsx or Logfile.txt". once the CAPL script is executed, I need this file to be opened for the user to read. How to…
suryadevi
  • 77
  • 3
1
vote
1 answer

String hex escapes (\xXX) don't work for values > 127 in CAPL

I'm trying to define some test data using string literals in CAPL. Most of the data is ASCII, but occasionally I need raw bytes, which I encode using hex escape sequences. This worked until I tried to encode values above 127. Here's a test…
Dmitry Grigoryev
  • 3,156
  • 1
  • 25
  • 53
1
vote
1 answer

CANalyzer CAPL: determine if bus sleep (no messages on bus)

I am using CANalyzer 7.0 and an trying to figure out how to determine in CAPL if the CAN bus has gone to sleep (no more messages being sent). How can I do this? I tried to read BusLoad using sysGetVariableInt() but it always returned zero. Perhaps I…
SimpleOne
  • 1,066
  • 3
  • 12
  • 29
1
vote
0 answers

Writing testcase to confirm counter signal values in CAPL

I am writing a basic CAPL test to check if a message counter is counting correctly with each cycle. I am trying the test case in simulated bus now, however whenever I check for the counter signal value using write() function I always get '0'and the…
Ahmed E
  • 11
  • 1
  • 3
1
vote
1 answer

Disabling a signal in CAPl within 100ms

I have a scenario where I need to check if signal sigA is unavailable for 100ms. I need it to set a certain value let's say 13. How can I do this in CAPL? Cyclic time of the message: 10ms.
1
vote
2 answers

How can i send UDS messages through CAPL without using CDD fille

Currently I am using a CDD file for accessing signal in CAPL program. Now I am trying to send the UDS signal without CDD file. Is there any options for the same?
Nandu
  • 53
  • 2
  • 5