modify LSB_32BIT

This commit is contained in:
pandx 2025-07-10 11:03:13 +08:00
parent 2d65ab71f5
commit 3584fbc48e
3 changed files with 11 additions and 19 deletions

View File

@ -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绑定设备
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,

1 IP地址 MAC地址 版本号 通道1名称 通道1绑定设备 通道2名称 通道2绑定设备
4 192.168.0.174 50-29-4D-20-12-03 3.1 通道3名称 通道3绑定设备 通道4名称 通道4绑定设备
5 192.168.0.185 50-29-4D-20-12-04 4.1 通道4名称 通道4绑定设备 通道5名称 通道5绑定设备
6 192.168.0.168 50-29-4D-20-12-05 5.1 通道5名称 通道5绑定设备 通道6名称 通道6绑定设备

View File

@ -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))): # 确保不超过数据长度

View File

@ -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,