CalculatorWrite

Writes contents of top register to file.

UI Access Click Write... in the Fields Calculator window.
Parameters
Name Type Description
<OutputFilePath> String Path to and including name of output register file.
<SoluNameArray> Array Array of strings containing solution names.
<Expression> Array Defines an expression to be solved in the calculator. It can be an algebraic or stacked(default) expression; the Algebraic option requires a beta feature; see Algebraic option. Note that for legacy scripts, this parameter is optional because the expression may already exist.
<VarArray> Array Array of variable names, value pairs.
Return Value None

 

Python Syntax CalculatorWrite(<OutputFilePath>, <SoluNameArray>, <Expression> , <VarArray>)
Python Example

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")