Questions tagged [canalyzer]

CANalyzer is the universal software analysis tool for ECU networks and distributed systems. CANalyzer makes it easy to observe, analyze, and supplement data traffic in CAN, LIN, MOST, or FlexRay systems. With powerful functions and user-programmability, all needs are covered from simple network analysis to advanced troubleshooting of complex problems.

62 questions
0
votes
0 answers

Replay log CAN through Vector interface

I would like to replay (Like a Replay Block in CANalyzer) a log CAN through a vector Interface using Python-can. import can def bus_log(): bus1 = can.interface.Bus(bustype='vector', app_name='CANalyzer', channel=1, bitrate=500000) bus2 =…
0
votes
1 answer

CAPL COM server (VBnet) - CANalyzer failed to open

i have issue when i try to run CANalyzer from vb.net more precisely at this point canApp = New CANalyzer.Application. visual basic display this : System.InvalidCastException : 'Unable to cast COM object of type 'System.__ComObject' to interface type…
yankov
  • 1
  • 3
0
votes
1 answer

Declare a message and signal as a variable before use it in CAPL

I created a CAPL program to calculate the consumption each time I receive a specific frame. The problem is that if the frame is different, the name of the frame and its signal must be changed throughout the code. Is it possible to declare a message…
0
votes
0 answers

CAPL script to update engine rpm on display ECU

I have written code in CAPL script to update engine speed. variable { message EEC1_01 mymsg; msTimer t_mymsg; } on start { myMsg.byte(3)=0x60; myMsg.byte(4)=0x22; setTimerCyclic(mymsg,50); } on timer t_mymsg { output (myMsg); } I am…
Wanted123
  • 23
  • 7
0
votes
0 answers

How can I manipulate the data in receiving CAN frame via CAPL script and forward it into the same CAN bus?

For example, I'm receiving a CAN frame from ECU with id 0x100 with some data inside in CAN channel 1. I want to change only byte 7 to 0xFF and forward this frame further in channel 1. My code is below: on message 0x100 { message 0x100 msg; msg =…
0
votes
1 answer

How to properly read J1939 messages from .asc file with cantools?

I'm trying to create a CAN logs converter from .asc files to .csv files (in human readable form). I'm somewhat successful. My code works fine with almost any database but j1939.dbc. The thing is, that if I print out the messages read from the dbc…
0
votes
1 answer

CAPL - When Button is clicked - program is executed twice

The code which need to be executed when Button is clicked. It is being executed twice. when I use "if(this == 1)" I am having an error "Operand types are incompatible" on sysvar_update sysvar::NexteerData::WriteRead { seclevel = 1; …
0
votes
1 answer

Is it possible to transmit error frames on to bus with CANalyzer?

I am looking to transmit error frames onto my CAN bus at a periodic rate for testing purposes. I have CANalyzer and cannot see this as an option anywhere. I am currently just running a wire from GND to the CAN wires to force errors on the bus but…
Matt
  • 1
0
votes
1 answer

How Can I loop on all received signal data in Canoe using Capl?

Lets say I have a message called msg1 which contains many signal (sig1,sig2,sig3,......sig20) with initial value 0, How can I loop on all the received signal data using capl and print the signals name that has fired or its value is changed from 0 to…
0
votes
1 answer

to send the CAN frames after recieving ACK in CAPL (using delay/timer in CAPL)

I wrote a CAPl code, where it has to send the CAN frames to control the stepper motor step. stepper motor used is TMCM-1311 module. variables{ message step myMsg1; message llmmodule myMsg2; message llmmodule myMg3; } on start{ int i=0; for…
0
votes
1 answer

How to convert a byte array into a string in CAPL?

I have a byte array and I need to print the elements in a single line. I tried using 'snprintf()' but it won't take a byte array as its input parameter. I tried copying the byte array into an integer array and then used the snprintf(), but instead…
ANTONY JOSE
  • 3
  • 1
  • 2
0
votes
1 answer

CAPL: Create a lookup table, that assigns values to a changing variable

I want to assign a value to a variable in CANoe by using a lookup table. If sysvar:test changes to the values 1, 2 or 3, then I want that sysvar::show changes to the values 4, 78 and 33 or other values I assign. How can I do this? Thanks in advance!
0
votes
2 answers

Playing Vector CANoe BLF/ASC file using CAPL

I'd like to play a Vector CANoe BLF/ASC file from my CAPL srcipt. For some reason the Replay Block can not be used. Is is possible to play a CANoe BLF/ASC file from the CAPL script?
M.Sz
  • 1
  • 1
  • 1
0
votes
0 answers

Automating BLF to MAT File Conversion in Vector CANalyzer

I'm trying to automate my conversion of a bunch of BLF files into Matlab MAT files. I found a similar question on here and used the answer to get started: Is there a way to automate BLF to CSV conversion in Vector CANoe? I would just comment on that…
Doug
  • 1
  • 1
  • 2
0
votes
0 answers

Converting Vector *.blf data to normal readable data for spreadsheet use with python-can or cantools

I have a few files that were created by exporting CAN-Bus data in CANalyzer or Vector. The problem is the mainly interesting data in the file are encoded and look like this: "40c1 bf1b 490d 34b0 46c5 6ed0 a853 d856". Is there a way to "convert" this…
Julian Jantz
  • 1
  • 1
  • 1