Legacy script with no expression: oModule.CalculatorWrite("C:\test.reg", ["Solution:=", "Setup1 : LastAdaptive"], ["Freq:=", "1GHz", "Phase:=", "0deg"] ) Example with algebraic expression: oModule.CalculatorWrite("C:\test.reg", [ "NAME:Write", [ "NAME:Setup", "Solution:=" , "setup1 : LastAdaptive" ], [ "NAME:Algebraic", "Name:=" , [""], "Algebraic:=" , "Mean( Volume(pri), Mag_H )" ] ], [ "Freq:=" , "60Hz", "Ihv:=" , "(833.3*1.414*232) A", "Ilv:=" , "-Ihv/1404", "Phase:=" , "0deg", "height:=" , "1mm" ]) Example with stack expression: oModule.CalculatorWrite("C:\test.reg", [ "NAME:Write", [ "NAME:Setup", "Solution:=" , "setup1 : LastAdaptive" ], [ "NAME:Expression", "Name:=" , [""], "Expression:=" , ["Mean(Volume(sec_1_1), Mag_H)"], "NameOfExpression:=" , ["Mag_H"], "EnterVolume:=" , ["sec_1_1"], "Operation:=" , ["VolumeValue"], "Operation:=" , ["Mean"] ], [ "NAME:Context", "Freq:=" , "60Hz", "Ihv:=" , "(833.3*1.414*232) A", "Ilv:=" , "-Ihv/1404", "Phase:=" , "0deg", "height:=" , "1mm" ] ], "Fields")
|