Browse Source

HVA & HVB read from scen params and set into ui

Arash Aletayeb 5 months ago
parent
commit
ab03393c6c
  1. 2
      developHw.pro.user
  2. 8
      hdf5Scenario/hdf5Scenario.cpp
  3. 1
      include/model/hardware/core/lowLevelApi/TrxBoardUtils/TrxBoardStructures.h
  4. 5
      mainwindow.cpp

2
developHw.pro.user

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2024-10-28T16:04:01. -->
<!-- Written by QtCreator 4.10.0, 2024-10-30T16:49:35. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

8
hdf5Scenario/hdf5Scenario.cpp

@ -980,6 +980,14 @@ void Hdf5::scenarioRead(ScenHardware& scenParams)
/**************** /registerParameters/noiseRejectValue *****************/
datasetBranch<float_t>("/registerParameters/noiseRejectValue", floatArray);
scenParams.hwRegister.noiseRejectValue = static_cast<quint32>(floatArray[0]);
/**************** /registerParameters/hva *****************/
datasetBranch<float_t>("/registerParameters/hva", floatArray);
scenParams.hva = floatArray[0];
/**************** /registerParameters/hvb *****************/
datasetBranch<float_t>("/registerParameters/hvb", floatArray);
scenParams.hvb = floatArray[0];
}
void Hdf5::prbDependParamsRead(ScenPrbDepHardwareParam& prbDepParams)

1
include/model/hardware/core/lowLevelApi/TrxBoardUtils/TrxBoardStructures.h

@ -231,6 +231,7 @@ struct ScenHardware
QVector<quint8> rxBeamFormerNumber;
QVector<float> pulseInterval;
quint8 frameType;
float hva, hvb;
HwRegister hwRegister;
HwSramIndex indexParams;

5
mainwindow.cpp

@ -3093,6 +3093,11 @@ void MainWindow::setScenario(const QString& h5Path)
{
hdf.scanConversionParamsRead(scanConversionParams);
}
double hva = static_cast<double>(scenParams.hva);
double hvb = static_cast<double>(scenParams.hvb);
ui->tb_hvaDacValue->setText(QString::number(hva, 'g', 3));
ui->tb_hvbDacValue->setText(QString::number(hvb, 'g', 3));
}
catch(SonoException& e)
{

Loading…
Cancel
Save