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

@ -784,6 +784,12 @@ void SpectrumAnalyzer::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";
}));
scpi_acq->add(new SCPICommand("SIGid", [=](QStringList params) -> QString {
if (params.size() != 1) {
return "ERROR";