ScrAppendSweep

Defines a frequency sweep with the specified number of frequencies for the specified simulation type.
UI Command:   From any simulation sweep setup tab, add a frequency sweep with a Linear or By Decade distribution.
Syntax:   obj.ScrAppendSweep(<simType>, <minimumFrequency>, <maximumFrequency>, <numPts>, <isLog>)
Parameters:  

BSTR simType ("ac", "ff", "nf", "syz", "psi_syz", "psi_ac", or "hfss_syz")

DOUBLE minimumFrequency

DOUBLE maximumFrequency

INT numPts (number of frequencies in the frequency distribution)

BOOL isLog (True for By Decade distribution, False for Linear distribution)

Return Value:  

BOOL

  • 0 – Failure
  • 1 – Success
VB Example:  

outcome = obj.ScrAppendSweep("syz", 5000000.0, 5000000000.0, 4, TRUE)

This creates a By Decade frequency sweep from 5MHz to 5GHz.

IPY Example:  

oDoc.ScrAppendSweep('syz',5000000.0,5000000000.0,4,True)

This creates a By Decade frequency sweep from 5MHz to 5GHz