WriteF11Analysis Function

Writes a SIMetrix analysis line to the F11 window. Can also enable or disable an existing analysis line

Arguments

Number Type Compulsory Default Description
1 String array Yes New analysis line with optional disable/enable
2 real No -1 Schematic ID

Argument 1

Two element string array. First element is the new analysis line. This will replace any existing line describing the same analysis type (.TRAN, .AC etc).

Second element is optional. If set to 'enable' the analysis line will be enabled, if set to disable, the line will be disabled.

If the first element is the analyis type alone with no parameters (e.g. '.TRAN'), the line's text will remain unchanged but will be disabled or enabled according to the second element.

In the F11 window itself, analysis lines are disabled by prefixing a comment character - '*'.

Argument 2

Schematic ID as returned by OpenSchematic . This makes it possible to apply this function to any schematic and not just the one that is currently displayed. See OpenSchematic for more details.

Returns

Return type: Boolean

Returns true (1.0) if successful, false (0.0) if unsucessful

See Also