Skip to content

luxc1101/CANVectorOnline

Repository files navigation

python can GUI

基于python-can开发的一款用于can协议解析的工具。

offline mode

offline mode Gif

  1. 运行 CANanalysis.py 文件:
    offline mode
  2. 运行 video player:
    video player

注意事项

  1. K-Lite Codec Pack 用于 voide player 功能的使用, 需要预先下载才能播放视频
  2. 加载的数据默认格式为Vecotr interface记录的asc文件
  3. 如果想要读取ZLG记录的asc文件必须使用ZLG Transfer功能进行格式转化,然后再加载转化后的.asc/.dat数据

online mode

online mode Gif

  1. 在菜单栏选择vector->py can 进入online mode
  2. simulation的情况下(如下图)需要设置senderreceiver的参数
    simulation mode
  3. sender为真实的canbus则不需要对sender进行setup也不需要发送数据, receiver会接收数据,如果需要log请在开始接收前打开logging选择存储路径
    real time mode
    logging
  4. 想要real-time-curve需要选择message ID和相应的start bitbit length 才能plot, 右键可以随时save image到本地
    save curve

注意事项

  1. 启动Vector Hardware Configuration配置 Hardware Configuration
    Hardware Configuration
  2. setup 中的 Serial Nr.(int) 需要接入设备从然后从Vector Hardware Configuration中读取(int类型)
    Hardware Configuration
  3. 主图senderreceiver的channel可能会根据Hardware不同而不同 比如VN1610 CAN Channel为[0,1]而VN5620 CAN Channel为[4,5]
    HWConfig1 HWConfig2
  4. 下载并安装用于通用编程接口的驱动程序XL-Driver-Library 20.30.14

生成.exe

tutorial: https://www.youtube.com/watch?v=0KN7FfvjFFU&list=LL&index=4
打开cmd在相应.py目录输入:

pyinstaller --onefile --windowed --icon=xxx.ico .\xxx.py 

About

Secondary development of vector interface by python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages