mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 23:43:42 +00:00
Fix visibility of information boxes in certain situations by introducing a blocking option
This commit is contained in:
parent
7d84e0fc68
commit
0efd31e8ce
5 changed files with 27 additions and 11 deletions
|
|
@ -400,14 +400,14 @@ std::vector<TwoThru::Point> TwoThru::calculateErrorBoxes(std::vector<Protocol::D
|
|||
vector<Point> ret;
|
||||
|
||||
if(data_2xthru.size() != data_fix_dut_fix.size()) {
|
||||
InformationBox::ShowMessage("Unable to calculate", "The DUT and 2xthru measurements do not have the same amount of points, calculation not possible");
|
||||
InformationBox::ShowMessageBlocking("Unable to calculate", "The DUT and 2xthru measurements do not have the same amount of points, calculation not possible");
|
||||
return ret;
|
||||
}
|
||||
|
||||
// check if frequencies are the same (measurements must be taken with identical span settings)
|
||||
for(unsigned int i=0;i<data_2xthru.size();i++) {
|
||||
if(abs((long int)data_2xthru[i].frequency - (long int)data_fix_dut_fix[i].frequency) > (double) data_2xthru[i].frequency / 1e9) {
|
||||
InformationBox::ShowMessage("Unable to calculate", "The DUT and 2xthru measurements do not have identical frequencies for all points, calculation not possible");
|
||||
InformationBox::ShowMessageBlocking("Unable to calculate", "The DUT and 2xthru measurements do not have identical frequencies for all points, calculation not possible");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue