add speed and keyphase config

This commit is contained in:
DESKTOP-7I8SUIC\zhang 2025-12-19 17:23:51 +08:00
parent 66a38280b8
commit 8bc8a544cd
6 changed files with 954 additions and 415 deletions

View File

@ -536,6 +536,9 @@ void ConfigMgr::Save(QString & file_path) {
channel_item.insert("default_speed", ptr->variables_[cid].default_speed); channel_item.insert("default_speed", ptr->variables_[cid].default_speed);
channel_item.insert("automatic_threshold",ptr->variables_[cid].automatic_threshold); channel_item.insert("automatic_threshold",ptr->variables_[cid].automatic_threshold);
channel_item.insert("point_name",ptr->variables_[cid].point_name); channel_item.insert("point_name",ptr->variables_[cid].point_name);
channel_item.insert("keyphase_points",ptr->variables_[cid].keyphase_points);
channel_item.insert("speed_delay",ptr->variables_[cid].speed_delay);
channel_item.insert("zero_speed",ptr->variables_[cid].zero_speed);
QJsonObject alarm; QJsonObject alarm;
alarm["danger_high_level"] = ptr->danger_high[cid].level; alarm["danger_high_level"] = ptr->danger_high[cid].level;
alarm["danger_high_hysteresis"] = ptr->danger_high[cid].hysteresis; alarm["danger_high_hysteresis"] = ptr->danger_high[cid].hysteresis;
@ -565,6 +568,8 @@ void ConfigMgr::Save(QString & file_path) {
channel_item.insert("events_per_revolution", ptr->variables_[cid].events_per_revolution); channel_item.insert("events_per_revolution", ptr->variables_[cid].events_per_revolution);
channel_item.insert("automatic_threshold",ptr->variables_[cid].automatic_threshold); channel_item.insert("automatic_threshold",ptr->variables_[cid].automatic_threshold);
channel_item.insert("point_name",ptr->variables_[cid].point_name); channel_item.insert("point_name",ptr->variables_[cid].point_name);
channel_item.insert("keyphase_points",ptr->variables_[cid].keyphase_points);
channel_item.insert("speed_delay",ptr->variables_[cid].speed_delay);
} }
slot_item[QString::number(cid + 1)] = channel_item; slot_item[QString::number(cid + 1)] = channel_item;
@ -1092,6 +1097,9 @@ void ConfigMgr::Load(QString filename) {
speed_data->variables_[j].default_speed = channel["default_speed"].toInt(); speed_data->variables_[j].default_speed = channel["default_speed"].toInt();
speed_data->variables_[j].automatic_threshold = channel["automatic_threshold"].toBool(); speed_data->variables_[j].automatic_threshold = channel["automatic_threshold"].toBool();
speed_data->variables_[j].point_name = channel["point_name"].toString(); speed_data->variables_[j].point_name = channel["point_name"].toString();
speed_data->variables_[j].keyphase_points = channel["keyphase_points"].toInt();
speed_data->variables_[j].speed_delay = channel["speed_delay"].toInt();
speed_data->variables_[j].zero_speed = channel["zero_speed"].toInt();
if(channel.contains("alarm")){ if(channel.contains("alarm")){
QJsonObject alarm = channel["alarm"].toObject(); QJsonObject alarm = channel["alarm"].toObject();
speed_data->danger_high[j].level = alarm["danger_high_level"].toDouble(); speed_data->danger_high[j].level = alarm["danger_high_level"].toDouble();
@ -1126,6 +1134,8 @@ void ConfigMgr::Load(QString filename) {
keyphase_data->variables_[j].events_per_revolution = channel["events_per_revolution"].toInt(); keyphase_data->variables_[j].events_per_revolution = channel["events_per_revolution"].toInt();
keyphase_data->variables_[j].automatic_threshold = channel["automatic_threshold"].toBool(); keyphase_data->variables_[j].automatic_threshold = channel["automatic_threshold"].toBool();
keyphase_data->variables_[j].point_name = channel["point_name"].toString(); keyphase_data->variables_[j].point_name = channel["point_name"].toString();
keyphase_data->variables_[j].keyphase_points = channel["keyphase_points"].toInt();
keyphase_data->variables_[j].speed_delay = channel["speed_delay"].toInt();
} }
cards_.push_back(keyphase_data); cards_.push_back(keyphase_data);

View File

@ -429,6 +429,9 @@ typedef struct {
float normal_voltage_high; float normal_voltage_high;
int speed_peek; int speed_peek;
int default_speed; int default_speed;
int keyphase_points;
int speed_delay;
int zero_speed;
bool automatic_threshold; bool automatic_threshold;
float threshold; float threshold;
float hysteresis; float hysteresis;
@ -449,6 +452,8 @@ typedef struct {
float threshold; float threshold;
float hysteresis; float hysteresis;
int events_per_revolution; int events_per_revolution;
int keyphase_points;
int speed_delay;
} KeyphaseVariables; } KeyphaseVariables;
typedef struct { typedef struct {

View File

@ -90,6 +90,8 @@ void KeyPhase::UpdateData(std::shared_ptr<KeyphaseData> &keyphase_data) {
keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_1->value(); keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_1->value();
keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_1->value(); keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_1->value();
keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_1->value(); keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_1->value();
keyphase_data->variables_[i].keyphase_points = ui->spinBox_points->value();
keyphase_data->variables_[i].speed_delay = ui->spinBox_delay->value();
} else if (i + 1 == 2) { } else if (i + 1 == 2) {
keyphase_data->variables_[i].active = ui->checkBox_enable_2->isChecked(); keyphase_data->variables_[i].active = ui->checkBox_enable_2->isChecked();
keyphase_data->variables_[i].normal_voltage_high = ui->doubleSpinBox_high_2->value(); keyphase_data->variables_[i].normal_voltage_high = ui->doubleSpinBox_high_2->value();
@ -98,6 +100,8 @@ void KeyPhase::UpdateData(std::shared_ptr<KeyphaseData> &keyphase_data) {
keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_2->value(); keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_2->value();
keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_2->value(); keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_2->value();
keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_2->value(); keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_2->value();
keyphase_data->variables_[i].keyphase_points = ui->spinBox_points_2->value();
keyphase_data->variables_[i].speed_delay = ui->spinBox_delay_2->value();
} else if (i + 1 == 3) { } else if (i + 1 == 3) {
keyphase_data->variables_[i].active = ui->checkBox_enable_3->isChecked(); keyphase_data->variables_[i].active = ui->checkBox_enable_3->isChecked();
keyphase_data->variables_[i].normal_voltage_high = ui->doubleSpinBox_high_3->value(); keyphase_data->variables_[i].normal_voltage_high = ui->doubleSpinBox_high_3->value();
@ -106,6 +110,8 @@ void KeyPhase::UpdateData(std::shared_ptr<KeyphaseData> &keyphase_data) {
keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_3->value(); keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_3->value();
keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_3->value(); keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_3->value();
keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_3->value(); keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_3->value();
keyphase_data->variables_[i].keyphase_points = ui->spinBox_points_3->value();
keyphase_data->variables_[i].speed_delay = ui->spinBox_delay_3->value();
} else if (i + 1 == 4) { } else if (i + 1 == 4) {
keyphase_data->variables_[i].active = ui->checkBox_enable_4->isChecked(); keyphase_data->variables_[i].active = ui->checkBox_enable_4->isChecked();
keyphase_data->variables_[i].normal_voltage_high = ui->doubleSpinBox_high_4->value(); keyphase_data->variables_[i].normal_voltage_high = ui->doubleSpinBox_high_4->value();
@ -114,6 +120,8 @@ void KeyPhase::UpdateData(std::shared_ptr<KeyphaseData> &keyphase_data) {
keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_4->value(); keyphase_data->variables_[i].threshold = ui->doubleSpinBox_threshold_4->value();
keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_4->value(); keyphase_data->variables_[i].hysteresis = ui->doubleSpinBox_hysteresis_4->value();
keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_4->value(); keyphase_data->variables_[i].events_per_revolution = ui->spinBox_events_per_revolution_4->value();
keyphase_data->variables_[i].keyphase_points = ui->spinBox_points_4->value();
keyphase_data->variables_[i].speed_delay = ui->spinBox_delay_4->value();
} }
} }
} }
@ -135,6 +143,8 @@ void KeyPhase::Init() {
ui->checkBox_enable_1->setChecked(keyphase_data->variables_[i].active); ui->checkBox_enable_1->setChecked(keyphase_data->variables_[i].active);
ui->doubleSpinBox_high_1->setValue(keyphase_data->variables_[i].normal_voltage_high); ui->doubleSpinBox_high_1->setValue(keyphase_data->variables_[i].normal_voltage_high);
ui->doubleSpinBox_low_1->setValue(keyphase_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_1->setValue(keyphase_data->variables_[i].normal_voltage_low);
ui->spinBox_points->setValue(keyphase_data->variables_[i].keyphase_points);
ui->spinBox_delay->setValue(keyphase_data->variables_[i].speed_delay);
if (keyphase_data->variables_[i].automatic_threshold) { if (keyphase_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_1->setChecked(true); ui->radioButton_automatic_threshold_1->setChecked(true);
ui->doubleSpinBox_threshold_1->setEnabled(false); ui->doubleSpinBox_threshold_1->setEnabled(false);
@ -151,6 +161,8 @@ void KeyPhase::Init() {
ui->checkBox_enable_2->setChecked(keyphase_data->variables_[i].active); ui->checkBox_enable_2->setChecked(keyphase_data->variables_[i].active);
ui->doubleSpinBox_high_2->setValue(keyphase_data->variables_[i].normal_voltage_high); ui->doubleSpinBox_high_2->setValue(keyphase_data->variables_[i].normal_voltage_high);
ui->doubleSpinBox_low_2->setValue(keyphase_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_2->setValue(keyphase_data->variables_[i].normal_voltage_low);
ui->spinBox_points_2->setValue(keyphase_data->variables_[i].keyphase_points);
ui->spinBox_delay_2->setValue(keyphase_data->variables_[i].speed_delay);
if (keyphase_data->variables_[i].automatic_threshold) { if (keyphase_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_2->setChecked(true); ui->radioButton_automatic_threshold_2->setChecked(true);
ui->doubleSpinBox_threshold_2->setEnabled(false); ui->doubleSpinBox_threshold_2->setEnabled(false);
@ -167,6 +179,8 @@ void KeyPhase::Init() {
ui->checkBox_enable_3->setChecked(keyphase_data->variables_[i].active); ui->checkBox_enable_3->setChecked(keyphase_data->variables_[i].active);
ui->doubleSpinBox_high_3->setValue(keyphase_data->variables_[i].normal_voltage_high); ui->doubleSpinBox_high_3->setValue(keyphase_data->variables_[i].normal_voltage_high);
ui->doubleSpinBox_low_3->setValue(keyphase_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_3->setValue(keyphase_data->variables_[i].normal_voltage_low);
ui->spinBox_points_3->setValue(keyphase_data->variables_[i].keyphase_points);
ui->spinBox_delay_3->setValue(keyphase_data->variables_[i].speed_delay);
if (keyphase_data->variables_[i].automatic_threshold) { if (keyphase_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_3->setChecked(true); ui->radioButton_automatic_threshold_3->setChecked(true);
ui->doubleSpinBox_threshold_3->setEnabled(false); ui->doubleSpinBox_threshold_3->setEnabled(false);
@ -183,6 +197,8 @@ void KeyPhase::Init() {
ui->checkBox_enable_4->setChecked(keyphase_data->variables_[i].active); ui->checkBox_enable_4->setChecked(keyphase_data->variables_[i].active);
ui->doubleSpinBox_high_4->setValue(keyphase_data->variables_[i].normal_voltage_high); ui->doubleSpinBox_high_4->setValue(keyphase_data->variables_[i].normal_voltage_high);
ui->doubleSpinBox_low_4->setValue(keyphase_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_4->setValue(keyphase_data->variables_[i].normal_voltage_low);
ui->spinBox_points_4->setValue(keyphase_data->variables_[i].keyphase_points);
ui->spinBox_delay_4->setValue(keyphase_data->variables_[i].speed_delay);
if (keyphase_data->variables_[i].automatic_threshold) { if (keyphase_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_4->setChecked(true); ui->radioButton_automatic_threshold_4->setChecked(true);
ui->doubleSpinBox_threshold_4->setEnabled(false); ui->doubleSpinBox_threshold_4->setEnabled(false);

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>824</width> <width>904</width>
<height>510</height> <height>510</height>
</rect> </rect>
</property> </property>
@ -157,113 +157,159 @@
<property name="title"> <property name="title">
<string>正常电压</string> <string>正常电压</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_35">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_16">
<item> <item>
<widget class="QLabel" name="label_42"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="minimumSize"> <item>
<size> <widget class="QLabel" name="label_42">
<width>80</width> <property name="minimumSize">
<height>0</height> <size>
</size> <width>80</width>
</property> <height>0</height>
</size>
</property>
<property name="text">
<string>上限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_1">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_51">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_43">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>下限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_1">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_50">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_96">
<property name="text"> <property name="text">
<string>上限:</string> <string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_1"> <widget class="QSpinBox" name="spinBox_points">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_51">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_47">
<item> <item>
<widget class="QLabel" name="label_43"> <widget class="QLabel" name="label_97">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>下限:</string> <string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_1"> <widget class="QSpinBox" name="spinBox_delay">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_50">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -509,113 +555,159 @@
<property name="title"> <property name="title">
<string>正常电压</string> <string>正常电压</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_6"> <layout class="QHBoxLayout" name="horizontalLayout_36">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_13"> <layout class="QVBoxLayout" name="verticalLayout_6">
<item> <item>
<widget class="QLabel" name="label_44"> <layout class="QHBoxLayout" name="horizontalLayout_13">
<property name="minimumSize"> <item>
<size> <widget class="QLabel" name="label_44">
<width>80</width> <property name="minimumSize">
<height>0</height> <size>
</size> <width>80</width>
</property> <height>0</height>
</size>
</property>
<property name="text">
<string>上限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_2">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_59">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_14">
<item>
<widget class="QLabel" name="label_60">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>下限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_2">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_61">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_17">
<item>
<widget class="QLabel" name="label_98">
<property name="text"> <property name="text">
<string>上限:</string> <string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_2"> <widget class="QSpinBox" name="spinBox_points_2">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_59">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_14"> <layout class="QVBoxLayout" name="verticalLayout_48">
<item> <item>
<widget class="QLabel" name="label_60"> <widget class="QLabel" name="label_99">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>下限:</string> <string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_2"> <widget class="QSpinBox" name="spinBox_delay_2">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_61">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -911,113 +1003,159 @@
<property name="title"> <property name="title">
<string>正常电压</string> <string>正常电压</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_8"> <layout class="QHBoxLayout" name="horizontalLayout_37">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_20"> <layout class="QVBoxLayout" name="verticalLayout_8">
<item> <item>
<widget class="QLabel" name="label_46"> <layout class="QHBoxLayout" name="horizontalLayout_20">
<property name="minimumSize"> <item>
<size> <widget class="QLabel" name="label_46">
<width>80</width> <property name="minimumSize">
<height>0</height> <size>
</size> <width>80</width>
</property> <height>0</height>
</size>
</property>
<property name="text">
<string>上限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_3">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_52">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_21">
<item>
<widget class="QLabel" name="label_47">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>下限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_3">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_62">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_18">
<item>
<widget class="QLabel" name="label_100">
<property name="text"> <property name="text">
<string>上限:</string> <string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_3"> <widget class="QSpinBox" name="spinBox_points_3">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_52">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_21"> <layout class="QVBoxLayout" name="verticalLayout_49">
<item> <item>
<widget class="QLabel" name="label_47"> <widget class="QLabel" name="label_101">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>下限:</string> <string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_3"> <widget class="QSpinBox" name="spinBox_delay_3">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_62">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -1263,113 +1401,159 @@
<property name="title"> <property name="title">
<string>正常电压</string> <string>正常电压</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_10"> <layout class="QHBoxLayout" name="horizontalLayout_38">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_27"> <layout class="QVBoxLayout" name="verticalLayout_10">
<item> <item>
<widget class="QLabel" name="label_56"> <layout class="QHBoxLayout" name="horizontalLayout_27">
<property name="minimumSize"> <item>
<size> <widget class="QLabel" name="label_56">
<width>80</width> <property name="minimumSize">
<height>0</height> <size>
</size> <width>80</width>
</property> <height>0</height>
</size>
</property>
<property name="text">
<string>上限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_4">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_57">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_28">
<item>
<widget class="QLabel" name="label_58">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>下限:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_4">
<property name="minimumSize">
<size>
<width>120</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_63">
<property name="text">
<string>V</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_19">
<item>
<widget class="QLabel" name="label_102">
<property name="text"> <property name="text">
<string>上限:</string> <string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_high_4"> <widget class="QSpinBox" name="spinBox_points_4">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_57">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_28"> <layout class="QVBoxLayout" name="verticalLayout_50">
<item> <item>
<widget class="QLabel" name="label_58"> <widget class="QLabel" name="label_103">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>下限:</string> <string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_low_4"> <widget class="QSpinBox" name="spinBox_delay_4">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>-50.000000000000000</double>
</property>
<property name="maximum">
<double>50.000000000000000</double>
</property>
<property name="value">
<double>-25.000000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_63">
<property name="text">
<string>V</string>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>

View File

@ -84,6 +84,9 @@ void Tachometer::UpdateData(std::shared_ptr<TachometerData> &speed_data) {
speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_1->value(); speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_1->value();
speed_data->variables_[i].speed_peek = ui->full_scale_range_1->value(); speed_data->variables_[i].speed_peek = ui->full_scale_range_1->value();
speed_data->variables_[i].default_speed = ui->default_value_1->value(); speed_data->variables_[i].default_speed = ui->default_value_1->value();
speed_data->variables_[i].keyphase_points = ui->spinBox_points->value();
speed_data->variables_[i].speed_delay = ui->spinBox_delay->value();
speed_data->variables_[i].zero_speed = ui->spinBox_zero_speed->value();
if(ui->radioButton_automatic_threshold_1->isChecked()){ if(ui->radioButton_automatic_threshold_1->isChecked()){
speed_data->variables_[i].automatic_threshold = true; speed_data->variables_[i].automatic_threshold = true;
}else{ }else{
@ -121,6 +124,9 @@ void Tachometer::UpdateData(std::shared_ptr<TachometerData> &speed_data) {
speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_2->value(); speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_2->value();
speed_data->variables_[i].speed_peek = ui->full_scale_range_2->value(); speed_data->variables_[i].speed_peek = ui->full_scale_range_2->value();
speed_data->variables_[i].default_speed = ui->default_value_2->value(); speed_data->variables_[i].default_speed = ui->default_value_2->value();
speed_data->variables_[i].keyphase_points = ui->spinBox_points_2->value();
speed_data->variables_[i].speed_delay = ui->spinBox_delay_2->value();
speed_data->variables_[i].zero_speed = ui->spinBox_zero_speed_2->value();
if(ui->radioButton_automatic_threshold_2->isChecked()){ if(ui->radioButton_automatic_threshold_2->isChecked()){
speed_data->variables_[i].automatic_threshold = true; speed_data->variables_[i].automatic_threshold = true;
}else{ }else{
@ -159,6 +165,9 @@ void Tachometer::UpdateData(std::shared_ptr<TachometerData> &speed_data) {
speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_3->value(); speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_3->value();
speed_data->variables_[i].speed_peek = ui->full_scale_range_3->value(); speed_data->variables_[i].speed_peek = ui->full_scale_range_3->value();
speed_data->variables_[i].default_speed = ui->default_value_3->value(); speed_data->variables_[i].default_speed = ui->default_value_3->value();
speed_data->variables_[i].keyphase_points = ui->spinBox_points_3->value();
speed_data->variables_[i].speed_delay = ui->spinBox_delay_3->value();
speed_data->variables_[i].zero_speed = ui->spinBox_zero_speed_3->value();
if(ui->radioButton_automatic_threshold_3->isChecked()){ if(ui->radioButton_automatic_threshold_3->isChecked()){
speed_data->variables_[i].automatic_threshold = true; speed_data->variables_[i].automatic_threshold = true;
}else{ }else{
@ -197,6 +206,9 @@ void Tachometer::UpdateData(std::shared_ptr<TachometerData> &speed_data) {
speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_4->value(); speed_data->variables_[i].normal_voltage_low = ui->doubleSpinBox_low_4->value();
speed_data->variables_[i].speed_peek = ui->full_scale_range_4->value(); speed_data->variables_[i].speed_peek = ui->full_scale_range_4->value();
speed_data->variables_[i].default_speed = ui->default_value_4->value(); speed_data->variables_[i].default_speed = ui->default_value_4->value();
speed_data->variables_[i].keyphase_points = ui->spinBox_points_4->value();
speed_data->variables_[i].speed_delay = ui->spinBox_delay_4->value();
speed_data->variables_[i].zero_speed = ui->spinBox_zero_speed_4->value();
if(ui->radioButton_automatic_threshold_4->isChecked()){ if(ui->radioButton_automatic_threshold_4->isChecked()){
speed_data->variables_[i].automatic_threshold = true; speed_data->variables_[i].automatic_threshold = true;
}else{ }else{
@ -252,6 +264,9 @@ void Tachometer::Init() {
ui->doubleSpinBox_low_1->setValue(speed_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_1->setValue(speed_data->variables_[i].normal_voltage_low);
ui->full_scale_range_1->setValue(speed_data->variables_[i].speed_peek); ui->full_scale_range_1->setValue(speed_data->variables_[i].speed_peek);
ui->default_value_1->setValue(speed_data->variables_[i].default_speed); ui->default_value_1->setValue(speed_data->variables_[i].default_speed);
ui->spinBox_points->setValue(speed_data->variables_[i].keyphase_points);
ui->spinBox_delay->setValue(speed_data->variables_[i].speed_delay);
ui->spinBox_zero_speed->setValue(speed_data->variables_[i].zero_speed);
if (speed_data->variables_[i].automatic_threshold) { if (speed_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_1->setChecked(true); ui->radioButton_automatic_threshold_1->setChecked(true);
ui->doubleSpinBox_threshold_1->setEnabled(false); ui->doubleSpinBox_threshold_1->setEnabled(false);
@ -297,6 +312,9 @@ void Tachometer::Init() {
ui->doubleSpinBox_low_2->setValue(speed_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_2->setValue(speed_data->variables_[i].normal_voltage_low);
ui->full_scale_range_2->setValue(speed_data->variables_[i].speed_peek); ui->full_scale_range_2->setValue(speed_data->variables_[i].speed_peek);
ui->default_value_2->setValue(speed_data->variables_[i].default_speed); ui->default_value_2->setValue(speed_data->variables_[i].default_speed);
ui->spinBox_points_2->setValue(speed_data->variables_[i].keyphase_points);
ui->spinBox_delay_2->setValue(speed_data->variables_[i].speed_delay);
ui->spinBox_zero_speed_2->setValue(speed_data->variables_[i].zero_speed);
if (speed_data->variables_[i].automatic_threshold) { if (speed_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_2->setChecked(true); ui->radioButton_automatic_threshold_2->setChecked(true);
ui->doubleSpinBox_threshold_2->setEnabled(false); ui->doubleSpinBox_threshold_2->setEnabled(false);
@ -342,6 +360,9 @@ void Tachometer::Init() {
ui->doubleSpinBox_low_3->setValue(speed_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_3->setValue(speed_data->variables_[i].normal_voltage_low);
ui->full_scale_range_3->setValue(speed_data->variables_[i].speed_peek); ui->full_scale_range_3->setValue(speed_data->variables_[i].speed_peek);
ui->default_value_3->setValue(speed_data->variables_[i].default_speed); ui->default_value_3->setValue(speed_data->variables_[i].default_speed);
ui->spinBox_points_3->setValue(speed_data->variables_[i].keyphase_points);
ui->spinBox_delay_3->setValue(speed_data->variables_[i].speed_delay);
ui->spinBox_zero_speed_3->setValue(speed_data->variables_[i].zero_speed);
if (speed_data->variables_[i].automatic_threshold) { if (speed_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_3->setChecked(true); ui->radioButton_automatic_threshold_3->setChecked(true);
ui->doubleSpinBox_threshold_3->setEnabled(false); ui->doubleSpinBox_threshold_3->setEnabled(false);
@ -387,6 +408,9 @@ void Tachometer::Init() {
ui->doubleSpinBox_low_4->setValue(speed_data->variables_[i].normal_voltage_low); ui->doubleSpinBox_low_4->setValue(speed_data->variables_[i].normal_voltage_low);
ui->full_scale_range_4->setValue(speed_data->variables_[i].speed_peek); ui->full_scale_range_4->setValue(speed_data->variables_[i].speed_peek);
ui->default_value_4->setValue(speed_data->variables_[i].default_speed); ui->default_value_4->setValue(speed_data->variables_[i].default_speed);
ui->spinBox_points_4->setValue(speed_data->variables_[i].keyphase_points);
ui->spinBox_delay_4->setValue(speed_data->variables_[i].speed_delay);
ui->spinBox_zero_speed_4->setValue(speed_data->variables_[i].zero_speed);
if (speed_data->variables_[i].automatic_threshold) { if (speed_data->variables_[i].automatic_threshold) {
ui->radioButton_automatic_threshold_4->setChecked(true); ui->radioButton_automatic_threshold_4->setChecked(true);
ui->doubleSpinBox_threshold_4->setEnabled(false); ui->doubleSpinBox_threshold_4->setEnabled(false);

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>835</width> <width>835</width>
<height>655</height> <height>670</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -383,13 +383,13 @@
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_7"> <layout class="QHBoxLayout" name="horizontalLayout_7">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -404,7 +404,7 @@
<widget class="QSpinBox" name="full_scale_range_1"> <widget class="QSpinBox" name="full_scale_range_1">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
@ -422,13 +422,13 @@
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_31">
<item> <item>
<widget class="QLabel" name="label_19"> <widget class="QLabel" name="label_19">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -454,6 +454,54 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_96">
<property name="text">
<string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_points">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_47">
<item>
<widget class="QLabel" name="label_97">
<property name="text">
<string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_delay">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -462,39 +510,66 @@
<property name="title"> <property name="title">
<string>记录输出</string> <string>记录输出</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_4">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_4"> <widget class="QComboBox" name="comboBox_record_output_1">
<property name="minimumSize">
<size>
<width>125</width>
<height>25</height>
</size>
</property>
<item> <item>
<widget class="QComboBox" name="comboBox_record_output_1"> <property name="text">
<property name="minimumSize"> <string>不输出</string>
<size> </property>
<width>125</width> </item>
<height>25</height> <item>
</size> <property name="text">
<string>转速</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_1">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="text">
<string>2 mA 默认值</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_56">
<item>
<widget class="QLabel" name="label_98">
<property name="text">
<string> 零转速:</string>
</property> </property>
<item>
<property name="text">
<string>不输出</string>
</property>
</item>
<item>
<property name="text">
<string>转速</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_1"> <widget class="QSpinBox" name="spinBox_zero_speed">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximum">
<number>10</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_108">
<property name="text"> <property name="text">
<string>2 mA 默认值</string> <string>RPM</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -1538,7 +1613,7 @@
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -1553,7 +1628,7 @@
<widget class="QSpinBox" name="full_scale_range_2"> <widget class="QSpinBox" name="full_scale_range_2">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
@ -1577,7 +1652,7 @@
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -1603,6 +1678,54 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_49">
<item>
<widget class="QLabel" name="label_99">
<property name="text">
<string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_points_2">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_51">
<item>
<widget class="QLabel" name="label_100">
<property name="text">
<string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_delay_2">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -1613,37 +1736,64 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_24"> <layout class="QVBoxLayout" name="verticalLayout_24">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_25"> <widget class="QComboBox" name="comboBox_record_output_2">
<property name="minimumSize">
<size>
<width>125</width>
<height>25</height>
</size>
</property>
<item> <item>
<widget class="QComboBox" name="comboBox_record_output_2"> <property name="text">
<property name="minimumSize"> <string>不输出</string>
<size> </property>
<width>125</width> </item>
<height>25</height> <item>
</size> <property name="text">
<string>转速</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_2">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="text">
<string>2 mA 默认值</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_57">
<item>
<widget class="QLabel" name="label_105">
<property name="text">
<string> 零转速:</string>
</property> </property>
<item>
<property name="text">
<string>不输出</string>
</property>
</item>
<item>
<property name="text">
<string>转速</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_2"> <widget class="QSpinBox" name="spinBox_zero_speed_2">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximum">
<number>10</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_109">
<property name="text"> <property name="text">
<string>2 mA 默认值</string> <string>RPM</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -2677,7 +2827,7 @@
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -2692,7 +2842,7 @@
<widget class="QSpinBox" name="full_scale_range_3"> <widget class="QSpinBox" name="full_scale_range_3">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
@ -2716,7 +2866,7 @@
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -2742,6 +2892,54 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_52">
<item>
<widget class="QLabel" name="label_101">
<property name="text">
<string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_points_3">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_53">
<item>
<widget class="QLabel" name="label_102">
<property name="text">
<string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_delay_3">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -2750,39 +2948,66 @@
<property name="title"> <property name="title">
<string>记录输出</string> <string>记录输出</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_30"> <layout class="QVBoxLayout" name="verticalLayout_25">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_31"> <widget class="QComboBox" name="comboBox_record_output_3">
<property name="minimumSize">
<size>
<width>125</width>
<height>25</height>
</size>
</property>
<item> <item>
<widget class="QComboBox" name="comboBox_record_output_3"> <property name="text">
<property name="minimumSize"> <string>不输出</string>
<size> </property>
<width>125</width> </item>
<height>25</height> <item>
</size> <property name="text">
<string>转速</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_3">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="text">
<string>2 mA 默认值</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_58">
<item>
<widget class="QLabel" name="label_106">
<property name="text">
<string> 零转速:</string>
</property> </property>
<item>
<property name="text">
<string>不输出</string>
</property>
</item>
<item>
<property name="text">
<string>转速</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_3"> <widget class="QSpinBox" name="spinBox_zero_speed_3">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximum">
<number>10</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_110">
<property name="text"> <property name="text">
<string>2 mA 默认值</string> <string>RPM</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -3816,7 +4041,7 @@
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -3831,7 +4056,7 @@
<widget class="QSpinBox" name="full_scale_range_4"> <widget class="QSpinBox" name="full_scale_range_4">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
@ -3855,7 +4080,7 @@
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>50</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
@ -3881,6 +4106,54 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_56">
<item>
<widget class="QLabel" name="label_103">
<property name="text">
<string> 键相点数</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_points_4">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_58">
<item>
<widget class="QLabel" name="label_104">
<property name="text">
<string> 时延(S)</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_delay_4">
<property name="minimumSize">
<size>
<width>50</width>
<height>25</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -3889,39 +4162,66 @@
<property name="title"> <property name="title">
<string>记录输出</string> <string>记录输出</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_42"> <layout class="QVBoxLayout" name="verticalLayout_30">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_43"> <widget class="QComboBox" name="comboBox_record_output_4">
<property name="minimumSize">
<size>
<width>125</width>
<height>25</height>
</size>
</property>
<item> <item>
<widget class="QComboBox" name="comboBox_record_output_4"> <property name="text">
<property name="minimumSize"> <string>不输出</string>
<size> </property>
<width>125</width> </item>
<height>25</height> <item>
</size> <property name="text">
<string>转速</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_4">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="text">
<string>2 mA 默认值</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_59">
<item>
<widget class="QLabel" name="label_107">
<property name="text">
<string> 零转速:</string>
</property> </property>
<item>
<property name="text">
<string>不输出</string>
</property>
</item>
<item>
<property name="text">
<string>转速</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="checkBox_two_ma_clamp_4"> <widget class="QSpinBox" name="spinBox_zero_speed_4">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>50</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
<property name="maximum">
<number>10</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_111">
<property name="text"> <property name="text">
<string>2 mA 默认值</string> <string>RPM</string>
</property> </property>
</widget> </widget>
</item> </item>