This repository has been archived on 2025-03-27 . You can view files and clone it, but cannot push or open issues or pull requests.
珞石测试部自动化工具
一、处理逻辑以及原理
1. 数据处理
A. 制动数据
B. 电机电流
C. 激光
D. 基恩士数据
二、自动测试
1. 协议封包解包
2. 制动测试
3. 电机电流测试
三、注意事项
- 仅适用于 xCore 2.3.0.7 及以上的版本
- 单轴电机电流数据处理,至少需要三个完整周期
- 执行制动测试/电机电流采集/耐久测试的时候,执行过程中停止,再次运行需要等待一分钟左右,输出框会有提示
- 其他使用方法和之前工具一致
需要使用 assets/files/projects/ 下的工程,寄存器文件以及配置文件等!!!
四、发版记录
五、其他
1. 打包命令
打包时,只需要修改 clibs.py 中的 PREFIX 即可,调试时再修改回来
pyinstaller --noconfirm --onedir --windowed --optimize 2 --contents-directory . --upx-dir "D:/Syncthing/common/A_Program/upx-4.2.4-win64/" --add-data "../.venv/Lib/site-packages/customtkinter;customtkinter/" --add-data "../assets:assets" --version-file ../assets/files/version/file_version_info.txt -i ../assets/media/icon.ico ../code/aio.py -p ../code/common/clibs.py -p ../code/commom/openapi.py -p ../code/data_process/brake.py -p ../code/data_process/iso.py -p ../code/data_process/current.py -p ../code/data_process/wavelogger.py -p ../code/automatic_test/do_current.py -p ../code/automatic_test/do_brake.py -p ../code/durable_docs/factory_test.py -p ../code/durable_docs/create_plot.py --exclude-module=scipy
2. tabview 组件字体修改
customtkinter的tabview组件不支持修改字体大小,解决方法可参考如下:
Method 1:可以参考 Changing Font of a Tabview 进行手动修改源码实现:
a. 运行 pip show customtkinter
,获取到库的路径
b. 修改.../windows/widgets/ctk_tabview.py
c. 增加 from .font.ctk_font import CTkFont
d. 在大概 78 行的位置,增加 font=CTkFont(family="Consolas", size=18, weight='bold')
Method 2:
self.tabview_bottom._segmented_button.configure(font=ctk.CTkFont(family="Consolas", size=18, weight="bold"))
3. scroll frame 不支持修改高度和宽度
https://github.com/TomSchimansky/CustomTkinter/pull/1765/files
Description
Languages
Python
100%