333 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
256
views
Interaction layer settings in CAN DBC and Vector CANoe
We are working on a Vector based Hardware in loop project. In Vector CANoe,if I add a network node and assign an simulated node to it, CANoe transmits all the Tx messages of the node on the bus as per ...
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
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
39
views
Can I connect multiple clients to the FDX Server in CanOE?
In our use case, we have a test system that contains multiple independent units (Test-Places) that should communicate with one CanOE application.
Is it possible to connect multiple clients to the FDX ...
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 ...
1
vote
1
answer
195
views
Handling py_canoe in a multi-thread environment
I am trying to implement a tool that executes some commands in CANoe, using for that the py_canoe library. If I implement all the CANoe calls in the main thread everything works fine, but since some ...
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
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
0
answers
71
views
How to use a signal of previous testcase?
I am encountering an issue in Canoe where test cases produce false positive results due to interference from previous test runs. Specifically, I am testing a Device Under Test (DUT) that sends the ...
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 ...
-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 ...
0
votes
1
answer
118
views
CANoe Physical to functional requests
I need to control CANoe with Python using win32com and change Physical Requests to Functional Group Request. This can also be seen in Diagnostics/ISO TP Configuration under CAN Networks under ...
-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
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
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
337
views
Error when i run python script to open CANoe config file
When I run this script named main.py bellow to load CANoe cfg file
from py_canoe import CANoe
canoe_inst = CANoe()
canoe_inst.open(canoe_cfg=r'C:xx.cfg')
i received error and CANoe is opened but ...
1
vote
1
answer
737
views
Enable/Disable Logging block in Vector CANoe through COM
I am trying to Enable/Disable the Logging Block using COM Objects in python. I could access the individual loggings from the collection, but cannot enable them programatically. I tried below way, the ...
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
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 ...
0
votes
1
answer
345
views
Adding event procedures using CANoe.NET API in VS studio
I tried to used the following procedure:
My problem is that it did not worked until I've created an observer and activated it before expecting the message to be seen. I'm not sure it is the proper ...
1
vote
0
answers
187
views
Wireshark is crashing after printing the result
Wireshark is crashing after printing the result. The root cause is we are dumping packets into a specific file and trying to post process continuously since packets are being cut into half error is ...
-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
0
answers
727
views
Add XCP device and configure variables in XCP/CCP window CANOe by automation
I am working on XCP test cases for the first time. I am trying the first step itself to add XCP device and configure few variables by automation. I am aware there exists functions to write and read ...
0
votes
1
answer
713
views
SysVar in C# COM with CANoe
I'm trying to communicate in C# with CANoe but I get some errors.
I have this setup to Open and Start (⚡) CANoe APP, and it is working fine:
private CANoe.Application CANoeApp;
private void ...
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
0
answers
292
views
How to solve exception in Python when using COM port with win32?
I have a Python script which open and start measures in CANoe.
It already opens CANoe but I get the COM error:
Exception has occurred: com_error
(-2147352567, 'Exception occurred.', (0, None, None, ...
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
775
views
Read connected Vector VN boxes with C#
does anyone know a way, how I can access the Vector Hardware Setup via VS in C# and read the connected VN boxes (name and driver)?
Because I want to read all connected VN boxes on my pc and will show ...
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
1
answer
461
views
J1939 TP protocol
We configured 2 nodes in CANoe and each nodes have different source address with same PGN number. The data sending at same time from both nodes and we configured this message is Multipacket using BAM ...
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
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 ,...
0
votes
0
answers
188
views
"Import Wizard" option not available in CANoe 17
I am using free version of CANoe 17 software. I created a candb++ database file. When I try to import it using "Import wizard" option, it is showing me that the option is not available.
0
votes
0
answers
1k
views
Create a gateway in CANoe
I have two CAN networks: One via Virtual CAN connected over Wifi to my PC and one CAN network connected with VN1610 via USB to my PC.
How do I setup a „gateway“ in CANoe, so I can transfer CAN ...
0
votes
1
answer
622
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"...
0
votes
0
answers
679
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 ...
0
votes
0
answers
159
views
pywintypes.com_error: (-1, 'Exception occurred.', (0, 'TSTestModule::TestVariant', 'Given variant identifier is not declared in the XML test module!')
I would like to change the TestVariant in testmodule using python and I'm trying to execute below function:
def test_env(self):
self.test_Module_envr = self.app.test_Module_envr
print('...
0
votes
0
answers
589
views
How do you see Tx/Rx Bus data in trace window via the COM interface in CANalyzer in C++?
I am completely new to this topic and I've been asked to create an application that shows the data exchange happening on a bus in CANalyzer via the COM interface, with the exact virtual time point ...