fix(sipm增益): 增加sipm增益功能

This commit is contained in:
chenyf 2024-12-12 19:48:01 +08:00
parent 36e06da497
commit 5af8901fdb
5 changed files with 1266 additions and 964 deletions

View File

@ -52,6 +52,7 @@
"typeinfo": "cpp",
"variant": "cpp",
"qabstractsocket": "cpp",
"qtimer": "cpp"
"qtimer": "cpp",
"qstringlist": "cpp"
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@
#include <QTimer>
#include <iostream>
#include <qsettings.h>
#include <QStringList>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
@ -105,6 +106,24 @@ class MainWindow : public QMainWindow {
void read_fpga_cfg();
void wave_open();
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:
Ui::MainWindow *ui;
QTcpSocket *tcp_socket;

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1360</width>
<height>1118</height>
<height>931</height>
</rect>
</property>
<property name="windowTitle">
@ -696,7 +696,7 @@
<item>
<widget class="QStackedWidget" name="sw_config">
<property name="currentIndex">
<number>0</number>
<number>2</number>
</property>
<widget class="QWidget" name="page_7">
<layout class="QGridLayout" name="gridLayout_16">
@ -1202,6 +1202,201 @@
</item>
</layout>
</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>
</item>
<item>
@ -1218,6 +1413,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="bt_sipm_gain_menu">
<property name="text">
<string>sipm增益menu</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="bt_help">
<property name="text">
@ -1318,7 +1520,7 @@ background-color: rgb(108, 108, 108);</string>
<x>0</x>
<y>0</y>
<width>1360</width>
<height>26</height>
<height>23</height>
</rect>
</property>
</widget>