diff --git a/Documentation/UserManual/ProgrammingGuide.pdf b/Documentation/UserManual/ProgrammingGuide.pdf index f4102778..0063d713 100644 Binary files a/Documentation/UserManual/ProgrammingGuide.pdf and b/Documentation/UserManual/ProgrammingGuide.pdf differ diff --git a/Documentation/UserManual/ProgrammingGuide.tex b/Documentation/UserManual/ProgrammingGuide.tex index 5e727de4..59be0371 100644 --- a/Documentation/UserManual/ProgrammingGuide.tex +++ b/Documentation/UserManual/ProgrammingGuide.tex @@ -502,7 +502,7 @@ \subsubsection{VNA:TRACe:DATA} [5.33344e+9,0.13223,-0.00780554], [6e+9,-0.0314859,-0.246024] \end{example} -\vspace{-0.6cm} +\vspace{-0.3cm} \begin{center} \footnotesize{Note: actual response will not include newlines between data points, only at the end} \end{center} @@ -557,6 +557,9 @@ \subsubsection{VNA:TRACe:MINAmplitude} \subsubsection{VNA:TRACe:NEW} \event{Creates a new trace}{VNA:TRACe:NEW}{} +\subsubsection{VNA:TRACe:DELete} +\event{Deletes a trace}{VNA:TRACe:DELete}{, either by name or by index} + \subsubsection{VNA:TRACe:RENAME} \event{Changes the name of a trace}{VNA:TRACe:RENAME}{, either by name or by index\\} @@ -835,6 +838,9 @@ \subsubsection{SA:TRACe:MINAmplitude} \subsubsection{SA:TRACe:NEW} \event{Creates a new trace}{SA:TRACe:NEW}{} +\subsubsection{SA:TRACe:DELete} +\event{Deletes a trace}{VNA:TRACe:DELete}{, either by name or by index} + \subsubsection{SA:TRACe:RENAME} \event{Changes the name of a trace}{SA:TRACe:RENAME}{, either by name or by index\\} diff --git a/Software/PC_Application/LibreVNA-GUI/Traces/tracewidget.cpp b/Software/PC_Application/LibreVNA-GUI/Traces/tracewidget.cpp index 921212c1..2ec14b16 100644 --- a/Software/PC_Application/LibreVNA-GUI/Traces/tracewidget.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Traces/tracewidget.cpp @@ -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) {