添加加速度配置
This commit is contained in:
parent
4b6574d909
commit
88b9de608a
261
acceleration.cpp
261
acceleration.cpp
@ -1,14 +1,273 @@
|
|||||||
#include "acceleration.h"
|
#include "acceleration.h"
|
||||||
#include "ui_acceleration.h"
|
#include "ui_acceleration.h"
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QJsonDocument>
|
||||||
|
#include <QJsonArray>
|
||||||
|
#include <QJsonObject>
|
||||||
|
#include <QFile>
|
||||||
|
|
||||||
Acceleration::Acceleration(QWidget *parent) :
|
Acceleration::Acceleration(int slot_no_,int channel_,bool active,QWidget *parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
ui(new Ui::Acceleration)
|
ui(new Ui::Acceleration)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
slot_no = slot_no_;
|
||||||
|
channel = channel_;
|
||||||
|
QString chan = QString("%1").arg(channel);
|
||||||
|
QString slot = QString("%1").arg(slot_no);
|
||||||
|
ui->label_channel->setText(chan);
|
||||||
|
ui->label_slot->setText(slot);
|
||||||
|
if(active)
|
||||||
|
ui->label_active->setText("(启用)");
|
||||||
|
else
|
||||||
|
ui->label_active->setText("(停用)");
|
||||||
|
QString filePath_filter = QCoreApplication::applicationDirPath() + QString("\\config\\filter_%1_%2.json").arg(slot_no).arg(channel);
|
||||||
|
readJsonFile(filePath_filter);
|
||||||
|
QString filePath_variables = QCoreApplication::applicationDirPath() + QString("\\config\\acceleration_variables_%1_%2.json").arg(slot_no).arg(channel);
|
||||||
|
readJsonFile(filePath_variables);
|
||||||
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
Acceleration::~Acceleration()
|
Acceleration::~Acceleration()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
void Acceleration::readJsonFile(const QString &filePath)
|
||||||
|
{
|
||||||
|
// 创建文件对象
|
||||||
|
QFile file(filePath);
|
||||||
|
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
|
qDebug() << "Cannot open file for reading:" << filePath;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
QString content = file.readAll();
|
||||||
|
file.close();
|
||||||
|
QByteArray jsonData = content.toUtf8();
|
||||||
|
QJsonDocument jsonDoc = QJsonDocument::fromJson(jsonData);
|
||||||
|
if (jsonDoc.isNull()) {
|
||||||
|
qDebug() << "Cannot parse JSON document";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!jsonDoc.isObject() && !jsonDoc.isArray()) {
|
||||||
|
qDebug() << "JSON document is not an object or an array";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
QJsonObject json_obj = jsonDoc.object();
|
||||||
|
if(filePath.contains("filter_")){
|
||||||
|
QJsonArray filter_array = json_obj["filter"].toArray();
|
||||||
|
for(int i = 0; i < filter_array.size(); i++){
|
||||||
|
QJsonObject temp_obj = filter_array[i].toObject();
|
||||||
|
filter[i].type = temp_obj["type"].toString();
|
||||||
|
filter[i].low = temp_obj["low"].toInt();
|
||||||
|
filter[i].high = temp_obj["high"].toInt();
|
||||||
|
filter[i].checked = temp_obj["checked"].toBool();
|
||||||
|
}
|
||||||
|
}else if(filePath.contains("acceleration_variables_")){
|
||||||
|
|
||||||
|
QJsonArray variables_array = json_obj["variables"].toArray();
|
||||||
|
for(int i = 0; i < variables_array.size(); i++){
|
||||||
|
QJsonObject temp_obj = variables_array[i].toObject();
|
||||||
|
variables[i].type = temp_obj["type"].toString();
|
||||||
|
if(variables[i].type == "direct"){
|
||||||
|
variables[i].full_sacle_range = temp_obj["full_sacle_range"].toString();
|
||||||
|
variables[i].clamp_value = temp_obj["clamp_value"].toDouble();
|
||||||
|
}else if(variables[i].type == "bias_volt"){
|
||||||
|
variables[i].clamp_value = temp_obj["clamp_value"].toDouble();
|
||||||
|
}else if(variables[i].type == "1x_ampl"){
|
||||||
|
variables[i].checked = temp_obj["checked"].toBool();
|
||||||
|
variables[i].full_sacle_range = temp_obj["full_sacle_range"].toString();
|
||||||
|
variables[i].clamp_value = temp_obj["clamp_value"].toDouble();
|
||||||
|
}else if(variables[i].type == "1x_phase_lag"){
|
||||||
|
variables[i].clamp_value = temp_obj["clamp_value"].toDouble();
|
||||||
|
}else if(variables[i].type == "2x_ampl"){
|
||||||
|
variables[i].checked = temp_obj["checked"].toBool();
|
||||||
|
variables[i].full_sacle_range = temp_obj["full_sacle_range"].toString();
|
||||||
|
variables[i].clamp_value = temp_obj["clamp_value"].toDouble();
|
||||||
|
}else if(variables[i].type == "2x_phase_lag"){
|
||||||
|
variables[i].clamp_value = temp_obj["clamp_value"].toDouble();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
QJsonObject delay_obj = json_obj["delay"].toObject();
|
||||||
|
delay.alert = delay_obj["alert"].toInt();
|
||||||
|
delay.danger = delay_obj["danger"].toDouble();
|
||||||
|
delay.active_100ms = delay_obj["100ms"].toBool();
|
||||||
|
alert_variables.rms_active = json_obj["rms_active"].toBool();
|
||||||
|
alert_variables.integrate_active = json_obj["integrate_active"].toBool();
|
||||||
|
alert_variables.alert_latching = json_obj["alert_latching"].toBool();
|
||||||
|
alert_variables.danger_latching = json_obj["danger_latching"].toBool();
|
||||||
|
alert_variables.timed_ok = json_obj["timed_ok"].toBool();
|
||||||
|
alert_variables.recorder_output = json_obj["recorder_output"].toString();
|
||||||
|
alert_variables.two_ma_clamp = json_obj["two_ma_clamp"].toBool();
|
||||||
|
alert_variables.trip_mutiply = json_obj["trip_mutiply"].toDouble();
|
||||||
|
alert_variables.comparision = json_obj["comparision"].toString();
|
||||||
|
alert_variables.comparision_percentage = json_obj["comparision_percentage"].toInt();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void Acceleration::Init()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < 3; i++) {
|
||||||
|
if(filter[i].checked){
|
||||||
|
if(filter[i].type == "band_pass"){
|
||||||
|
ui->checkBox_band_pass->setChecked(filter[i].checked);
|
||||||
|
ui->spinBox_band_pass_low->setValue(filter[i].low);
|
||||||
|
ui->spinBox_band_pass_high->setValue(filter[i].high);
|
||||||
|
}else if(filter[i].type == "low_pass"){
|
||||||
|
ui->checkBox_low_pass->setChecked(filter[i].checked);
|
||||||
|
ui->comboBox_low_pass_low->setCurrentText(QString(filter[i].low));
|
||||||
|
ui->comboBox_low_pass_high->setCurrentText(QString(filter[i].high));
|
||||||
|
}else if(filter[i].type == "high_pass"){
|
||||||
|
ui->checkBox_high_pass->setChecked(filter[i].checked);
|
||||||
|
ui->spinBox_high_pass_low->setValue(filter[i].low);
|
||||||
|
ui->spinBox_high_pass_high->setValue(filter[i].high);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (int i = 0; i < 4; i++) {
|
||||||
|
if(variables[i].type == "direct"){
|
||||||
|
ui->comboBox_direct_value_range->setCurrentText(variables[i].full_sacle_range);
|
||||||
|
ui->doubleSpinBox_direct_clamp->setValue(variables[i].clamp_value);
|
||||||
|
}else if(variables[i].type == "bias_volt"){
|
||||||
|
ui->label_bias_voltage->setText(QString::number(variables[i].bias_voltage));
|
||||||
|
ui->doubleSpinBox_bias_volt_clamp->setValue(variables[i].clamp_value);
|
||||||
|
}else if(variables[i].type == "1x_ampl"){
|
||||||
|
ui->comboBox_1x_value_range->setCurrentText(variables[i].full_sacle_range);
|
||||||
|
ui->doubleSpinBox_1x_ampl_clamp->setValue(variables[i].clamp_value);
|
||||||
|
}else if(variables[i].type == "1x_phase_lag"){
|
||||||
|
ui->doubleSpinBox_1x_phase_lag_clamp->setValue(variables[i].clamp_value);
|
||||||
|
}else if(variables[i].type == "2x_ampl"){
|
||||||
|
ui->comboBox_2x_value_range->setCurrentText(variables[i].full_sacle_range);
|
||||||
|
ui->doubleSpinBox_2x_ampl_clamp->setValue(variables[i].clamp_value);
|
||||||
|
}else if(variables[i].type == "2x_phase_lag"){
|
||||||
|
ui->doubleSpinBox_2x_phase_lag_clamp->setValue(variables[i].clamp_value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ui->spinBox_alert->setValue(delay.alert);
|
||||||
|
ui->doubleSpinBox_danger->setValue(delay.danger);
|
||||||
|
ui->checkBox_100ms->setChecked(delay.active_100ms);
|
||||||
|
ui->checkBox_rms->setChecked(alert_variables.rms_active);
|
||||||
|
ui->checkBox_integrate->setChecked(alert_variables.integrate_active);
|
||||||
|
ui->checkBox_alert_latching->setChecked(alert_variables.alert_latching);
|
||||||
|
ui->checkBox_danger_latching->setChecked(alert_variables.danger_latching);
|
||||||
|
ui->checkBox_timed_ok->setChecked(alert_variables.timed_ok);
|
||||||
|
ui->comboBox_recorder_output->setCurrentText(alert_variables.recorder_output);
|
||||||
|
ui->checkBox_two_ma_clamp->setChecked(alert_variables.two_ma_clamp);
|
||||||
|
ui->doubleSpinBox_trip_mutiply->setValue(alert_variables.trip_mutiply);
|
||||||
|
ui->comboBox_comparision->setCurrentText(alert_variables.comparision);
|
||||||
|
ui->spinBox_comparision_percentage->setValue(alert_variables.comparision_percentage);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Acceleration::on_pushButton_confirm_clicked()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < 3; i++) {
|
||||||
|
if(filter[i].checked){
|
||||||
|
if(filter[i].type == "band_pass"){
|
||||||
|
filter[i].checked = ui->checkBox_band_pass->isChecked();
|
||||||
|
filter[i].low = ui->spinBox_band_pass_low->value();
|
||||||
|
filter[i].high = ui->spinBox_band_pass_high->value();
|
||||||
|
}else if(filter[i].type == "low_pass"){
|
||||||
|
filter[i].checked = ui->checkBox_low_pass->isChecked();
|
||||||
|
filter[i].low = ui->comboBox_low_pass_low->currentText().toInt();
|
||||||
|
filter[i].high = ui->comboBox_low_pass_high->currentText().toInt();
|
||||||
|
}else if(filter[i].type == "high_pass"){
|
||||||
|
filter[i].checked = ui->checkBox_high_pass->isChecked();
|
||||||
|
filter[i].low = ui->spinBox_high_pass_low->value();
|
||||||
|
filter[i].high = ui->spinBox_high_pass_high->value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (int i = 0; i < 4; i++) {
|
||||||
|
if(variables[i].type == "direct"){
|
||||||
|
variables[i].full_sacle_range = ui->comboBox_direct_value_range->currentText();
|
||||||
|
variables[i].clamp_value = ui->doubleSpinBox_direct_clamp->value();
|
||||||
|
}else if(variables[i].type == "bias_volt"){
|
||||||
|
variables[i].clamp_value = ui->doubleSpinBox_bias_volt_clamp->value();
|
||||||
|
}else if(variables[i].type == "1x_ampl"){
|
||||||
|
variables[i].checked = ui->checkBox_1x_ampl->isChecked();
|
||||||
|
variables[i].full_sacle_range = ui->comboBox_1x_value_range->currentText();
|
||||||
|
variables[i].clamp_value = ui->doubleSpinBox_1x_ampl_clamp->value();
|
||||||
|
}else if(variables[i].type == "1x_phase_lag"){
|
||||||
|
variables[i].clamp_value = ui->doubleSpinBox_1x_phase_lag_clamp->value();
|
||||||
|
}else if(variables[i].type == "2x_ampl"){
|
||||||
|
variables[i].checked = ui->checkBox_2x_ampl->isChecked();
|
||||||
|
variables[i].full_sacle_range = ui->comboBox_2x_value_range->currentText();
|
||||||
|
variables[i].clamp_value = ui->doubleSpinBox_2x_ampl_clamp->value();
|
||||||
|
}else if(variables[i].type == "2x_phase_lag"){
|
||||||
|
variables[i].clamp_value = ui->doubleSpinBox_2x_phase_lag_clamp->value();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
delay.alert = ui->spinBox_alert->value();
|
||||||
|
delay.danger = ui->doubleSpinBox_danger->value();
|
||||||
|
delay.active_100ms = ui->checkBox_100ms->isChecked();
|
||||||
|
alert_variables.rms_active = ui->checkBox_rms->isChecked();
|
||||||
|
alert_variables.integrate_active = ui->checkBox_integrate->isChecked();
|
||||||
|
alert_variables.alert_latching = ui->checkBox_alert_latching->isChecked();
|
||||||
|
alert_variables.danger_latching = ui->checkBox_danger_latching->isChecked();
|
||||||
|
alert_variables.timed_ok = ui->checkBox_timed_ok->isChecked();
|
||||||
|
alert_variables.recorder_output = ui->comboBox_recorder_output->currentText();
|
||||||
|
alert_variables.two_ma_clamp = ui->checkBox_two_ma_clamp->isChecked();
|
||||||
|
alert_variables.trip_mutiply = ui->doubleSpinBox_trip_mutiply->value();
|
||||||
|
alert_variables.comparision = ui->comboBox_comparision->currentText();
|
||||||
|
alert_variables.comparision_percentage = ui->spinBox_comparision_percentage->value();
|
||||||
|
|
||||||
|
QJsonObject filter_obj,variables_obj;
|
||||||
|
QJsonArray filter_array;
|
||||||
|
for(int i = 0; i < 3; i++){
|
||||||
|
QJsonObject temp_obj;
|
||||||
|
temp_obj.insert("type",filter[i].type);
|
||||||
|
temp_obj.insert("low",filter[i].low);
|
||||||
|
temp_obj.insert("high",filter[i].high);
|
||||||
|
temp_obj.insert("checked",filter[i].checked);
|
||||||
|
filter_array.append(temp_obj);
|
||||||
|
}
|
||||||
|
filter_obj.insert("filter",filter_array);
|
||||||
|
filter_obj.insert("slot",slot_no);
|
||||||
|
filter_obj.insert("id",channel);
|
||||||
|
QJsonArray variables_array;
|
||||||
|
for(int i = 0; i < 4; i++){
|
||||||
|
QJsonObject temp_obj;
|
||||||
|
temp_obj.insert("type",variables[i].type);
|
||||||
|
temp_obj.insert("full_sacle_range",variables[i].full_sacle_range);
|
||||||
|
temp_obj.insert("bias_voltage",variables[i].bias_voltage);
|
||||||
|
temp_obj.insert("clamp_value",variables[i].clamp_value);
|
||||||
|
temp_obj.insert("phase_lag",variables[i].phase_lag);
|
||||||
|
temp_obj.insert("checked",variables[i].checked);
|
||||||
|
variables_array.append(temp_obj);
|
||||||
|
}
|
||||||
|
variables_obj.insert("variables",variables_array);
|
||||||
|
QJsonObject delay_obj;
|
||||||
|
delay_obj.insert("alert",delay.alert);
|
||||||
|
delay_obj.insert("danger",delay.danger);
|
||||||
|
delay_obj.insert("100ms",delay.active_100ms);
|
||||||
|
variables_obj.insert("delay",delay_obj);
|
||||||
|
variables_obj.insert("rms_active",alert_variables.rms_active);
|
||||||
|
variables_obj.insert("integrate_active",alert_variables.integrate_active);
|
||||||
|
variables_obj.insert("alert_latching",alert_variables.alert_latching);
|
||||||
|
variables_obj.insert("danger_latching",alert_variables.danger_latching);
|
||||||
|
variables_obj.insert("timed_ok",alert_variables.timed_ok);
|
||||||
|
variables_obj.insert("recorder_output",alert_variables.recorder_output);
|
||||||
|
variables_obj.insert("two_ma_clamp",alert_variables.two_ma_clamp);
|
||||||
|
variables_obj.insert("trip_mutiply",alert_variables.trip_mutiply);
|
||||||
|
variables_obj.insert("comparision",alert_variables.comparision);
|
||||||
|
variables_obj.insert("comparision_percentage",alert_variables.comparision_percentage);
|
||||||
|
variables_obj.insert("slot",slot_no);
|
||||||
|
variables_obj.insert("id",channel);
|
||||||
|
QJsonDocument jsonDoc_filter(filter_obj);
|
||||||
|
QString filePath = QCoreApplication::applicationDirPath() + QString("\\config\\filter_%1_%2.json").arg(slot_no).arg(channel);
|
||||||
|
QFile file(filePath);
|
||||||
|
if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||||
|
qDebug() << "Cannot open file for writing:" << filePath;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
file.write(jsonDoc_filter.toJson());
|
||||||
|
file.close();
|
||||||
|
QJsonDocument jsonDoc_variables(variables_obj);
|
||||||
|
filePath = QCoreApplication::applicationDirPath() + QString("\\config\\acceleration_variables_%1_%2.json").arg(slot_no).arg(channel);
|
||||||
|
file.setFileName(filePath);
|
||||||
|
if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||||
|
qDebug() << "Cannot open file for writing:" << filePath;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
file.write(jsonDoc_variables.toJson());
|
||||||
|
file.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#define ACCELERATION_H
|
#define ACCELERATION_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
#include "data_config.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class Acceleration;
|
class Acceleration;
|
||||||
@ -12,11 +13,24 @@ class Acceleration : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Acceleration(QWidget *parent = nullptr);
|
explicit Acceleration(int slot_no_,int channel_,bool active,QWidget *parent = nullptr);
|
||||||
~Acceleration();
|
~Acceleration();
|
||||||
|
int slot_no;
|
||||||
|
int channel;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void on_pushButton_confirm_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::Acceleration *ui;
|
Ui::Acceleration *ui;
|
||||||
|
|
||||||
|
Filter filter[3];
|
||||||
|
Dealy delay;
|
||||||
|
Variables variables[4];
|
||||||
|
Alert_Variables alert_variables;
|
||||||
|
|
||||||
|
void readJsonFile(const QString &filePath);
|
||||||
|
void Init();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ACCELERATION_H
|
#endif // ACCELERATION_H
|
||||||
|
230
acceleration.ui
230
acceleration.ui
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>703</width>
|
<width>703</width>
|
||||||
<height>563</height>
|
<height>587</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -22,67 +22,76 @@
|
|||||||
<height>50</height>
|
<height>50</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<widget class="QLabel" name="label">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QLabel" name="label">
|
<string>通道:</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>通道:</string>
|
</widget>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit">
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>(启用)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<widget class="QLabel" name="label_channel">
|
||||||
<property name="orientation">
|
<property name="text">
|
||||||
<enum>Qt::Horizontal</enum>
|
<string>1</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
</widget>
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<widget class="QLabel" name="label_active">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QLabel" name="label_3">
|
<string>(启用)</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string> 槽位号:</string>
|
</widget>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_2">
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>236</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string> 槽位号:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_slot">
|
||||||
|
<property name="text">
|
||||||
|
<string>8</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_5">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>235</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -114,7 +123,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox_10">
|
<widget class="QCheckBox" name="checkBox_high_pass">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
@ -128,7 +137,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="spinBox_2">
|
<widget class="QSpinBox" name="spinBox_high_pass_low">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>60</width>
|
<width>60</width>
|
||||||
@ -157,7 +166,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="spinBox_3">
|
<widget class="QSpinBox" name="spinBox_high_pass_high">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>60</width>
|
<width>60</width>
|
||||||
@ -212,7 +221,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox_11">
|
<widget class="QCheckBox" name="checkBox_low_pass">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
@ -226,7 +235,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="comboBox_2">
|
<widget class="QComboBox" name="comboBox_low_pass_low">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>60</width>
|
<width>60</width>
|
||||||
@ -248,7 +257,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="comboBox_7">
|
<widget class="QComboBox" name="comboBox_low_pass_high">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>60</width>
|
<width>60</width>
|
||||||
@ -287,7 +296,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox_12">
|
<widget class="QCheckBox" name="checkBox_band_pass">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
@ -301,7 +310,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="spinBox_5">
|
<widget class="QSpinBox" name="spinBox_band_pass_low">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>60</width>
|
<width>60</width>
|
||||||
@ -324,7 +333,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="spinBox_6">
|
<widget class="QSpinBox" name="spinBox_band_pass_high">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>60</width>
|
<width>60</width>
|
||||||
@ -424,12 +433,12 @@
|
|||||||
<string> 偏置电压</string>
|
<string> 偏置电压</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox">
|
<widget class="QCheckBox" name="checkBox_1x_ampl">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>110</y>
|
<y>110</y>
|
||||||
<width>71</width>
|
<width>81</width>
|
||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -437,12 +446,12 @@
|
|||||||
<string>1倍频幅值</string>
|
<string>1倍频幅值</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_2">
|
<widget class="QCheckBox" name="checkBox_2x_ampl">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>180</y>
|
<y>180</y>
|
||||||
<width>71</width>
|
<width>81</width>
|
||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -476,17 +485,23 @@
|
|||||||
<string>默认值</string>
|
<string>默认值</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="comboBox_3">
|
<widget class="QComboBox" name="comboBox_direct_value_range">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>130</x>
|
<x>130</x>
|
||||||
<y>50</y>
|
<y>50</y>
|
||||||
<width>69</width>
|
<width>80</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_direct_clamp">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>260</x>
|
<x>260</x>
|
||||||
@ -495,8 +510,14 @@
|
|||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="label_19">
|
<widget class="QLabel" name="label_bias_voltage">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>130</x>
|
<x>130</x>
|
||||||
@ -506,10 +527,10 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>-24Vdc</string>
|
<string>-24</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_2">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_bias_volt_clamp">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>260</x>
|
<x>260</x>
|
||||||
@ -522,7 +543,7 @@
|
|||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="comboBox_4">
|
<widget class="QComboBox" name="comboBox_1x_value_range">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>130</x>
|
<x>130</x>
|
||||||
@ -532,7 +553,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_3">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_1x_ampl_clamp">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>260</x>
|
<x>260</x>
|
||||||
@ -568,7 +589,7 @@
|
|||||||
<string>2倍频相位</string>
|
<string>2倍频相位</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_4">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_1x_phase_lag_clamp">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>260</x>
|
<x>260</x>
|
||||||
@ -584,7 +605,7 @@
|
|||||||
<double>100.000000000000000</double>
|
<double>100.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_5">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_2x_ampl_clamp">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>260</x>
|
<x>260</x>
|
||||||
@ -594,7 +615,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_6">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_2x_phase_lag_clamp">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>260</x>
|
<x>260</x>
|
||||||
@ -607,7 +628,7 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="comboBox_5">
|
<widget class="QComboBox" name="comboBox_2x_value_range">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>130</x>
|
<x>130</x>
|
||||||
@ -617,7 +638,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_3">
|
<widget class="QCheckBox" name="checkBox_rms">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
@ -630,12 +651,12 @@
|
|||||||
<string> 有效值</string>
|
<string> 有效值</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_4">
|
<widget class="QCheckBox" name="checkBox_integrate">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>130</x>
|
<x>130</x>
|
||||||
<y>250</y>
|
<y>250</y>
|
||||||
<width>71</width>
|
<width>61</width>
|
||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -681,7 +702,7 @@
|
|||||||
<string> 危险</string>
|
<string> 危险</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_8">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_danger">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>60</x>
|
<x>60</x>
|
||||||
@ -697,7 +718,7 @@
|
|||||||
<double>1.000000000000000</double>
|
<double>1.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_5">
|
<widget class="QCheckBox" name="checkBox_100ms">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>60</x>
|
<x>60</x>
|
||||||
@ -736,7 +757,7 @@
|
|||||||
<string>1.0 - 60.0s</string>
|
<string>1.0 - 60.0s</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QSpinBox" name="spinBox">
|
<widget class="QSpinBox" name="spinBox_alert">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>60</x>
|
<x>60</x>
|
||||||
@ -750,8 +771,21 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>190</x>
|
||||||
|
<y>80</y>
|
||||||
|
<width>53</width>
|
||||||
|
<height>15</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Vdc</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_6">
|
<widget class="QCheckBox" name="checkBox_alert_latching">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
@ -764,7 +798,7 @@
|
|||||||
<string> 告警锁定</string>
|
<string> 告警锁定</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_7">
|
<widget class="QCheckBox" name="checkBox_danger_latching">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
@ -790,7 +824,7 @@
|
|||||||
<string>倍增</string>
|
<string>倍增</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDoubleSpinBox" name="doubleSpinBox_9">
|
<widget class="QDoubleSpinBox" name="doubleSpinBox_trip_mutiply">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
@ -829,7 +863,7 @@
|
|||||||
<string>记录输出</string>
|
<string>记录输出</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="comboBox_6">
|
<widget class="QComboBox" name="comboBox_recorder_output">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
@ -874,7 +908,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_8">
|
<widget class="QCheckBox" name="checkBox_two_ma_clamp">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
@ -887,12 +921,12 @@
|
|||||||
<string>2 mA 默认值</string>
|
<string>2 mA 默认值</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox_9">
|
<widget class="QCheckBox" name="checkBox_timed_ok">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
<y>60</y>
|
<y>60</y>
|
||||||
<width>141</width>
|
<width>181</width>
|
||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -913,7 +947,7 @@
|
|||||||
<string>比较</string>
|
<string>比较</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QSpinBox" name="spinBox_4">
|
<widget class="QSpinBox" name="spinBox_comparision_percentage">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
@ -923,7 +957,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="comboBox_19">
|
<widget class="QComboBox" name="comboBox_comparision">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>460</x>
|
<x>460</x>
|
||||||
@ -999,7 +1033,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_9">
|
<widget class="QPushButton" name="pushButton_confirm">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>100</width>
|
||||||
@ -1012,7 +1046,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_10">
|
<widget class="QPushButton" name="pushButton_pushButton_set_default">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>100</width>
|
||||||
@ -1025,7 +1059,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_11">
|
<widget class="QPushButton" name="pushButton_point_name">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>100</width>
|
||||||
@ -1038,7 +1072,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_12">
|
<widget class="QPushButton" name="pushButton_cancel">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>100</width>
|
||||||
@ -1051,7 +1085,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_13">
|
<widget class="QPushButton" name="pushButton_print">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>100</width>
|
||||||
@ -1064,7 +1098,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_14">
|
<widget class="QPushButton" name="pushButton_help">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>100</width>
|
||||||
|
@ -25,7 +25,7 @@ enum SlotType{
|
|||||||
|
|
||||||
typedef struct{
|
typedef struct{
|
||||||
int id;
|
int id;
|
||||||
QString channle_name;
|
QString channel_name;
|
||||||
bool standby;
|
bool standby;
|
||||||
bool active;
|
bool active;
|
||||||
QString rack_type;
|
QString rack_type;
|
||||||
@ -37,4 +37,39 @@ typedef struct{
|
|||||||
float normal_voltage_low;
|
float normal_voltage_low;
|
||||||
float normal_voltage_high;
|
float normal_voltage_high;
|
||||||
}SeismicMonitor;
|
}SeismicMonitor;
|
||||||
|
|
||||||
|
typedef struct{
|
||||||
|
QString type;
|
||||||
|
int low;
|
||||||
|
int high;
|
||||||
|
bool checked;
|
||||||
|
} Filter;
|
||||||
|
|
||||||
|
typedef struct{
|
||||||
|
QString type;
|
||||||
|
QString full_sacle_range;
|
||||||
|
int bias_voltage;
|
||||||
|
float clamp_value;
|
||||||
|
int phase_lag;
|
||||||
|
bool checked;
|
||||||
|
} Variables;
|
||||||
|
|
||||||
|
typedef struct{
|
||||||
|
int alert;
|
||||||
|
float danger;
|
||||||
|
bool active_100ms;
|
||||||
|
} Dealy;
|
||||||
|
typedef struct{
|
||||||
|
bool rms_active;
|
||||||
|
bool integrate_active;
|
||||||
|
bool alert_latching;
|
||||||
|
bool danger_latching;
|
||||||
|
bool timed_ok;
|
||||||
|
QString recorder_output;
|
||||||
|
bool two_ma_clamp;
|
||||||
|
float trip_mutiply;
|
||||||
|
QString comparision;
|
||||||
|
int comparision_percentage;
|
||||||
|
} Alert_Variables;
|
||||||
|
|
||||||
#endif // DATA_CONFIG_H
|
#endif // DATA_CONFIG_H
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab_5">
|
<widget class="QWidget" name="tab_5">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user