capl

How to open a specific CANoe configuration through command prompt without using VB scripts?

左心房为你撑大大i 提交于 2021-01-28 14:22:47
问题 Is there any possibility to open a specific CANoe configuration through command prompt? I tried opening a configuration like sample.cfg through command prompt by using the command: C:\Users\Downloads\Sample>CANoe64 sample.cfg With this command, I am able to start the CANoe application, but not with the specified configuration. CANoe application gets started with the default configuration. 回答1: You can simply mention C:\Users\Downloads\Sample>sample.cfg This will open the configuration in the

How to open a specific CANoe configuration through command prompt without using VB scripts?

梦想与她 提交于 2021-01-28 14:20:50
问题 Is there any possibility to open a specific CANoe configuration through command prompt? I tried opening a configuration like sample.cfg through command prompt by using the command: C:\Users\Downloads\Sample>CANoe64 sample.cfg With this command, I am able to start the CANoe application, but not with the specified configuration. CANoe application gets started with the default configuration. 回答1: You can simply mention C:\Users\Downloads\Sample>sample.cfg This will open the configuration in the

Apply censorship to LIN Slave transmitted frames before they reach Master via CAPL

ぐ巨炮叔叔 提交于 2021-01-28 08:37:35
问题 In my current setup, I have a LIN Master and a LIN slave. The schedule table is unconditional, and never re-negotiated: Master Frame Slave Frame Slave Frame I'm using physical bus and simulated Master (physical Slave). My goal is to apply censorship to certain LIN frames, in real-time. For instance, I know that a request from Master (maybe single or multi-frame) will trigger a specific Slave response. I would like to catch this response, say in a CAPL script, perform checks on the content and

In CAPL, is there any function to start/open an executable in background?

為{幸葍}努か 提交于 2021-01-27 16:52:37
问题 I would like to run an executable from a CAPL script. Is there any function for that? I am looking for a function which will run an executable in the background. E.g. if a certain message is received, then start an application. Is there any possibility in CAPL for that? 回答1: Yes, there are two functions to do that: long sysExec(char cmd[], char params[]); long sysExec(char cmd[], char params[], char directory[]); long sysExecCmd(char cmd[], char params[]); long sysExecCmd(char cmd[], char

CAPL - Converting 4 raw bytes into floating point

心不动则不痛 提交于 2020-06-29 04:16:19
问题 CAPL - Vector. I receive message ID 0x110 which holds current information: 0x3E6978D5 -> 0.228 Currently I can read the data and save into Enviroment Variable to show in Panel using: putValue(slow_current, this.long(4)); But I don't know how to convert the HEX 4 bytes into float variable, since I cannot use address or casting (float* x = (float *)&vBuffer;) How to make this conversion in CAPL script? Thanks. 回答1: Typically your dbc-file shall contain conversion info from raw value (in your

linUpdateResponse vs Output - how are they different for LIN simulated nodes?

让人想犯罪 __ 提交于 2020-05-17 06:24:25
问题 In a LIN simulated slave node, what is the difference between output and linUpdateResponse ? From output docs: To reconfigure response data of LIN frame. In that case RTR selector has to be set to 0. The LIN hardware responds to the next request of the specified frame with the newly configured data. So, I can reconfigure the output and next time (real?) hardware should talk I've successfully override it, right? From linUpdateResponse docs: Updates the response data of a specific LIN frame.

Running a Blf file in constant Loop for Emulation using CAPL

拈花ヽ惹草 提交于 2020-01-07 09:03:12
问题 I want to run a .blf file using the Replay Block in CANalyzer . I want to run this file in a constant loop for emulation purpose. Is it possible using CAPL or can some one instruct me how to do this even without CAPL. 回答1: You don't need CAPL to replay a log file in a loop. Right click the Replay block In the "General" tab, enable " Repetitive output sending mode " 来源: https://stackoverflow.com/questions/31925321/running-a-blf-file-in-constant-loop-for-emulation-using-capl

Delay function in CAPL apart from testwaitfortimeout()

旧城冷巷雨未停 提交于 2020-01-06 07:22:11
问题 I have a CAPL test node that controls a GPIB power supply. This CAPL generates a signal that is modified each 3 ms. My CAPL looks like this: ... testcase wavGenerator() { GPIBWrite(myDevice, "VOLT", voltValue); testwaitfortimeout(3); ... } The problem is that this testwaitfortimeout() function generates a comment in the test report, and since i use this function 2000/3000 times for each testcase, I end with a enormous test report. I have tried implementing a function to generate a "delay"