AnsweredAssumed Answered

How to delete a trace

Question asked by ivan on Nov 28, 2007
Latest reply on May 20, 2009 by odanzy
Hi everybody!
I have the following question: I am programming the PNA 8363 through Matlab, and I need to know which instruction to use in order to delete an S parameter. I am using the following code in order to get a sweep from the PNA:

na=actxserver('AgilentPNA835x.Application');
%Get ID String
id=na.IDString;

%Create S11
na.CreateSParameterEx(1,1,1,1);
meas=na.ActiveMeasurement;

%Create a S21 measurement and get handle
na.CreateSParameterEx(1,2,1,1);
meas2=na.ActiveMeasurement;

%Take a single sweep
chan.Single(true);

data=meas.getData(1,1);..........................

What I need is to delete every trace on the PNA before launching this code, which creates new ones. I've just checked in the manual, but I didn't find the answer... Could someone please help me? thanks a lot!  

Outcomes