From 62e5e6ab50e72b4866a4a2467d0dd7b0be35e946 Mon Sep 17 00:00:00 2001 From: gitea Date: Fri, 16 Aug 2024 16:05:31 +0800 Subject: [PATCH] =?UTF-8?q?README=E4=B8=AD=E5=A2=9E=E5=8A=A0=E6=95=B4?= =?UTF-8?q?=E6=9C=BA=E8=87=AA=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E5=89=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E8=B0=83=E6=95=B4=E9=80=9F=E5=BA=A6=E6=BB=91?= =?UTF-8?q?=E5=9D=97=E7=9A=84=E6=8F=90=E9=86=92=EF=BC=8C=E5=AE=8C=E5=96=84?= =?UTF-8?q?current=E6=95=B0=E6=8D=AE=E9=A2=84=E5=A4=84=E7=90=86=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/README.md | 1 + aio/code/data_process/current.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/aio/README.md b/aio/README.md index fecd128..c7847d9 100644 --- a/aio/README.md +++ b/aio/README.md @@ -146,6 +146,7 @@ pyinstaller --noconfirm --onedir --windowed --optimize 2 --contents-directory . 10. 由于xCore系统问题,运行过程中可能会出现机器人宕机问题,如果遇到,可以手动重启控制柜,重新运行 11. 务必正确填写configs.xlsx中的Target页面,A1单元格可以选择正负方向急停 12. 工程文件可以手动重命名,按照机型存档,或者导出用于自动化测试 +13. 自动化测试前,需要将HMI程序速度设置为100%并同步至控制器,也即左下方速度滑条滑动至最大 #### 6) 电机电流自动化测试 diff --git a/aio/code/data_process/current.py b/aio/code/data_process/current.py index 92fda5d..fa3b09b 100644 --- a/aio/code/data_process/current.py +++ b/aio/code/data_process/current.py @@ -28,16 +28,16 @@ def initialization(path, sub, w2t): filename = data_file.split('\\')[-1] if data_file.endswith('configs.xlsx'): count += 1 - elif sub == 'cycle' and data_file.endswith('.xlsx'): + elif sub == 'cycle' and data_file.endswith('T_电机电流.xlsx'): count += 1 else: if not (match('j[1-7].*\\.data', filename) or match('j[1-7].*\\.csv', filename)): msg = f"不合规 {data_file}\n" - msg += f"所有文件必须以 jx_ 开头,以 .data/csv 结尾(x取值1-7),请检查后重新运行。" + msg += f"所有数据文件必须以 jx_ 开头,以 .data/csv 结尾(x取值1-7),配置文件需要命名为\"configs.xlsx\",结果文件需要命名为\"T_电机电流.xlsx\",请检查后重新运行。" w2t(msg, 0, 6, 'red') if not ((sub == 'cycle' and count == 2) or (sub != 'cycle' and count == 1)): - w2t("使用max/avg功能时,需要有配置文件表格;使用cycle功能时,需要有电机电流数据处理和配置文件两个表格,确认后重新运行!", 0, 5, 'red') + w2t("使用max/avg功能时,需要有配置文件表格\"configs.xlsx\";使用cycle功能时,需要有电机电流数据处理\"T_电机电流.xlsx\"和配置文件\"configs.xlsx\"两个表格,确认后重新运行!", 0, 5, 'red') return data_files