commit b2404b40cdc602e5f7f60fc3711a2456a9d0f4e3 Author: zhangsheng Date: Tue Dec 17 18:53:41 2024 +0800 第一次提交 diff --git a/TSI_Config.pro b/TSI_Config.pro new file mode 100644 index 0000000..93fc252 --- /dev/null +++ b/TSI_Config.pro @@ -0,0 +1,51 @@ +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +CONFIG += c++11 + +# You can make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + acceleration.cpp \ + keyphase.cpp \ + main.cpp \ + mainwindow.cpp \ + overspeedgroup.cpp \ + overspeedrelay.cpp \ + radial_vibration.cpp \ + setpoint.cpp \ + tachometer.cpp \ + velocity.cpp + +HEADERS += \ + acceleration.h \ + keyphase.h \ + mainwindow.h \ + overspeedgroup.h \ + overspeedrelay.h \ + radial_vibration.h \ + setpoint.h \ + tachometer.h \ + velocity.h + +FORMS += \ + acceleration.ui \ + keyphase.ui \ + mainwindow.ui \ + overspeedgroup.ui \ + overspeedrelay.ui \ + radial_vibration.ui \ + setpoint.ui \ + tachometer.ui \ + velocity.ui + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target + +DISTFILES += \ + TSI_Config.pro.user diff --git a/acceleration.cpp b/acceleration.cpp new file mode 100644 index 0000000..c8ea6ae --- /dev/null +++ b/acceleration.cpp @@ -0,0 +1,14 @@ +#include "acceleration.h" +#include "ui_acceleration.h" + +acceleration::acceleration(QWidget *parent) : + QWidget(parent), + ui(new Ui::acceleration) +{ + ui->setupUi(this); +} + +acceleration::~acceleration() +{ + delete ui; +} diff --git a/acceleration.h b/acceleration.h new file mode 100644 index 0000000..7dee8d2 --- /dev/null +++ b/acceleration.h @@ -0,0 +1,22 @@ +#ifndef ACCELERATION_H +#define ACCELERATION_H + +#include + +namespace Ui { +class acceleration; +} + +class acceleration : public QWidget +{ + Q_OBJECT + +public: + explicit acceleration(QWidget *parent = nullptr); + ~acceleration(); + +private: + Ui::acceleration *ui; +}; + +#endif // ACCELERATION_H diff --git a/acceleration.ui b/acceleration.ui new file mode 100644 index 0000000..8a08b01 --- /dev/null +++ b/acceleration.ui @@ -0,0 +1,825 @@ + + + acceleration + + + + 0 + 0 + 699 + 577 + + + + Form + + + + + 40 + 100 + 621 + 401 + + + + 0 + + + + 传感器和滤波配置 + + + + + 10 + 40 + 591 + 131 + + + + 传感器 + + + + + 10 + 20 + 101 + 16 + + + + 传感器名称: + + + + + + 90 + 20 + 113 + 20 + + + + + + + 90 + 60 + 113 + 20 + + + + + + + 10 + 60 + 101 + 16 + + + + 灵敏度: + + + + + + 390 + 60 + 113 + 20 + + + + + + + 310 + 60 + 101 + 16 + + + + 电压下限: + + + + + + 390 + 20 + 113 + 20 + + + + + + + 310 + 20 + 101 + 16 + + + + 电压上限: + + + + + + 210 + 70 + 54 + 12 + + + + mV/g + + + + + + 510 + 30 + 54 + 12 + + + + V + + + + + + 510 + 70 + 54 + 12 + + + + V + + + + + + + 10 + 180 + 591 + 131 + + + + 滤波 + + + + + 20 + 30 + 179 + 22 + + + + + + + 高通: + + + + + + + + + + 3 - 3000Hz + + + + + + + + + 20 + 70 + 191 + 22 + + + + + + + 低通: + + + + + + + + + + 30 - 30000Hz + + + + + + + + + + 特征值和警报配置 + + + + + 20 + 10 + 431 + 351 + + + + 特征值 + + + + + 20 + 50 + 54 + 12 + + + + 直接值 + + + + + + 10 + 80 + 81 + 16 + + + + 偏置电压 + + + + + + 20 + 110 + 71 + 16 + + + + 1x 幅值 + + + + + + 20 + 180 + 71 + 16 + + + + 2x 幅值 + + + + + + 141 + 31 + 48 + 16 + + + + 取值范围 + + + + + + 269 + 31 + 48 + 16 + + + + 锁定值 + + + + + + 130 + 50 + 69 + 22 + + + + + + + 260 + 50 + 62 + 22 + + + + + + + 130 + 80 + 54 + 12 + + + + -24Vdc + + + + + + 260 + 80 + 62 + 22 + + + + + + + 130 + 110 + 69 + 22 + + + + + + + 260 + 110 + 62 + 22 + + + + + + + 20 + 150 + 91 + 16 + + + + 1x 相位 + + + + + + 20 + 210 + 91 + 16 + + + + 2x 相位 + + + + + + 260 + 150 + 62 + 22 + + + + + + + 260 + 180 + 62 + 22 + + + + + + + 260 + 210 + 62 + 22 + + + + + + + 130 + 180 + 69 + 22 + + + + + + + 20 + 250 + 71 + 16 + + + + 有效值 + + + + + + 130 + 250 + 71 + 16 + + + + 积分 + + + + + + 200 + 240 + 221 + 101 + + + + 延时 + + + + + 20 + 20 + 54 + 12 + + + + 警报 + + + + + + 20 + 50 + 54 + 12 + + + + 危险 + + + + + + 60 + 50 + 62 + 16 + + + + + + + 60 + 80 + 71 + 16 + + + + 100 ms + + + + + + 130 + 20 + 54 + 12 + + + + 1 - 60s + + + + + + 130 + 50 + 71 + 16 + + + + 1.0 - 60.0s + + + + + + 60 + 20 + 61 + 16 + + + + + + + + + 470 + 20 + 131 + 16 + + + + Alert Latching + + + + + + 470 + 40 + 131 + 16 + + + + Danger Latching + + + + + + 470 + 220 + 121 + 16 + + + + 倍增 + + + + + + 470 + 240 + 62 + 16 + + + + + + + 470 + 260 + 141 + 16 + + + + 1.00 - 3.00 (步进0.25) + + + + + + 460 + 130 + 54 + 12 + + + + 记录输出 + + + + + + 460 + 150 + 141 + 22 + + + + + + + 460 + 180 + 91 + 16 + + + + 2 mA 锁定 + + + + + + 470 + 60 + 141 + 16 + + + + Timed OK channel Defeat + + + + + + + + 20 + 530 + 651 + 29 + + + + + + + 确定 + + + + + + + 设置为默认值 + + + + + + + 测点名称 + + + + + + + 取消 + + + + + + + 打印 + + + + + + + 帮助 + + + + + + + + + 30 + 10 + 231 + 22 + + + + + + + 通道: + + + + + + + true + + + + + + + (启用) + + + + + + + + + 350 + 10 + 189 + 22 + + + + + + + 板卡号: + + + + + + + true + + + + + + + + + diff --git a/keyphase.cpp b/keyphase.cpp new file mode 100644 index 0000000..48d2cac --- /dev/null +++ b/keyphase.cpp @@ -0,0 +1,14 @@ +#include "keyphase.h" +#include "ui_keyphase.h" + +KeyPhase::KeyPhase(QWidget *parent) + : QDialog(parent) + , ui(new Ui::KeyPhase) +{ + ui->setupUi(this); +} + +KeyPhase::~KeyPhase() +{ + delete ui; +} diff --git a/keyphase.h b/keyphase.h new file mode 100644 index 0000000..1f95fd5 --- /dev/null +++ b/keyphase.h @@ -0,0 +1,22 @@ +#ifndef KEYPHASE_H +#define KEYPHASE_H + +#include + +namespace Ui { +class KeyPhase; +} + +class KeyPhase : public QDialog +{ + Q_OBJECT + +public: + explicit KeyPhase(QWidget *parent = nullptr); + ~KeyPhase(); + +private: + Ui::KeyPhase *ui; +}; + +#endif // KEYPHASE_H diff --git a/keyphase.ui b/keyphase.ui new file mode 100644 index 0000000..e993146 --- /dev/null +++ b/keyphase.ui @@ -0,0 +1,1664 @@ + + + KeyPhase + + + + 0 + 0 + 654 + 663 + + + + Dialog + + + + + 10 + 70 + 281 + 541 + + + + 0 + + + + 通道 1 + + + + + 10 + 10 + 51 + 20 + + + + 使用 + + + + + + 10 + 110 + 251 + 141 + + + + 阈值 + + + + + 10 + 30 + 91 + 91 + + + + 类型 + + + + + 10 + 30 + 99 + 20 + + + + 自动 + + + true + + + + + + 10 + 60 + 71 + 20 + + + + 手动 + + + + + + + 140 + 50 + 41 + 16 + + + + 值: + + + + + false + + + + 170 + 50 + 62 + 22 + + + + 1 + + + + + + 140 + 80 + 111 + 16 + + + + -20.0 to 0.0 Volts + + + + + + + 10 + 275 + 58 + 16 + + + + 回差: + + + + + + 60 + 275 + 62 + 22 + + + + 1 + + + 2.000000000000000 + + + + + + 140 + 280 + 101 + 16 + + + + 0.2 to 2.5 Volts + + + + + + 10 + 370 + 251 + 81 + + + + 安装角度 + + + + + 10 + 40 + 58 + 16 + + + + 度数: + + + + + + 60 + 40 + 61 + 22 + + + + 179 + + + + + + 140 + 30 + 51 + 20 + + + + 左边 + + + + + + 140 + 50 + 61 + 20 + + + + 右边 + + + + + + + 10 + 327 + 58 + 16 + + + + 键齿数: + + + + + + 60 + 327 + 51 + 22 + + + + 1 + + + 255 + + + + + + 150 + 330 + 58 + 16 + + + + 1 - 255 + + + + + + 10 + 30 + 251 + 71 + + + + 正常电压 + + + + + 10 + 30 + 91 + 22 + + + + 下限 + + + -30.000000000000000 + + + 30.000000000000000 + + + -21.000000000000000 + + + + + + 110 + 30 + 81 + 22 + + + + 上限 + + + -30.000000000000000 + + + 30.000000000000000 + + + 21.000000000000000 + + + + + + 200 + 32 + 58 + 16 + + + + Volts + + + + + + + 130 + 479 + 58 + 16 + + + + 通道 2 + + + + + + 68 + 472 + 51 + 32 + + + + ===> + + + + + + 通道 2 + + + + + 60 + 328 + 51 + 22 + + + + 1 + + + 255 + + + + + + 10 + 31 + 251 + 71 + + + + 正常电压 + + + + + 10 + 30 + 91 + 22 + + + + 下限 + + + -30.000000000000000 + + + 30.000000000000000 + + + -21.000000000000000 + + + + + + 110 + 30 + 81 + 22 + + + + 上限 + + + -30.000000000000000 + + + 30.000000000000000 + + + 21.000000000000000 + + + + + + 200 + 32 + 58 + 16 + + + + Volts + + + + + + + 10 + 328 + 58 + 16 + + + + 键齿数: + + + + + + 140 + 281 + 101 + 16 + + + + 0.2 to 2.5 Volts + + + + + + 10 + 371 + 251 + 81 + + + + 安装角度 + + + + + 10 + 40 + 58 + 16 + + + + 度数: + + + + + + 60 + 40 + 61 + 22 + + + + 179 + + + + + + 140 + 30 + 51 + 20 + + + + 左边 + + + + + + 140 + 50 + 61 + 20 + + + + 右边 + + + + + + + 10 + 276 + 58 + 16 + + + + 回差: + + + + + + 10 + 11 + 51 + 20 + + + + 使用 + + + + + + 140 + 474 + 51 + 32 + + + + <=== + + + + + + 60 + 276 + 62 + 22 + + + + 1 + + + 2.000000000000000 + + + + + + 150 + 331 + 58 + 16 + + + + 1 - 255 + + + + + + 10 + 111 + 251 + 141 + + + + 阈值 + + + + + 10 + 30 + 91 + 91 + + + + 类型 + + + + + 10 + 30 + 99 + 20 + + + + 自动 + + + true + + + + + + 10 + 60 + 71 + 20 + + + + 手动 + + + + + + + 140 + 50 + 41 + 16 + + + + 值: + + + + + false + + + + 170 + 50 + 62 + 22 + + + + 1 + + + + + + 140 + 80 + 111 + 16 + + + + -20.0 to 0.0 Volts + + + + + + + 80 + 480 + 58 + 16 + + + + 通道 1 + + + + + + + + 350 + 70 + 281 + 541 + + + + 0 + + + + 通道 3 + + + + + 60 + 318 + 51 + 22 + + + + 1 + + + 255 + + + + + + 10 + 21 + 251 + 71 + + + + 正常电压 + + + + + 10 + 30 + 91 + 22 + + + + 下限 + + + -30.000000000000000 + + + 30.000000000000000 + + + -21.000000000000000 + + + + + + 110 + 30 + 81 + 22 + + + + 上限 + + + -30.000000000000000 + + + 30.000000000000000 + + + 21.000000000000000 + + + + + + 200 + 32 + 58 + 16 + + + + Volts + + + + + + + 10 + 318 + 58 + 16 + + + + 键齿数: + + + + + + 140 + 271 + 101 + 16 + + + + 0.2 to 2.5 Volts + + + + + + 10 + 361 + 251 + 81 + + + + 安装角度 + + + + + 10 + 40 + 58 + 16 + + + + 度数: + + + + + + 60 + 40 + 61 + 22 + + + + 179 + + + + + + 140 + 30 + 51 + 20 + + + + 左边 + + + + + + 140 + 50 + 61 + 20 + + + + 右边 + + + + + + + 10 + 266 + 58 + 16 + + + + 回差: + + + + + + 10 + 1 + 51 + 20 + + + + 使用 + + + + + + 68 + 463 + 51 + 32 + + + + ===> + + + + + + 60 + 266 + 62 + 22 + + + + 1 + + + 2.000000000000000 + + + + + + 150 + 321 + 58 + 16 + + + + 1 - 255 + + + + + + 10 + 101 + 251 + 141 + + + + 阈值 + + + + + 10 + 30 + 91 + 91 + + + + 类型 + + + + + 10 + 30 + 99 + 20 + + + + 自动 + + + true + + + + + + 10 + 60 + 71 + 20 + + + + 手动 + + + + + + + 140 + 50 + 41 + 16 + + + + 值: + + + + + false + + + + 170 + 50 + 62 + 22 + + + + 1 + + + + + + 140 + 80 + 111 + 16 + + + + -20.0 to 0.0 Volts + + + + + + + 130 + 470 + 58 + 16 + + + + 通道 4 + + + + + + 通道 4 + + + + + 60 + 328 + 51 + 22 + + + + 1 + + + 255 + + + + + + 10 + 31 + 251 + 71 + + + + 正常电压 + + + + + 10 + 30 + 91 + 22 + + + + 下限 + + + -30.000000000000000 + + + 30.000000000000000 + + + -21.000000000000000 + + + + + + 110 + 30 + 81 + 22 + + + + 上限 + + + -30.000000000000000 + + + 30.000000000000000 + + + 21.000000000000000 + + + + + + 200 + 32 + 58 + 16 + + + + Volts + + + + + + + 10 + 328 + 58 + 16 + + + + 键齿数: + + + + + + 140 + 281 + 101 + 16 + + + + 0.2 to 2.5 Volts + + + + + + 10 + 371 + 251 + 81 + + + + 安装角度 + + + + + 10 + 40 + 58 + 16 + + + + 度数: + + + + + + 60 + 40 + 61 + 22 + + + + 179 + + + + + + 140 + 30 + 51 + 20 + + + + 左边 + + + + + + 140 + 50 + 61 + 20 + + + + 右边 + + + + + + + 10 + 276 + 58 + 16 + + + + 回差: + + + + + + 10 + 11 + 51 + 20 + + + + 使用 + + + + + + 120 + 470 + 51 + 32 + + + + <=== + + + + + + 60 + 276 + 62 + 22 + + + + 1 + + + 2.000000000000000 + + + + + + 150 + 331 + 58 + 16 + + + + 1 - 255 + + + + + + 10 + 111 + 251 + 141 + + + + 阈值 + + + + + 10 + 30 + 91 + 91 + + + + 类型 + + + + + 10 + 30 + 99 + 20 + + + + 自动 + + + true + + + + + + 10 + 60 + 71 + 20 + + + + 手动 + + + + + + + 140 + 50 + 41 + 16 + + + + 值: + + + + + false + + + + 170 + 50 + 62 + 22 + + + + 1 + + + + + + 140 + 80 + 111 + 16 + + + + -20.0 to 0.0 Volts + + + + + + + 60 + 480 + 58 + 16 + + + + 通道 3 + + + + + + + + 296 + 260 + 51 + 32 + + + + ===> + + + + + + 294 + 370 + 51 + 32 + + + + <=== + + + + + + 300 + 320 + 41 + 16 + + + + === + + + + + + 510 + 620 + 81 + 32 + + + + 帮 助 + + + + + + 220 + 620 + 71 + 32 + + + + 取 消 + + + + + + 420 + 620 + 71 + 32 + + + + 打 印... + + + + + + 130 + 620 + 71 + 32 + + + + 确 定 + + + + + + 320 + 620 + 81 + 32 + + + + 测点名称 + + + + + + 40 + 20 + 478 + 23 + + + + + + + 槽位号: + + + + + + + true + + + + 0 + 0 + + + + 5 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 主备组: + + + + + + + 5-6 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..fd3e533 --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" + +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + return a.exec(); +} diff --git a/mainwindow.cpp b/mainwindow.cpp new file mode 100644 index 0000000..41a26bd --- /dev/null +++ b/mainwindow.cpp @@ -0,0 +1,15 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) + : QMainWindow(parent) + , ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} + diff --git a/mainwindow.h b/mainwindow.h new file mode 100644 index 0000000..4643e32 --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,21 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +QT_BEGIN_NAMESPACE +namespace Ui { class MainWindow; } +QT_END_NAMESPACE + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + MainWindow(QWidget *parent = nullptr); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; +#endif // MAINWINDOW_H diff --git a/mainwindow.ui b/mainwindow.ui new file mode 100644 index 0000000..b232854 --- /dev/null +++ b/mainwindow.ui @@ -0,0 +1,22 @@ + + + MainWindow + + + + 0 + 0 + 800 + 600 + + + + MainWindow + + + + + + + + diff --git a/overspeedgroup.cpp b/overspeedgroup.cpp new file mode 100644 index 0000000..0141ce2 --- /dev/null +++ b/overspeedgroup.cpp @@ -0,0 +1,14 @@ +#include "overspeedgroup.h" +#include "ui_overspeedgroup.h" + +OverspeedGroup::OverspeedGroup(QWidget *parent) + : QDialog(parent) + , ui(new Ui::OverspeedGroup) +{ + ui->setupUi(this); +} + +OverspeedGroup::~OverspeedGroup() +{ + delete ui; +} diff --git a/overspeedgroup.h b/overspeedgroup.h new file mode 100644 index 0000000..7e4abf9 --- /dev/null +++ b/overspeedgroup.h @@ -0,0 +1,22 @@ +#ifndef OVERSPEEDGROUP_H +#define OVERSPEEDGROUP_H + +#include + +namespace Ui { +class OverspeedGroup; +} + +class OverspeedGroup : public QDialog +{ + Q_OBJECT + +public: + explicit OverspeedGroup(QWidget *parent = nullptr); + ~OverspeedGroup(); + +private: + Ui::OverspeedGroup *ui; +}; + +#endif // OVERSPEEDGROUP_H diff --git a/overspeedgroup.ui b/overspeedgroup.ui new file mode 100644 index 0000000..665600b --- /dev/null +++ b/overspeedgroup.ui @@ -0,0 +1,223 @@ + + + OverspeedGroup + + + + 0 + 0 + 504 + 384 + + + + Dialog + + + + + 50 + 40 + 171 + 91 + + + + 组投票 + + + + + 20 + 30 + 99 + 20 + + + + 独立投票 + + + true + + + + + + 20 + 60 + 99 + 20 + + + + 非独立投票 + + + + + + + 280 + 50 + 201 + 80 + + + + 模块间比较 + + + + + 30 + 30 + 85 + 20 + + + + 使能 + + + + + + 32 + 59 + 58 + 16 + + + + % 比较 + + + + + + 102 + 57 + 42 + 22 + + + + 1 + + + 10 + + + + + + + 50 + 170 + 431 + 121 + + + + 非正常投票 + + + + + 30 + 30 + 99 + 20 + + + + 不投票 + + + true + + + + + + 30 + 60 + 341 + 20 + + + + 参与投票 + + + + + + 30 + 90 + 321 + 20 + + + + 组成员全出错时,直接告警 + + + + + + + 50 + 320 + 61 + 32 + + + + 确 认 + + + + + + 140 + 320 + 81 + 32 + + + + 取 消 + + + + + + 350 + 320 + 81 + 32 + + + + 帮 助 + + + + + + 260 + 320 + 71 + 32 + + + + 打 印... + + + + + + diff --git a/overspeedrelay.cpp b/overspeedrelay.cpp new file mode 100644 index 0000000..95d05d4 --- /dev/null +++ b/overspeedrelay.cpp @@ -0,0 +1,14 @@ +#include "overspeedrelay.h" +#include "ui_overspeedrelay.h" + +OverspeedRelay::OverspeedRelay(QWidget *parent) + : QDialog(parent) + , ui(new Ui::OverspeedRelay) +{ + ui->setupUi(this); +} + +OverspeedRelay::~OverspeedRelay() +{ + delete ui; +} diff --git a/overspeedrelay.h b/overspeedrelay.h new file mode 100644 index 0000000..114dfbb --- /dev/null +++ b/overspeedrelay.h @@ -0,0 +1,22 @@ +#ifndef OVERSPEEDRELAY_H +#define OVERSPEEDRELAY_H + +#include + +namespace Ui { +class OverspeedRelay; +} + +class OverspeedRelay : public QDialog +{ + Q_OBJECT + +public: + explicit OverspeedRelay(QWidget *parent = nullptr); + ~OverspeedRelay(); + +private: + Ui::OverspeedRelay *ui; +}; + +#endif // OVERSPEEDRELAY_H diff --git a/overspeedrelay.ui b/overspeedrelay.ui new file mode 100644 index 0000000..ad5a84f --- /dev/null +++ b/overspeedrelay.ui @@ -0,0 +1,230 @@ + + + OverspeedRelay + + + + 0 + 0 + 504 + 316 + + + + Dialog + + + + + 30 + 30 + 251 + 221 + + + + 关联继电器 + + + + + 20 + 30 + 103 + 32 + + + + + 继电器 1 + + + + + 继电器 2 + + + + + 继电器 3 + + + + + 继电器 4 + + + + + + + 30 + 80 + 71 + 16 + + + + 报警参数: + + + + + + 30 + 100 + 113 + 21 + + + + 超速 + + + + + + 30 + 140 + 161 + 16 + + + + 继电器 NE/NDE 切换状态: + + + + + + 30 + 170 + 113 + 21 + + + + 数据不可用 + + + true + + + + + + + 320 + 50 + 58 + 16 + + + + 可用参数 + + + + + + 320 + 70 + 151 + 101 + + + + + 空的(不使能) + + + + + 低于告警值 + + + + + 高于告警值 + + + + + 超速 + + + + + 通道不正常 + + + + + + + 340 + 200 + 100 + 32 + + + + 选择参数 + + + + + + 90 + 270 + 71 + 32 + + + + 确 定 + + + + + + 180 + 270 + 71 + 32 + + + + 取 消 + + + + + + 270 + 270 + 71 + 32 + + + + 打 印... + + + + + + 360 + 270 + 81 + 32 + + + + 帮 助 + + + + + + diff --git a/radial_vibration.cpp b/radial_vibration.cpp new file mode 100644 index 0000000..b7df4cd --- /dev/null +++ b/radial_vibration.cpp @@ -0,0 +1,14 @@ +#include "radial_vibration.h" +#include "ui_radial_vibration.h" + +radial_vibration::radial_vibration(QWidget *parent) : + QWidget(parent), + ui(new Ui::radial_vibration) +{ + ui->setupUi(this); +} + +radial_vibration::~radial_vibration() +{ + delete ui; +} diff --git a/radial_vibration.h b/radial_vibration.h new file mode 100644 index 0000000..6f94ec0 --- /dev/null +++ b/radial_vibration.h @@ -0,0 +1,22 @@ +#ifndef RADIAL_VIBRATION_H +#define RADIAL_VIBRATION_H + +#include + +namespace Ui { +class radial_vibration; +} + +class radial_vibration : public QWidget +{ + Q_OBJECT + +public: + explicit radial_vibration(QWidget *parent = nullptr); + ~radial_vibration(); + +private: + Ui::radial_vibration *ui; +}; + +#endif // RADIAL_VIBRATION_H diff --git a/radial_vibration.ui b/radial_vibration.ui new file mode 100644 index 0000000..c532044 --- /dev/null +++ b/radial_vibration.ui @@ -0,0 +1,876 @@ + + + radial_vibration + + + + 0 + 0 + 693 + 625 + + + + Form + + + + + 10 + 90 + 631 + 461 + + + + 0 + + + + 传感器和滤波配置 + + + + + 10 + 40 + 591 + 131 + + + + 传感器 + + + + + 10 + 20 + 101 + 16 + + + + 传感器名称: + + + + + + 90 + 20 + 113 + 20 + + + + + + + 90 + 60 + 113 + 20 + + + + + + + 10 + 60 + 101 + 16 + + + + 灵敏度: + + + + + + 390 + 60 + 113 + 20 + + + + + + + 310 + 60 + 101 + 16 + + + + 电压下限: + + + + + + 390 + 20 + 113 + 20 + + + + + + + 310 + 20 + 101 + 16 + + + + 电压上限: + + + + + + 210 + 70 + 54 + 12 + + + + mV / mil + + + + + + 510 + 30 + 54 + 12 + + + + V + + + + + + 510 + 70 + 54 + 12 + + + + V + + + + + + + 10 + 180 + 241 + 131 + + + + 传感器方向 + + + + + 40 + 50 + 61 + 22 + + + + + + + 130 + 50 + 89 + 16 + + + + + + + + + + 130 + 70 + 89 + 16 + + + + + + + + + + 40 + 30 + 54 + 12 + + + + 角度 + + + + + + + 特征值和警报配置 + + + + + 20 + 10 + 411 + 411 + + + + 特征值 + + + + + 20 + 50 + 54 + 12 + + + + 直接值 + + + + + + 20 + 80 + 81 + 16 + + + + 间隙 + + + + + + 20 + 110 + 71 + 16 + + + + 1x 幅值 + + + + + + 20 + 180 + 71 + 16 + + + + 2x 幅值 + + + + + + 141 + 31 + 48 + 16 + + + + 取值范围 + + + + + + 269 + 31 + 48 + 16 + + + + 锁定值 + + + + + + 130 + 50 + 69 + 22 + + + + + + + 260 + 50 + 62 + 22 + + + + + + + 260 + 80 + 62 + 22 + + + + + + + 130 + 110 + 69 + 22 + + + + + + + 260 + 110 + 62 + 22 + + + + + + + 20 + 150 + 91 + 16 + + + + 1x 相位 + + + + + + 20 + 210 + 91 + 16 + + + + 2x 相位 + + + + + + 260 + 150 + 62 + 22 + + + + + + + 260 + 180 + 62 + 22 + + + + + + + 260 + 210 + 62 + 22 + + + + + + + 130 + 180 + 69 + 22 + + + + + + + 130 + 80 + 69 + 22 + + + + + + + 20 + 240 + 81 + 16 + + + + 非 1X 幅值 + + + + + + 130 + 240 + 69 + 22 + + + + + + + 260 + 240 + 62 + 22 + + + + + + + 130 + 270 + 69 + 22 + + + + + + + 20 + 270 + 91 + 16 + + + + Smax 幅值 + + + + + + 260 + 270 + 62 + 22 + + + + + + + 10 + 300 + 221 + 101 + + + + 延时 + + + + + 20 + 20 + 54 + 12 + + + + 警报 + + + + + + 20 + 50 + 54 + 12 + + + + 危险 + + + + + + 60 + 50 + 62 + 16 + + + + + + + 60 + 80 + 71 + 16 + + + + 100 ms + + + + + + 130 + 20 + 54 + 12 + + + + 1 - 60s + + + + + + 130 + 50 + 71 + 16 + + + + 1.0 - 60.0s + + + + + + 60 + 20 + 61 + 16 + + + + + + + + + 470 + 20 + 131 + 16 + + + + Alert Latching + + + + + + 470 + 40 + 131 + 16 + + + + Danger Latching + + + + + + 470 + 220 + 121 + 16 + + + + 倍增 + + + + + + 470 + 240 + 62 + 16 + + + + + + + 470 + 260 + 141 + 16 + + + + 1.00 - 3.00 (步进0.25) + + + + + + 460 + 130 + 54 + 12 + + + + 记录输出 + + + + + + 460 + 150 + 141 + 22 + + + + + + + 460 + 180 + 91 + 16 + + + + 2 mA 锁定 + + + + + + 470 + 320 + 101 + 16 + + + + 初始位置(间隙) + + + + + + 470 + 350 + 62 + 22 + + + + + + + 540 + 360 + 54 + 12 + + + + V + + + + + + + + 340 + 10 + 189 + 22 + + + + + + + 板卡号: + + + + + + + true + + + + + + + + + 10 + 580 + 651 + 29 + + + + + + + 确定 + + + + + + + 设置为默认值 + + + + + + + 测点名称 + + + + + + + 取消 + + + + + + + 打印 + + + + + + + 帮助 + + + + + + + + + 20 + 10 + 231 + 22 + + + + + + + 通道: + + + + + + + true + + + + + + + (启用) + + + + + + + + + diff --git a/setpoint.cpp b/setpoint.cpp new file mode 100644 index 0000000..6fe7307 --- /dev/null +++ b/setpoint.cpp @@ -0,0 +1,14 @@ +#include "setpoint.h" +#include "ui_setpoint.h" + +setpoint::setpoint(QWidget *parent) : + QWidget(parent), + ui(new Ui::setpoint) +{ + ui->setupUi(this); +} + +setpoint::~setpoint() +{ + delete ui; +} diff --git a/setpoint.h b/setpoint.h new file mode 100644 index 0000000..f475800 --- /dev/null +++ b/setpoint.h @@ -0,0 +1,22 @@ +#ifndef SETPOINT_H +#define SETPOINT_H + +#include + +namespace Ui { +class setpoint; +} + +class setpoint : public QWidget +{ + Q_OBJECT + +public: + explicit setpoint(QWidget *parent = nullptr); + ~setpoint(); + +private: + Ui::setpoint *ui; +}; + +#endif // SETPOINT_H diff --git a/setpoint.ui b/setpoint.ui new file mode 100644 index 0000000..a802715 --- /dev/null +++ b/setpoint.ui @@ -0,0 +1,439 @@ + + + setpoint + + + + 0 + 0 + 722 + 560 + + + + Form + + + + + 540 + 10 + 161 + 451 + + + + 警报 / 危险 2 + + + + + 10 + 30 + 69 + 22 + + + + + + + 80 + 30 + 69 + 22 + + + + + + + 30 + 390 + 21 + 16 + + + + + + + + + + 20 + 140 + 54 + 231 + + + + 刻度 + + + + + + 20 + 100 + 41 + 20 + + + + + + + 23 + 420 + 61 + 20 + + + + 启用 + + + + + + 20 + 70 + 54 + 12 + + + + mil pp + + + + + + + 20 + 520 + 113 + 22 + + + + + + + 板卡 2 + + + + + + + + + + + + 500 + 520 + 61 + 21 + + + + 帮助 + + + + + + 420 + 520 + 61 + 21 + + + + 打印 + + + + + + 260 + 520 + 61 + 21 + + + + 确定 + + + + + + 10 + 10 + 521 + 451 + + + + 警报 / 危险 1 + + + + + 20 + 40 + 54 + 12 + + + + 直接值 + + + + + + 20 + 70 + 54 + 12 + + + + mil pp + + + + + + 20 + 100 + 41 + 20 + + + + + + + 30 + 390 + 21 + 16 + + + + + + + + + + 23 + 420 + 61 + 20 + + + + 启用 + + + + + + 20 + 140 + 54 + 231 + + + + 刻度 + + + + + + 120 + 390 + 21 + 16 + + + + + + + + + + 110 + 70 + 54 + 12 + + + + mil pp + + + + + + 110 + 100 + 41 + 20 + + + + + + + 110 + 140 + 54 + 231 + + + + 刻度 + + + + + + 110 + 40 + 54 + 12 + + + + 1X 幅值 + + + + + + 113 + 420 + 61 + 20 + + + + 启用 + + + + + + 190 + 420 + 61 + 20 + + + + 启用 + + + + + + 197 + 390 + 21 + 16 + + + + + + + + + + 187 + 140 + 54 + 231 + + + + 刻度 + + + + + + 187 + 100 + 41 + 20 + + + + + + + 187 + 70 + 54 + 12 + + + + mil pp + + + + + + 187 + 40 + 54 + 12 + + + + 2X 幅值 + + + + + + + 340 + 520 + 61 + 21 + + + + 取消 + + + + + + 180 + 520 + 61 + 21 + + + + 复制 + + + + + + diff --git a/tachometer.cpp b/tachometer.cpp new file mode 100644 index 0000000..fd9c46a --- /dev/null +++ b/tachometer.cpp @@ -0,0 +1,14 @@ +#include "tachometer.h" +#include "ui_tachometer.h" + +Tachometer::Tachometer(QWidget *parent) + : QDialog(parent) + , ui(new Ui::Tachometer) +{ + ui->setupUi(this); +} + +Tachometer::~Tachometer() +{ + delete ui; +} diff --git a/tachometer.h b/tachometer.h new file mode 100644 index 0000000..1efad0b --- /dev/null +++ b/tachometer.h @@ -0,0 +1,22 @@ +#ifndef TACHOMETER_H +#define TACHOMETER_H + +#include + +namespace Ui { +class Tachometer; +} + +class Tachometer : public QDialog +{ + Q_OBJECT + +public: + explicit Tachometer(QWidget *parent = nullptr); + ~Tachometer(); + +private: + Ui::Tachometer *ui; +}; + +#endif // TACHOMETER_H diff --git a/tachometer.ui b/tachometer.ui new file mode 100644 index 0000000..7dd4f47 --- /dev/null +++ b/tachometer.ui @@ -0,0 +1,795 @@ + + + Tachometer + + + + 0 + 0 + 724 + 546 + + + + Dialog + + + + + 20 + 10 + 478 + 23 + + + + + + + 槽位号: + + + + + + + true + + + + 0 + 0 + + + + 7 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 主备组: + + + + + + + 7-9 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 60 + 338 + 62 + 22 + + + + 1 + + + 2.000000000000000 + + + + + + 20 + 50 + 81 + 20 + + + + 通道1激活 + + + true + + + + + + 10 + 338 + 58 + 16 + + + + 回差: + + + + + + 10 + 173 + 251 + 141 + + + + 阈值 + + + + + 10 + 30 + 91 + 91 + + + + 类型 + + + + + 10 + 30 + 99 + 20 + + + + 自动 + + + true + + + + + + 10 + 60 + 71 + 20 + + + + 手动 + + + + + + + 140 + 50 + 41 + 16 + + + + 值: + + + + + false + + + + 170 + 50 + 62 + 22 + + + + 1 + + + + + + 140 + 80 + 111 + 16 + + + + -20.0 to 0.0 Volts + + + + + + + 60 + 390 + 51 + 22 + + + + 1 + + + 255 + + + + + + 150 + 393 + 58 + 16 + + + + 1 - 255 + + + + + + 140 + 343 + 101 + 16 + + + + 0.2 to 2.5 Volts + + + + + + 10 + 93 + 251 + 71 + + + + 正常电压 + + + + + 10 + 30 + 91 + 22 + + + + 下限 + + + -30.000000000000000 + + + 30.000000000000000 + + + -21.000000000000000 + + + + + + 110 + 30 + 81 + 22 + + + + 上限 + + + -30.000000000000000 + + + 30.000000000000000 + + + 21.000000000000000 + + + + + + 200 + 32 + 58 + 16 + + + + Volts + + + + + + + 10 + 390 + 58 + 16 + + + + 键齿数: + + + + + + 120 + 50 + 81 + 20 + + + + 通道2激活 + + + true + + + + + + 220 + 50 + 81 + 20 + + + + 通道3激活 + + + true + + + + + + 320 + 50 + 81 + 20 + + + + 通道4激活 + + + true + + + + + + 340 + 100 + 151 + 91 + + + + 正常模式 + + + + + 30 + 30 + 71 + 20 + + + + 锁存 + + + + + + 30 + 60 + 71 + 20 + + + + 非锁存 + + + true + + + + + + + 340 + 210 + 371 + 131 + + + + 告警模式 + + + + + 10 + 30 + 151 + 91 + + + + 告警 + + + + + 30 + 30 + 71 + 20 + + + + 锁存 + + + + + + 30 + 60 + 71 + 20 + + + + 非锁存 + + + true + + + + + + + 180 + 33 + 141 + 91 + + + + 超速 + + + + + 30 + 30 + 71 + 20 + + + + 锁存 + + + + + + 30 + 60 + 71 + 20 + + + + 非锁存 + + + true + + + + + + + + 340 + 360 + 371 + 91 + + + + 响应时间(只读) + + + + + 70 + 30 + 101 + 16 + + + + 告警响应时间: + + + + + + 70 + 60 + 81 + 16 + + + + 危险响应时间: + + + + + + 180 + 30 + 61 + 21 + + + + 25ms + + + true + + + + + + 180 + 58 + 61 + 21 + + + + 25ms + + + true + + + + + + + 520 + 100 + 191 + 91 + + + + 记录输出 + + + + + 50 + 30 + 103 + 32 + + + + + 不输出 + + + + + 转速 + + + + + + + 52 + 67 + 101 + 20 + + + + 2 mA 默认值 + + + + + + + 10 + 430 + 100 + 32 + + + + 组选项... + + + + + + 150 + 430 + 100 + 32 + + + + 继电器选项... + + + + + + 320 + 470 + 85 + 20 + + + + 组激活 + + + + + + 510 + 510 + 81 + 32 + + + + 帮 助 + + + + + + 330 + 510 + 71 + 32 + + + + 取 消 + + + + + + 420 + 510 + 71 + 32 + + + + 打 印... + + + + + + 20 + 510 + 71 + 32 + + + + 确 定 + + + + + + 110 + 510 + 91 + 32 + + + + 加载默认值 + + + + + + 220 + 510 + 81 + 32 + + + + 测点名称 + + + + + + 610 + 510 + 91 + 32 + + + + 存为默认值 + + + + + + diff --git a/velocity.cpp b/velocity.cpp new file mode 100644 index 0000000..2fddcca --- /dev/null +++ b/velocity.cpp @@ -0,0 +1,14 @@ +#include "velocity.h" +#include "ui_velocity.h" + +velocity::velocity(QWidget *parent) : + QWidget(parent), + ui(new Ui::velocity) +{ + ui->setupUi(this); +} + +velocity::~velocity() +{ + delete ui; +} diff --git a/velocity.h b/velocity.h new file mode 100644 index 0000000..386386f --- /dev/null +++ b/velocity.h @@ -0,0 +1,22 @@ +#ifndef VELOCITY_H +#define VELOCITY_H + +#include + +namespace Ui { +class velocity; +} + +class velocity : public QWidget +{ + Q_OBJECT + +public: + explicit velocity(QWidget *parent = nullptr); + ~velocity(); + +private: + Ui::velocity *ui; +}; + +#endif // VELOCITY_H diff --git a/velocity.ui b/velocity.ui new file mode 100644 index 0000000..b350caf --- /dev/null +++ b/velocity.ui @@ -0,0 +1,838 @@ + + + velocity + + + + 0 + 0 + 689 + 582 + + + + Form + + + + + 340 + 10 + 189 + 22 + + + + + + + 板卡号: + + + + + + + true + + + + + + + + + 10 + 530 + 651 + 29 + + + + + + + 确定 + + + + + + + 设置为默认值 + + + + + + + 测点名称 + + + + + + + 取消 + + + + + + + 打印 + + + + + + + 帮助 + + + + + + + + + 10 + 90 + 621 + 401 + + + + 1 + + + + 传感器和滤波配置 + + + + + 10 + 40 + 591 + 131 + + + + 传感器 + + + + + 10 + 20 + 101 + 16 + + + + 传感器名称: + + + + + + 90 + 20 + 113 + 20 + + + + + + + 90 + 60 + 113 + 20 + + + + + + + 10 + 60 + 101 + 16 + + + + 灵敏度: + + + + + + 390 + 60 + 113 + 20 + + + + + + + 310 + 60 + 101 + 16 + + + + 电压下限: + + + + + + 390 + 20 + 113 + 20 + + + + + + + 310 + 20 + 101 + 16 + + + + 电压上限: + + + + + + 210 + 70 + 54 + 12 + + + + mV / in/s + + + + + + 510 + 30 + 54 + 12 + + + + V + + + + + + 510 + 70 + 54 + 12 + + + + V + + + + + + + 10 + 180 + 591 + 131 + + + + 滤波 + + + + + 20 + 30 + 179 + 22 + + + + + + + 高通: + + + + + + + + + + 3 - 400Hz + + + + + + + + + 20 + 70 + 191 + 22 + + + + + + + 低通: + + + + + + + + + + 40 - 5500Hz + + + + + + + + + + 特征值和警报配置 + + + + + 20 + 10 + 431 + 351 + + + + 特征值 + + + + + 20 + 50 + 54 + 12 + + + + 直接值 + + + + + + 10 + 80 + 81 + 16 + + + + 偏置电压 + + + + + + 20 + 110 + 71 + 16 + + + + 1x 幅值 + + + + + + 20 + 180 + 71 + 16 + + + + 2x 幅值 + + + + + + 141 + 31 + 48 + 16 + + + + 取值范围 + + + + + + 269 + 31 + 48 + 16 + + + + 锁定值 + + + + + + 130 + 50 + 69 + 22 + + + + + + + 260 + 50 + 62 + 22 + + + + + + + 130 + 80 + 54 + 12 + + + + -24Vdc + + + + + + 260 + 80 + 62 + 22 + + + + + + + 130 + 110 + 69 + 22 + + + + + + + 260 + 110 + 62 + 22 + + + + + + + 20 + 150 + 91 + 16 + + + + 1x 相位 + + + + + + 20 + 210 + 91 + 16 + + + + 2x 相位 + + + + + + 260 + 150 + 62 + 22 + + + + + + + 260 + 180 + 62 + 22 + + + + + + + 260 + 210 + 62 + 22 + + + + + + + 130 + 180 + 69 + 22 + + + + + + + 20 + 250 + 71 + 16 + + + + 有效值 + + + + + + 130 + 250 + 71 + 16 + + + + 积分 + + + + + + 200 + 240 + 221 + 101 + + + + 延时 + + + + + 20 + 20 + 54 + 12 + + + + 警报 + + + + + + 20 + 50 + 54 + 12 + + + + 危险 + + + + + + 60 + 50 + 62 + 16 + + + + + + + 60 + 80 + 71 + 16 + + + + 100 ms + + + + + + 130 + 20 + 54 + 12 + + + + 1 - 60s + + + + + + 130 + 50 + 71 + 16 + + + + 1.0 - 60.0s + + + + + + 60 + 20 + 61 + 16 + + + + + + + + + 470 + 20 + 131 + 16 + + + + Alert Latching + + + + + + 470 + 40 + 131 + 16 + + + + Danger Latching + + + + + + 470 + 220 + 121 + 16 + + + + 倍增 + + + + + + 470 + 240 + 62 + 16 + + + + + + + 470 + 260 + 141 + 16 + + + + 1.00 - 3.00 (步进0.25) + + + + + + 460 + 130 + 54 + 12 + + + + 记录输出 + + + + + + 460 + 150 + 141 + 22 + + + + + + + 460 + 180 + 91 + 16 + + + + 2 mA 锁定 + + + + + + 470 + 80 + 141 + 16 + + + + Timed OK channel Defeat + + + + + + 470 + 60 + 131 + 16 + + + + Not OK Latvhing + + + + + + + + 20 + 10 + 231 + 22 + + + + + + + 通道: + + + + + + + true + + + + + + + (启用) + + + + + + + + +