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
3
votes
2 answers

CAPL writing to Text file

I am pretty new to the CAPL language. Hence, I am having problems with writing data to .txt file. This is the code I wrote: includes { } variables { message Generate_Num Gen; message Logger Logs; msTimer tim_100ms; msTimer tim_500ms; …
FikoT
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

Transmitting data over ISO-TP (transport protocol) in CANoe using CAPL

Using CAPL with CANoe to transmit big amount of data via ISO-TP on CAN. Is there a routine, that provides the handling of data segmentation embedded in CAPL or do I need to write my own interpretation?
Georgiev
  • 71
  • 1
  • 1
  • 7
3
votes
3 answers

CAPL Programming usage of Timer as a delay

I have been writing a CAPL script that would send message on each channel (2 no's) after a certain delay. The following delay i want to generate using SetTimer() and mstimer::isRunning function. I can use setTimer function but I dont know how to use…
Yash Vardhan
  • 67
  • 1
  • 1
  • 5
3
votes
2 answers

Passing integer to a function that has enum as input parameter

I've got a question What shall happen if we have the following : typedef enum {s1=0,s2,s3} states ; void test( states x ) ; when using the function test , what happens if I use it like the following : test(6); Shall it be mapped to the…
2
votes
1 answer

CAPL Evaluation write in a Matrix

I want to write the evaluation of CAPL Node in a matrix. Now I have my evaluation just in write windows and they are more than 10000 line. therefore I want to write in a matrix with limit of lines and columns. Any idea? on message 0x4490 { …
MDM
  • 21
  • 1
2
votes
1 answer

Read memory by Address - Read more than 255 bytes

I want to read around 336 bytes of data from NVRAM using Read Memory By Address UDS service. The command I am giving is "23 22 1C 22 01 50", where 0x23 - UDS command for Read Memory By Address 0x22 - Address and Length Format Identifier…
lerner1225
  • 862
  • 7
  • 25
2
votes
1 answer

How can we call a .vsq file in canalyzer?

I'm working on CANalyzer and I want to call a file (.vsq) in it using CAPL. How can we do this?
learner
  • 23
  • 7
2
votes
1 answer

CAPL Accessing integer signal with more than 52 bits

The question is regarding CAPL signal access. Let's assume that in the code there is 64-bit unsigned integer signal from some PDU. While trying to assign signal value to sysvar or qword variable like: @sysvar::bar = $foo; The warning shows up: CAPL…
Juhas
  • 178
  • 2
  • 13
2
votes
3 answers

How to create new environment variable for CAN database in CANoe for CAPL and Panels?

I am new to CAPL and CANoe. I want to access some particular signals from CAN database. I am able to create new system variables for Panel designing, but for some specific scenario, I want to use CAN signals directly as environmental variables. I am…
GGG
  • 55
  • 1
  • 1
  • 10
2
votes
2 answers

sending capl message with m.FDF bit set

I am trying to send a message on a simulated CANoe bus. I want to set the FDF bit for can fd. In the capl node that outputs the message, the FDF bit is set. But as soon as the receiver reacts to the message in his 'on message' routine, the FDF bit…
Schn3id3r
  • 21
  • 3
2
votes
1 answer

How to simulate error frames and make error counters increase/decrease in CANoe using CAPL?

I was trying to simulate two nodes in CANoe and made communication between them by sending messages to each other using a CAPL script. When I think about generating error frames, I got to know about the CAPL function output(errormessage). How could…
2
votes
1 answer

Pass CommandLine result into CAPL program or System Variable of CANoe

In order to enforce traceability of the test environment, we'd like to have a system variable in the CANoe configuration, storing a simple string that references the version of the configuration itself. What we are trying to achieve is the…
Daemon Painter
  • 3,208
  • 3
  • 29
  • 44
2
votes
2 answers

CAPL how to init array with zeros using memcpy

How can I use memcpy in a Vector in CAPL to initialize an array with zeros? The variable in CAPL is: byte myArray; In C the solution to init the array would be: memset(myarray, 0, sizeof(myarray)); How can I do the same in CAPL?
DAme
  • 697
  • 8
  • 21
2
votes
2 answers

How to create a panel in CANoe project with selection of the particular ECU from DBC and selection of the TX/RX message from the selected ECU?

Once after adding the DBC file to CANoe configuration, How to select the particular ECU from DBC and select the particular TX/RX message in the panel? Brief: I have multiple ECU let's assume there are 3 ECU's A - ECU1, B - ECU2, C - ECU3 I need to…
Dinesh
  • 21
  • 1
  • 4
2
votes
2 answers

Reading LIN frame from slave node in CAPL

I'm trying to read the linFrame sent from a slave LIN node, to identify when a particular bit has changed from from zero to one. I'm sending a LIN message to a slave servo that commands it to move beyond a physical end-stop. Once it physically hits…
adamchapman
  • 81
  • 1
  • 4
1
2
3
24 25