AnsweredAssumed Answered

Equation editor in COM?

Question asked by dgun on Dec 3, 2007
Latest reply on Dec 3, 2007 by dgun
I tried to use the equation editor in COM, but it doesn't seem to be there (even though it's mentioned in the help file). Please show an example of how to use it.

As a workaround, I tried this:
1: myApp.Measurements.Add(3, "A/R1", 1, 3);
2: myTrace = (AgilentPNA835x.Measurement)myApp.Measurements.Item(1);
3: myTrace.Activate();
4: myApp.ScpiStringParser.Parse("CALC3:EQU:TEXT 'mysillyequ=sqrt(AR1_1)'");
5: myApp.ScpiStringParser.Parse("CALC3:EQU:STAT 1");


but I get an error: "-224, Illegal Parameter Value" at line 4.

If I use SCPI to create the trace, it works fine:

DISP:WIND:STAT 1
CALC:PAR:DEF:EXT 'tmp1','A/R1,1'
CALC:PAR:SEL 'tmp1'
DISP:WIND:TRAC1:FEED 'tmp1'
CALC3:EQU:TEXT 'mysillyequ=sqrt(AR1_1)'
CALC3:EQU:STAT 1

Outcomes