Files
AiAnalysis/README.md

49 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AiAnalysis - 16通道AI数据UDP实时采集分析工具
## 功能
- UDP端口监听实时接收数据包
- 解析16通道逗号分隔的ADC数据格式: `val0,val1,...,val15`
- 实时波形绘制深色主题16条独立颜色曲线
- 数据自动保存为CSV存到 `data_端口号/` 目录)
- 支持打开历史CSV文件回放查看
- 滚轮缩放 | 右键拖拽平移 | 双击恢复自动范围
- 通道可见性切换、显示点数可调
## 跨平台
✅ Linux ✅ Windows ✅ macOS | Qt 5.9+ | qmake构建
---
## 编译Qt Creator
1. 打开 Qt Creator → **File → Open File or Project** → 选择 `AiAnalysis.pro`
2. 选择 Kit如 Desktop Qt 5.9.8 MinGW 32bit
3. 左下角切换 **Release** 模式
4. 点击 🔨 构建
---
## 打包成单个exeWindows
### 方式一静态编译真正的单个exe
如果你的 Qt 是静态编译版本,在 `AiAnalysis.pro` 里取消注释:
```
CONFIG += static
```
然后重新构建生成的exe无需任何DLL。
### 方式二windeployqt推荐默认Qt即可
编译完后在 exe 所在目录执行:
```cmd
windeployqt AiAnalysis.exe
```
会把所有Qt DLL收集到同目录整个文件夹拷贝到任意电脑都能跑。
---
## 使用说明
1. 输入UDP端口号 → 点击「开始监听」
2. 下位机发送逗号分隔16通道数据
3. 右侧面板切换通道显示/隐藏
4. 「打开文件」加载历史CSV回放
5. 滚轮缩放 | 右键拖拽 | 双击恢复