AnsweredAssumed Answered

Matlab Programming VSA Software Trace Data Name Main Time

Question asked by svia on Dec 4, 2007
Latest reply on Dec 26, 2007 by DaveHornbeck
Hello

I'm trying to control the VSA Software using Matlab in order to measure the magnitude of a Spectrum, and the phase when the x variable is time.

My question is, how can I set the Trace in order to have, for instance, Main Time.

Using  the help, what I understood is:
Trace-> Data Name Property-> Mean Time

I wrote in Matlab the following script :

    oTraces=get(oDisp,'Traces');
    oTrace1=get(oTraces,'Item',1);
    oTrace2=get(oTraces,'Item',2);
    enumVsaTrc1Format=0;
    enumVsaTrc2Format=4;
    set(oTrace1,'Format',enumVsaTrc1Format);
    set(oTrace1,'DataName','Spectrum');
    set(oTrace2,'Format',enumVsaTrc2Format);
     set(oTrace2,'DataName','MainTime');

Matlab returns an error that says
Source:Data Name
Description: Unknown Trace Data

I'd be grateful if you could tell me how can I show two traces, one showing the Spectrum, the other Main Time.

Thanks

Edited by: tabbott on Mar 21, 2012 3:46 PM  

Outcomes