diff --git a/hell2.csv b/hell2.csv index 458cb50..911390e 100644 --- a/hell2.csv +++ b/hell2.csv @@ -4,18 +4,3 @@ IP地址,MAC地址,版本号,通道1名称,通道1绑定设备,通道2名称,通 192.168.0.174,50-29-4D-20-12-03,3.1,通道3名称,通道3绑定设备,通道4名称,通道4绑定设备 192.168.0.185,50-29-4D-20-12-04,4.1,通道4名称,通道4绑定设备,通道5名称,通道5绑定设备 192.168.0.168,50-29-4D-20-12-05,5.1,通道5名称,通道5绑定设备,通道6名称,通道6绑定设备 -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, -,,,,,, diff --git a/mainwindow.py b/mainwindow.py index 8331a3d..e034abe 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -561,7 +561,8 @@ class SocketClientApp(QMainWindow): for i in range(min(5, len(data))): # 确保不超过数据长度 print(f"{data[i]:.3f}", end=" ") print() # 换行 - LSB_32BIT = (2.8 / (2 ** 31)) * ((750 + 287) / 287) * 1000 / 10.2 + LSB_32BIT = (2.8 / (2 ** 31)) * ((750 + 249) / 249) * 1000 / 10.2 + # LSB_32BIT = (2.8 / (2 ** 31)) * ((750 + 287) / 287) * 1000 / 10.2 # LSB_32BIT = (2.8 / (2 ** 31)) * ((750 + 287) / 287) * 1000 self.scaled_data = data * LSB_32BIT # for i in range(min(100, len(self.scaled_data))): # 确保不超过数据长度 diff --git a/mainwindow.spec b/mainwindow.spec index 8a16908..838bcd8 100644 --- a/mainwindow.spec +++ b/mainwindow.spec @@ -1,6 +1,9 @@ # -*- mode: python ; coding: utf-8 -*- +block_cipher = None + + a = Analysis( ['mainwindow.py'], pathex=[], @@ -11,15 +14,18 @@ a = Analysis( hooksconfig={}, runtime_hooks=[], excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, noarchive=False, - optimize=0, ) -pyz = PYZ(a.pure) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE( pyz, a.scripts, a.binaries, + a.zipfiles, a.datas, [], name='mainwindow', @@ -29,7 +35,7 @@ exe = EXE( upx=True, upx_exclude=[], runtime_tmpdir=None, - console=True, + console=False, disable_windowed_traceback=False, argv_emulation=False, target_arch=None,