canoe

Is there a way to automate BLF to CSV conversion in Vector CANoe?

眉间皱痕 提交于 2020-01-13 16:56:52
问题 My first approach was using python-can (as it added support for parsing BLF files with 2.0.0 release) like this: import can filename = "logfile.blf" logging = can.BLFReader(filename) for msg in logging: print(msg) but that resulted in an error that I reported to the developer. BLF format is proprietary and somewhat secret so I understand supporting it in an open-source library can be problematic. So then I looked into doing it using a solution provided by Vector : COM , but so far haven't

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"

Sending Periodic CAN signals on button press using CAPL and CANalyzer

我只是一个虾纸丫 提交于 2019-12-13 20:21:30
问题 I am trying to send a set of CAN frames on to CAN bus. I am using CAPL to program and CANalyzer8.5 to simulate and Panel designer to create a button. My requirement is to first create a button using PANEL designer. Only on button press it should start sending periodic CAN frames on to the bus. I am a bit confused as to how to achieve it. So far I have managed to write two separate programs using CAPL. First program sends data at start periodically. Second code sends data only once when the

Are timers running, while loops are active?

喜你入骨 提交于 2019-12-11 12:18:01
问题 Here's my code: setTimer(delay, (SEEDKEY_MAXTRY * SEEDKEY_FREQ) + (LOGIN_MAXTRY * LOGIN_FREQ)); do { // waits, until all operations have been executed; } while(isTimerActive(delay)); I know exactly how long it takes to execute my commands, so I set the timer delay to the explicit value. I have to wait, until I return some values. The simulation stucks at this point, my panels go into Windows-"No response" and the only way I can end the simulation is via Taskmanager. I think the only

How to include a .h or .dll file in CANoe/CAPL

倾然丶 夕夏残阳落幕 提交于 2019-12-07 07:07:05
问题 I want integrate a header .h or .dll file in CAPL (concretly Visa32.dll, visa.h or sicl.h) to control a multimeter 34461A. How can I include the .h files or .dll file in CANoe? I created an ECU module called multimeter. Thanks, 回答1: Including external DLLs in CAPL is possible, but you will need to create a wrapper for all the functions you're going to use. Take a look at \CANoe\Demo_AddOn\Capldll directorty which features such a wrapper. It's a MSVC project exporting a few simple functions to

CANoe CAN总线适配低价解决方案支持所有USBCAN(周立功CAN、PCAN、Kvaser、ValueCAN、NI CAN)

匿名 (未验证) 提交于 2019-12-02 23:49:02
在汽车通信领域CAN总线使用非常广泛,最强大的工具有Vector Case(10WRMB)。Pcan(2KRMB),ZLGCAN(1.5KRMB),KVASER(2KRMB)、ValueCAN(4KRMB),以上本文均称为USBCAN。 USBCAN拥有较强的性价比但是功能最弱,我们理想中最理想的组合是USBCAN硬件的价格享受Vector的软件的强大功能。 是的,你没有看错: USBCAN适配CANoe11.0 ZLGCAN适配CANoe11.0 如下为ZLGCAN和Vector XL互发数据,测试USBCAN性能。 如下图CAN1为CANcaseXLCAN2为ValueCAN3(任何USBCAN都可以),两路CAN对接,CAN1以10ms的周期向CAN2发送报文,效果如图 如下图CAN1为CANcaseXLCAN2为ValueCAN3(任何USBCAN都可以),两路CAN对接,CAN1以10ms的周期向CAN2发送报文,效果如图 利用IG模块让两个通道互发 实测周立功接入CANoe的时间精度(spy3发送,周立功连接CANoe接收),精度非常高 本解决方案可将ZLGCAN、PCAN、Kvaser、ValueCAN、NI CAN等接入CANoe,经过测试CANoe中的各项功能(图表、脚本、IG)均可正常使用。 此方案具有超高性价比,超低价享受Vector的所有功能

Start and run CANoe from Command Prompt

断了今生、忘了曾经 提交于 2019-12-01 19:23:48
Is it possible to start and run Vector CANoe from the Command Prompt and/or by using any other external script? This document tells you how to control CANoe from C++, C# etc. This by making use of the CANoe as a COM Server utilities. http://www.vector.com/portal/medien/cmc/application_notes/AN-AND-1-117_CANoe_CANalyzer_as_a_COM_Server.pdf CANOE simply loads a .cfg configuration file. For jenkins, I am using the Visual Basics script and using this loading perticular configration file. In this was it bypasses the "I accept" and other windows and loads the desired configuration also also using

Transmitting data over ISO-TP (transport protocol) in CANoe using CAPL

僤鯓⒐⒋嵵緔 提交于 2019-11-29 12:38:35
Using CAPL with CANoe to transmit big amount of data via ISO-TP on CAN. Is there a routine, that provides the handling of data segmentation embedded in CAPL or do I need to write my own interpretation? Take a look at the OSEK_TP CANoe demo. It shows how to transmit and receive data over ISO-TP ( Transport Protocol, ISO 15765-2 ). See the nodeA.can file and the OSEL_TP API reference for implementation details. Here is minimal example: Create and configure a connection: long handle; handle = CanTpCreateConnection(0); // 0 = Normal mode CanTpSetTxIdentifier(handle, 0x700); // Tx CAN-ID

Transmitting data over ISO-TP (transport protocol) in CANoe using CAPL

南笙酒味 提交于 2019-11-28 02:01:12
问题 Using CAPL with CANoe to transmit big amount of data via ISO-TP on CAN. Is there a routine, that provides the handling of data segmentation embedded in CAPL or do I need to write my own interpretation? 回答1: Take a look at the OSEK_TP CANoe demo. It shows how to transmit and receive data over ISO-TP ( Transport Protocol, ISO 15765-2 ). See the nodeA.can file and the OSEL_TP API reference for implementation details. Here is minimal example: Create and configure a connection: long handle; handle

CANoe与金溢的obu can连接的环境问题 Cifconfig can0 up 失败

感情迁移 提交于 2019-11-26 14:11:41
今天搭建了CANoe与金溢的obu can连接的环境问题。遇到了一个让人不解的问题。 can0起不来,于是怀疑波特率不匹配,使用调不了。 Linux 设置波特率 ifconfig can0 down /*关闭CAN0*/ ip link set can0 type can bitrate 250000 /*设置CAN0 250K波特率*/ ifconfig can0 up /* 开启CAN0*/ --------------------- sudo ip link set can0 type can bitrate 500000 /*设置CAN0 500K波特率*/ sudo ip link set can0 up 问题的现象: [root@genvict ~]# ifconfig can0 up ifconfig: SIOCSIFFLAGS: Invalid argument [root@genvict ~]# link can 500000 bitrate type can0 set ip -sh: link: command not found [root@genvict ~]# ip link set can0 type can bitrate 500000 ip: either "dev" is duplicate, or "type" is garbage [root