fix(sipm增益): 增加sipm增益功能
This commit is contained in:
parent
36e06da497
commit
5af8901fdb
|
@ -52,6 +52,7 @@
|
||||||
"typeinfo": "cpp",
|
"typeinfo": "cpp",
|
||||||
"variant": "cpp",
|
"variant": "cpp",
|
||||||
"qabstractsocket": "cpp",
|
"qabstractsocket": "cpp",
|
||||||
"qtimer": "cpp"
|
"qtimer": "cpp",
|
||||||
|
"qstringlist": "cpp"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 4.12.2, 2024-12-06T15:48:47. -->
|
<!-- Written by QtCreator 4.12.2, 2024-12-08T13:00:41. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
|
|
764
mainwindow.cpp
764
mainwindow.cpp
File diff suppressed because it is too large
Load Diff
19
mainwindow.h
19
mainwindow.h
|
@ -7,6 +7,7 @@
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <qsettings.h>
|
#include <qsettings.h>
|
||||||
|
#include <QStringList>
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
@ -105,6 +106,24 @@ class MainWindow : public QMainWindow {
|
||||||
void read_fpga_cfg();
|
void read_fpga_cfg();
|
||||||
void wave_open();
|
void wave_open();
|
||||||
void wave_close();
|
void wave_close();
|
||||||
|
void sipm_gain_menu();
|
||||||
|
void sipm_gain_set_ssc();
|
||||||
|
void sipm_gain_set_fl1();
|
||||||
|
void sipm_gain_set_fl2();
|
||||||
|
void sipm_gain_set_fl3();
|
||||||
|
void sipm_gain_set_fl4();
|
||||||
|
void sipm_gain_set_fl5();
|
||||||
|
void sipm_gain_set_fl6();
|
||||||
|
void sipm_gain_get_ssc();
|
||||||
|
void sipm_gain_get_fl1();
|
||||||
|
void sipm_gain_get_fl2();
|
||||||
|
void sipm_gain_get_fl3();
|
||||||
|
void sipm_gain_get_fl4();
|
||||||
|
void sipm_gain_get_fl5();
|
||||||
|
void sipm_gain_get_fl6();
|
||||||
|
void show_sipm_gain(int ch, int gain);
|
||||||
|
void sipm_gain_get_one_click();
|
||||||
|
void spim_gain_set_one_click();
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
QTcpSocket *tcp_socket;
|
QTcpSocket *tcp_socket;
|
||||||
|
|
208
mainwindow.ui
208
mainwindow.ui
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1360</width>
|
<width>1360</width>
|
||||||
<height>1118</height>
|
<height>931</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -696,7 +696,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QStackedWidget" name="sw_config">
|
<widget class="QStackedWidget" name="sw_config">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="page_7">
|
<widget class="QWidget" name="page_7">
|
||||||
<layout class="QGridLayout" name="gridLayout_16">
|
<layout class="QGridLayout" name="gridLayout_16">
|
||||||
|
@ -1202,6 +1202,201 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QWidget" name="page_9">
|
||||||
|
<layout class="QGridLayout" name="gridLayout_21">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QGroupBox" name="groupBox_17">
|
||||||
|
<property name="title">
|
||||||
|
<string>sipm增益调节</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_22">
|
||||||
|
<item row="13" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl6_get_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>获取</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="0">
|
||||||
|
<widget class="QLabel" name="label_55">
|
||||||
|
<property name="text">
|
||||||
|
<string>FL6增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl1_get_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>获取</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="label_51">
|
||||||
|
<property name="text">
|
||||||
|
<string>FL2增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="0">
|
||||||
|
<widget class="QLabel" name="label_53">
|
||||||
|
<property name="text">
|
||||||
|
<string>FL4增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLineEdit" name="le_sipm_fl1_value"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_ssc_get_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>获取</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl5_set_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>写入</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="label_52">
|
||||||
|
<property name="text">
|
||||||
|
<string>FL3增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="12" column="1">
|
||||||
|
<widget class="QLineEdit" name="le_sipm_fl6_value"/>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1">
|
||||||
|
<widget class="QLineEdit" name="le_sipm_fl3_value"/>
|
||||||
|
</item>
|
||||||
|
<item row="13" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl6_set_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>写入</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="0">
|
||||||
|
<widget class="QLabel" name="label_54">
|
||||||
|
<property name="text">
|
||||||
|
<string>FL5增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl2_get_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>获取</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QLineEdit" name="le_sipm_fl2_value"/>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="1">
|
||||||
|
<widget class="QLineEdit" name="le_sipm_fl4_value"/>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl5_get_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>获取</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl4_set_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>写入</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="1">
|
||||||
|
<widget class="QLineEdit" name="le_sipm_fl5_value"/>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl1_set_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>写入</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl3_set_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>写入</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl3_get_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>获取</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_49">
|
||||||
|
<property name="text">
|
||||||
|
<string>SSC增益:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="le_sipm_ssc_value"/>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl4_get_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>获取</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_ssc_set_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>写入</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_fl2_set_value">
|
||||||
|
<property name="text">
|
||||||
|
<string>写入</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_50">
|
||||||
|
<property name="text">
|
||||||
|
<string>FL1增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="14" column="0">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_get_one_click">
|
||||||
|
<property name="text">
|
||||||
|
<string>一键获取增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="14" column="1">
|
||||||
|
<widget class="QPushButton" name="bt_sipm_gain_write_onc_click">
|
||||||
|
<property name="text">
|
||||||
|
<string>一键写入增益</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -1218,6 +1413,13 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="bt_sipm_gain_menu">
|
||||||
|
<property name="text">
|
||||||
|
<string>sipm增益menu</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="bt_help">
|
<widget class="QPushButton" name="bt_help">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -1318,7 +1520,7 @@ background-color: rgb(108, 108, 108);</string>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1360</width>
|
<width>1360</width>
|
||||||
<height>26</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue