diff --git a/Software/PC_Application/LibreVNA-GUI/SpectrumAnalyzer/spectrumanalyzer.cpp b/Software/PC_Application/LibreVNA-GUI/SpectrumAnalyzer/spectrumanalyzer.cpp index 6b673e1..d0d21f2 100644 --- a/Software/PC_Application/LibreVNA-GUI/SpectrumAnalyzer/spectrumanalyzer.cpp +++ b/Software/PC_Application/LibreVNA-GUI/SpectrumAnalyzer/spectrumanalyzer.cpp @@ -963,6 +963,14 @@ void SpectrumAnalyzer::SetupSCPI() }, nullptr)); auto scpi_acq = new SCPINode("ACQuisition"); SCPINode::add(scpi_acq); + scpi_acq->add(new SCPICommand("RUN", [=](QStringList) -> QString { + Run(); + return SCPI::getResultName(SCPI::Result::Empty); + }, nullptr)); + scpi_acq->add(new SCPICommand("STOP", [=](QStringList) -> QString { + Stop(); + return SCPI::getResultName(SCPI::Result::Empty); + }, nullptr)); scpi_acq->add(new SCPICommand("RBW", [=](QStringList params) -> QString { unsigned long long newval; if(!SCPI::paramToULongLong(params, 0, newval)) { diff --git a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp index 6142979..45c9ffe 100644 --- a/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp +++ b/Software/PC_Application/LibreVNA-GUI/VNA/vna.cpp @@ -1418,6 +1418,14 @@ void VNA::SetupSCPI() })); auto scpi_acq = new SCPINode("ACQuisition"); SCPINode::add(scpi_acq); + scpi_acq->add(new SCPICommand("RUN", [=](QStringList) -> QString { + Run(); + return SCPI::getResultName(SCPI::Result::Empty); + }, nullptr)); + scpi_acq->add(new SCPICommand("STOP", [=](QStringList) -> QString { + Stop(); + return SCPI::getResultName(SCPI::Result::Empty); + }, nullptr)); scpi_acq->add(new SCPICommand("IFBW", [=](QStringList params) -> QString { unsigned long long newval; if(!SCPI::paramToULongLong(params, 0, newval)) {