Additional SCPI commands: checking for end of sweep

This commit is contained in:
Jan Käberich 2021-06-11 18:53:31 +02:00
parent 973862588b
commit cf401fcb01
5 changed files with 51 additions and 3 deletions

View file

@ -968,6 +968,12 @@ void VNA::SetupSCPI()
}, [=](QStringList) -> QString {
return QString::number(averages);
}));
scpi_acq->add(new SCPICommand("AVGLEVel", nullptr, [=](QStringList) -> QString {
return QString::number(average.getLevel());
}));
scpi_acq->add(new SCPICommand("FINished", nullptr, [=](QStringList) -> QString {
return average.getLevel() == averages ? "TRUE" : "FALSE";
}));
auto scpi_stim = new SCPINode("STIMulus");
SCPINode::add(scpi_stim);
scpi_stim->add(new SCPICommand("LVL", [=](QStringList params) -> QString {