395 questions
0
votes
0
answers
86
views
CANoe Python COM Automation: Server Busy popup when calling exported CAPL function with GetFunction/Call
I'm migrating an automated test workflow from Vector VtestStudio to a Python-based tool. Previously, in VtestStudio, we could execute a separate .can CAPL script in the middle of a test without issues....
0
votes
0
answers
166
views
How do I debug a Vector CANalyzer CAPL script with error 01-0025 "Measurement stopped due to recursive lock on environment/system variables update"?
I've been getting error 01-0025 "Measurement stopped due to recursive lock on environment/system variables update". I'm at a loss as to what could be causing this, as there is no recursion ...
1
vote
0
answers
324
views
Function can't handle different string encodings. If you are using non-ASCII characters, save the source file in the local encoding
I have a CAPL script done in Windows with a shebang at the beginning as follows:
/*@!Encoding:65001*/
and this warning message pops up with green highlighting on a TriggerPDU2() function.
Function ...
0
votes
0
answers
117
views
Not able to access Security through CAPL - Vector CANoe
In the below CAPL code, the session start request and the seed request are being sent successfully, and we are also receiving a positive response. However, the variable ret, which should be set to 1 ...
0
votes
0
answers
72
views
CAPL testWaitForDiagResponse do not work when request type is functional request
diagRequest STDS_RQ Dummy_Req_Obj;
long u32RespCode;
u32RespCode = diagSendRequest(Dummy_Req_Obj); // Send the request
if(0 == u32RespCode)
{
u32RespCode = testWaitForDiagRequestSent(...
0
votes
1
answer
135
views
How can I check a signal's one bit's value in Vector CAPL?
I need a assistance for my Vector CAPL script below. I couldn't find a way to find out if a signal's value of a message that in my database (one bit) is 0 or 1.
Here is the code:
variables {
message ...
0
votes
1
answer
97
views
How to Define CAPL Custom Function Which Expects Message Names As Input
I am trying to create a function to initiate transition from one vehicle clima mode to another. For this purpose, I have a DBC file which contains messages and corresponding signals. My goal is to ...
1
vote
0
answers
64
views
How to dynamically switch ECU CAN message IDs in CAPL without hardcoding for each ECU?
I have a specific query related to UDS Testing in CAPL.
Scenario
I have two different ECUs which are differentiated by the ECU number in the Extended CAN ID.
For a single ECU, there is no issue. I ...
1
vote
1
answer
109
views
Declaring a variable inside a CAPL function leads to undefined behavior
Consider the following example:
main.can
includes {
#include "sub.cin"
}
variables {
msTimer tim;
int number;
}
on start {
setTimerCyclic(tim,20,20);
}
on timer tim {
number = ...
0
votes
0
answers
165
views
Playing Specific Segments of a Replay Block in CANoe using CAPL
I have a replay block (in simulation setup) in CANoe that contains a 2-hour measurement. However, I only need two certain parts of this measurement and I don't want to play the entire 2-hour recording ...
0
votes
0
answers
201
views
Vector CANoe Test Real Some/IP Node fail
I am trying to use CANoe to test real SOME/IP devices but I can only receive message and cannot transmit message to the device:
The steps I followed are:
Follow the 4 part simulation set up from ...
0
votes
0
answers
180
views
How to trigger events froma testmodule in capl?
I have in my testmodule a few events like on sysvar
on sysvar PICOLOG::Start
{
write("Temp is : %f", sysGetVariableFloat(sysvar::PICOLOG::CH_1));
}
MainTest()
{
write("MainTest ...
0
votes
0
answers
67
views
Unable to establish Remote connection with Keithley 2230g 3Ch DC Power supply from Canoe Tool via rs232
I am trying to control a power source with CANoe through RS232 Serial Communication, however when I send a command to the power source using the built in rs232Send function, no response from the Power ...
0
votes
0
answers
386
views
Diagnostics usage via CANoe and CAPL: Unable to trigger "on diagResponse" function
I'm trying to send a simulated Diagnostic response via CAPL, then catch it and do something with it.
This is the simulated response code (I can see it being sent in the Trace window):
on key 'z'
{
...
1
vote
0
answers
87
views
How to compile .can files to an executable via CLI without using CAPL Browser for automation?
I have a set of .can files that I need to compile into executables as part of an automation workflow for work. The files are prepared for compilation in CAPL Browser, but I want to automate this ...
-1
votes
1
answer
422
views
How to send/receive data using CANoe FDX protocol?
I'm trying to send and receive data using CANoe FDX protocol.
I went through this document, which has instructions on how to configure CANoe config file.
I'm using CAPL for automation but I couldn't ...
0
votes
1
answer
329
views
CAPL Test Case for Monitoring CAN Signal Over Time
I'm trying to write a CAPL test case where I need to monitor a CAN signal BM_State under specific conditions for a duration of 7 seconds. The scenario is as follows:
I want to start monitoring when ...
0
votes
1
answer
99
views
Remove Message from Network using CAPL
I'm new on CAPL, and I'm trying to do a sequence where a "key" is pressed and after this, I'll be able to remove a msg from network. My code actual is:
on key 'a' {
TestEnableMsg(DM01_ECM);...
-2
votes
1
answer
1k
views
How to call Python functions from CAPL?
I have a Python module, say module.py, which has several functions like below.
"""module.py"""
class myclass:
def foo(self, arg1: str, arg2: int) -> int:
...
0
votes
3
answers
2k
views
How do I get the current Time in CAPL?
I am writing testresults I get into an .csv now I want to get a new .csv when I repeat the test.
my idea was to set the Timestamp at the End of the name of my .csv to tell them appart but I cant ...
-1
votes
1
answer
1k
views
CAPL Signal value assignment and read use physical or raw data?
I am new to CAPL and Canoe, my question is when assign value to signal in CAN message should you assign using physical signal like this:
MSG.Signal_A = raw_data * scale + offset;
Or just assign the ...
1
vote
1
answer
181
views
How to pass input from CAPL script to a Python script and execute it
I wrote a script to search a keyword in a logs, which is working perfectly fine. but the thing is if i want to find another string i have to make a clone and make it for the other one. i am ...
-1
votes
1
answer
212
views
Need capl script to get the value of particular byte of a first CAN message which is being sent periodically over CAN bus
Need CAPL script to get the value of particular byte of a first CAN message which is being sent periodically over CAN bus
I tried to set the local flag to some other value and added if condition to ...
0
votes
1
answer
225
views
CAPL SCRIPT. How to read second byte data
I am trying to write a CAPL script to compare diagnostic DID response to panel text value.
How can I access second byte of a diagresponse.
For ex : diagGetComplexParameter(Resp_F121,"...
0
votes
0
answers
515
views
CAPL DLL File Invalid Error When Starting Simulation in CANoe
I attempted to build a CAPL DLL file for CANoe following the CMake example provided in the Vector Help documentation. Additionally, I used similar steps from this githup repository: huangdong332/...
0
votes
1
answer
434
views
Regarding the issue of sending getter requests for the someip function in CAPL language
Since I don't have an arXML file, I have to defining a method:
Client:
variables
{
DWORD gMc; // global method call handle
}
on start
{
Initialize();
}
void Initialize()
{
DWORD aep; // ...
0
votes
1
answer
1k
views
How to Accurately Check Cycle Time for CAN Messages on Multiple Buses in CAPL using CANoe?
I'm currently working on a CAN network simulation using CANoe, and I am writing CAPL scripts to monitor the cycle time of CAN messages. My setup involves multiple CAN buses that share the same message ...
0
votes
2
answers
520
views
#ifndef __HEADER_H__ #define __HEADER_H__ in CAPL
What I'm trying is to separate function definitions from main .can file.
The problem is, when including same .cin file in different .can files, the multiple definition compile error occurs.
I've tried ...
0
votes
0
answers
324
views
CANoe Identifies Constructed Ethernet Frame as Unknown PDU Despite Correct Configuration
I'm encountering an issue while attempting to send an automotive Ethernet frame using the packet builder feature in CANoe. Despite configuring the frame with the necessary IP, UDP, and IPv4 parameters,...
2
votes
2
answers
1k
views
Capturing Entire CAN Frames in CANoe TestCases Using CAPL Language
I am currently developing test cases in CANoe using CAPL Language. My objective is to capture and save the entire CAN Frame as it appears on the trace, rather than just the signal it contains. While I ...
0
votes
0
answers
312
views
Is there a way to log test results from CANoe directly to csv via CAPL?
I'm working on the test case implementation in CANoe using CAPL.
Because I have to upload the test report in another system I need the csv file. Right now I can only see the test results either in ...
0
votes
0
answers
2k
views
using serial RS232 Communication in CANoe CAPL
I am trying to control a power source with CANoe through RS232 Serial Communication, however when I send a command to the power surce using the built in rs232Send function it results in one but the ...
-1
votes
1
answer
893
views
How to add dll security file into canoe?
I already have the dll file but how to add that into canoe and use them?
i have added the dll file into the canoe location (Diagnostic/ISO TP ->Diagnostic layer->security Access) . but when iam ...
0
votes
0
answers
519
views
"Local RT kernel: The connection is broken."--> Getting this error while calling a function in my capl code (the function is in dll file)
I Have added my dll file into capl code. when trying to use the function in my capl script iam getting this error "Local RT kernel: The connection is broken."
I would like to know if anyone ...
1
vote
1
answer
262
views
Unable to call CAPL Function
Failed to select or prepare CAPL function: 'Check_msg': (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147418113), None)
Error details: (-2147352567, 'Exception occurred.', (0, None, ...
-1
votes
1
answer
563
views
Any CAPL function to disable logging block when simulation is ON and activate it back required?
Trying to take logs in .pcap format n post process from trace window, I'm using startlogging and stoplogging capl functions as of now . When I'm stopping it pauses and resumes when I start again. I ...
-1
votes
1
answer
609
views
Need CAPL script to find fin or RST messages over TCP connection - DOIP
Can someone help me with CAPL script to find FIN /RST messages over canoe trace window? This is for DOIP module - I want it to check the RST/FIN from tester as well as ECU(as we specify)
Basically we ...
1
vote
1
answer
340
views
UDS on CAN TP tests
In order to cover the requirements I have to send UDS messages via transport protocol.
The idea is to test responses to abuses such as sending a SF of length FFF or 6 as well as sending multiple ...
0
votes
1
answer
573
views
What is the difference in capl between . and ::?
I know it is a basic question but I didn't find anywhere an explication and I want to understand why sometimes the code are written using . or sometimes use ::.
For example:
Msg1::Signal
Msg1.Signal
...
0
votes
1
answer
480
views
Using while in CAPL causes software to freeze at the beginning of simulation runtime
When simulating running in Canoe, the software freezes, which I believe is the reason for the while. However, in the while code segment, I have written the logic to stop the loop, and I don't know why....
0
votes
1
answer
895
views
Simulate bus-off using CAPL
Simulating busoff using CAPL.
Usually we create busoff using Shorting CANH & CANL, CANH to GND, CANL to VBAT, etc.
But here I want to create busoff using the CAPL functions?
Is it possible to ...
0
votes
0
answers
2k
views
CAPL function to stop CANoe
I need to stop CANoe simulation automatically when a condition is reached in my CAPL code.
Are there some built-in functions to achive that or other option?
I've tried stop() but it is not working.
If ...
0
votes
1
answer
1k
views
CAPL script to analyze logging file
I"m using CANoe and a CAPL script to perform statistic on CAN Frame.
I want to do that in offline mode playing a log file. In offline mode, I want to Start a replay file (.blf) from CAPL program ...
0
votes
1
answer
782
views
Capturing Diagnostic request 27 01 / Seed using DiagGetParameterRaw on Capl/Canoe
I want to capture response of this request 27 01 but unfortunately I am getting 00 00...
I can see the request and the response on trace with positive response , thus I can see the seed on trace as ...
0
votes
0
answers
2k
views
CAPL: display data of received message onto a GUI
I am new to CANoe/CAPL.
I am trying to display the data of the received message onto a GUI.
This will be a message that is 64 bytes, so I would like multi-line support.
Thus far, all I have seen as an ...
0
votes
0
answers
603
views
CAPL passing a struct as method parameter
I need to define a struct in CANoe, afterwards I need to create system variables of those structs, that’s ok but I need to use the struct as parameter to have a single method for all struct. for ...
0
votes
1
answer
867
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 ,...
-4
votes
1
answer
2k
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 ,...
0
votes
0
answers
541
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
2
votes
2
answers
992
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 ...