|
@ -617,10 +617,10 @@ void MainWindow::on_TTLOutputMoudle_ID_currentIndexChanged(int index) {} |
|
|
|
|
|
|
|
|
void MainWindow::on_TTLPage_Read_clicked() { |
|
|
void MainWindow::on_TTLPage_Read_clicked() { |
|
|
{ |
|
|
{ |
|
|
uint32_t freq1 = 0; |
|
|
|
|
|
uint32_t freq2 = 0; |
|
|
|
|
|
uint32_t freq3 = 0; |
|
|
|
|
|
uint32_t freq4 = 0; |
|
|
|
|
|
|
|
|
float freq1 = 0; |
|
|
|
|
|
float freq2 = 0; |
|
|
|
|
|
float freq3 = 0; |
|
|
|
|
|
float freq4 = 0; |
|
|
bool En; |
|
|
bool En; |
|
|
|
|
|
|
|
|
DO_XSYNC_FUNC(XsyncIns()->TTLInputModule1_detectFreq(freq1)); |
|
|
DO_XSYNC_FUNC(XsyncIns()->TTLInputModule1_detectFreq(freq1)); |
|
@ -628,12 +628,10 @@ void MainWindow::on_TTLPage_Read_clicked() { |
|
|
DO_XSYNC_FUNC(XsyncIns()->TTLInputModule3_detectFreq(freq3)); |
|
|
DO_XSYNC_FUNC(XsyncIns()->TTLInputModule3_detectFreq(freq3)); |
|
|
DO_XSYNC_FUNC(XsyncIns()->TTLInputModule4_detectFreq(freq4)); |
|
|
DO_XSYNC_FUNC(XsyncIns()->TTLInputModule4_detectFreq(freq4)); |
|
|
|
|
|
|
|
|
ZLOGI(TAG, "freq1:%d freq2:%d freq3:%d freq4:%d", freq1, freq2, freq3, freq4); |
|
|
|
|
|
|
|
|
|
|
|
ui->TTLinModule_ttl_freq_1->setText(QString::number(freq1)); |
|
|
|
|
|
ui->TTLinModule_ttl_freq_2->setText(QString::number(freq2)); |
|
|
|
|
|
ui->TTLinModule_ttl_freq_3->setText(QString::number(freq3)); |
|
|
|
|
|
ui->TTLinModule_ttl_freq_4->setText(QString::number(freq4)); |
|
|
|
|
|
|
|
|
ui->TTLinModule_ttl_freq_1->setText(QString::number(freq1, 'f', 2)); |
|
|
|
|
|
ui->TTLinModule_ttl_freq_2->setText(QString::number(freq2, 'f', 2)); |
|
|
|
|
|
ui->TTLinModule_ttl_freq_3->setText(QString::number(freq3, 'f', 2)); |
|
|
|
|
|
ui->TTLinModule_ttl_freq_4->setText(QString::number(freq4, 'f', 2)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
SignalType_t source; |
|
|
SignalType_t source; |
|
|