new SCPI command: delete traces

This commit is contained in:
Jan Käberich 2024-12-07 15:54:35 +01:00
parent 8be82589c5
commit a5b9195ac9
3 changed files with 15 additions and 1 deletions

View file

@ -512,6 +512,14 @@ void TraceWidget::SetupSCPI()
model.addTrace(t);
return SCPI::getResultName(SCPI::Result::Empty);
}, nullptr));
add(new SCPICommand("DELete", [=](QStringList params) -> QString {
auto t = findTrace(params);
if(!t) {
return SCPI::getResultName(SCPI::Result::Error);
}
model.removeTrace(t);
return SCPI::getResultName(SCPI::Result::Empty);
}, nullptr));
add(new SCPICommand("RENAME", [=](QStringList params) -> QString {
auto t = findTrace(params);
if(!t) {