Active2 years, 11 months ago
Vector CANoe The isystem.connect interface allows driving iSYSTEM BlueBoxes from almost any external application being used in the development labs. These external applications are typically test environments controlling the target microcontroller and acquiring specific data (memory content, register values, trace, profiler, code coverage) from.
I have created a node in CANoe by using Vector software and I asigned the designed database for it.
I need to transmit a continuous messages, for that I created a panel with button. When I keep pressing on the buton the signal of the message should always take the value 1 otherwise its 0 (button released)
The message that should be transmitted have this caraczeristics:
My code for transmetting the message after pressing the button :
And I visualize the result in the Graphics:
But the wanted result should be like this without the up and down of the signal:
Any tips please? knowing that I don't use any Interaction Layer.
MedMed15311 gold badge22 silver badges1616 bronze badges
1 Answer
Note the
GenMsgILSupport = Yes
attribute, meaning the Interaction Layer support is enabled for this message. The IL is responsible for receiving and transmitting messages according to the attributes (like cycle time) defined in the database.Using IL support, you can access the signals directly. You neither need to define message variables nor timers, just put a
$
character before the signal name and set the value. Example:Complete example 1:
If you don't use any Interaction Layer, make sure it is disabled for your message. Furthermore, the are some issues with you code:
- You should start the timer in
on start
, not inon envVar
. - Set the signal value in
on envVar
oron timer
, but not in both.
Complete example 2:
sergejsergej10.6k55 gold badges2929 silver badges6565 bronze badges
Not the answer you're looking for? Browse other questions tagged simulationcaplcanoe or ask your own question.
Vector Communication Access Programming Language (CAPL), the programming language foundation of Vector CANoe and CANalyzer.
se-uql#toggleEditor'>
0
0answers
CAPL for writing to file not working in offline mode
I wrote a simple CAPL program to output data to a file.When executing simulation in offline mode, nothing gets printed on file. I can't test it in online mode. I can't understand why.Script is put ...
0
0answers
Programmatically update CANoe file version
working in a model-based development environment, I get periodic releases of a CANoe simulation.All files linked to the simulation.cfg configuration file are organized in a folder tree that differs ...
0
0answers
How to send a FlexRay Data in CAPL
I wish to send a FlexRay data on the bus with the help of CAPL. Whenever I'm sending, I'm getting an error. (System 14-0002 FlexRay 1: Unable to map PDUs for frame 38(0, 1)A, driver status = 267)...
0
0answers
Ini file created with “writeProfileInt” keeps recovering deleted lines
I have created a report file as an .ini using writeProfileInt().While testing, I changed the format of the report (from 'Test' field to 'Group 1') and even if there is no other mention on the code ...
-1
0answers
assign an errorframe value to a system variable with the put value function
I am trying to display a value to my CANOE panel designer using a system variable but it gives me a unknown network error message on message error_frames_message{ putValue(Error_Frame::err_frm1,...
2
0answers
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 ...
0
0answers
About CAPL, Is there a function during the test to initialize with the initial signal?
I'm setting up the autotester using CAPL. It has many test cases. So I can't initialize every value of the signal. So I want to use that function for initialization. Is there a similar way?I can ...
0
0answers
How to integrate Vector Canoe with NI cDaq hardware
I'm trying to integrate Canoe software to control/read some inputs/outputs from the NI cDaq hardware. I'm using vector Canoe 10 to automate some tests, functions like KL30, KL15, short circuit to GND ...
0
2answers
How to call CAPL general functions from Python 3.x?
IssueI'm trying to call CAPL general functions (in my case timeNowNS) but I don't know if it's possible. What I'm using?I'm using Python 3.7 and Vector CANoe 11.0.The connection is done using ...
0
0answers
Modify write data to ECU memory during run time through CANoe.Diva test case
I have a requirement where the data written to ECU memory must be changed during each request of WDBI service. Am using CANoe.Diva to generate WDBI test cases. For eg: in first request for DID 0x30 (4 ...
0
1answer
Is there a way for me to make parameters adjustable in canoe?
I'm trying to make parameters adjustable in CANoe like what exists in CANape. In CANape, the menu item makes a parameter adjustable by copying it from the main memory to the pool memory. I'm trying to ...
0
0answers
What function do i use to update the XCP parameter?
I'm trying to download data to the XCP after writing said data into the System Variable. I'm pretty much trying to find the function which does the opposite of xcpDownload().Just writing to the ...
1
1answer
How do I insert a graph of my signal readings / XCP readings during a test to my report using CAPL?
I'm trying to add a graph in the report which represents how an XCP changes as i change the signal. I'm able to output this as teststeppass in the report as text. How do i use a graphical ...
0
0answers
How to encapsulate UDS request and response in an Ethernet PDU in CAPL?
If I have to encapsulate an UDS request (Ex: Read Data By Identifier) into an Ethernet PDU in CAPL script, then how do I do it ? I would like CANOE to load a CDD file and still fire UDS requests like ...
-1
1answer
CAPL: Sending continous message after a key stroke
I am trying to send a message continuously after a key stroke and also reset the message after a set time.includes{}variables{ int i; int j;}On key 'a'{ j = 1;}on start{ if(j =...
153050per page