Hallo everyone,
I'm a starter and I am trying to using inside macro editor to write a small script for Demodulation. But I can't find the way to read the value of Syms/Errs. For example I want to read the value Phase Error in Syms/Errs box. But I can't find the proper oders.
Can anyone please help me?
Thanks!
YL
Hi so2liu,
As described in the Agilent.SA.Vsa Namespace, you can read the SummaryNames property of the MeasurementData class. You can use the functions associated with SummaryNames to return the values from the Syms/Errs summary table. The function Summary(String) returns the value of the measurement specified as the string, and SummaryUnit(String) returns the unit (as in dB, mV, etc) of that measurement. The relevant arguments for your trace are found in the string array MeasurementData.SummaryNames within your trace object. The available arguments depend on your particular trace.
I recommend you take a look at the example found at:
%PROGRAMFILES%\Agilent\89600 Software <ReleaseVersion>\89600 VSA Software\
Examples\Macros\ListSummaryTableResults
to learn how to go about creating this macro code. In this example, the line
creates the Trace object currentTrace. After making sure that the summary values exist, the macro loops through the values available from SummaryNames with this code:
If you just want to list all of the values available for your trace, you may decide to simply use this example macro without editing.
Hope this helps.