Power
The power settings.
Example
app = cf.GetApplication() project = app:NewProject() -- The power object is always there, obtain a handle power = project.SolutionConfigurations[1].Power -- Set the power scale setting power.ScaleSettings = cf.Enums.PowerScaleSettingsEnum.NoPowerScaling
Usage locations (object properties)
The following objects have properties using the Power object:
Property List
- DecoupleSourcesEnabled
- The option to decouple all sources when calculating power. (Read/Write boolean)
- ScaleSettings
- The scale settings specified by the PowerScaleSettingsEnum, e.g. NoPowerScaling, TotalSourcePower, etc. (Read/Write PowerScaleSettingsEnum)
- SourcePower
- The source power (Watt). (Read/Write Expression)
- Type
- The object type string. (Read only string)
- Z0Imaginary
- The imaginary part of the characteristic impedance (Z0). (Read/Write Expression)
- Z0Real
- The real part of the characteristic impedance (Z0). (Read/Write Expression)
Method List
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
- SetProperties (properties table)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Property Details
- DecoupleSourcesEnabled
- The option to decouple all sources when calculating power.
- Type
- boolean
- Access
- Read/Write
- ScaleSettings
- The scale settings specified by the PowerScaleSettingsEnum, e.g. NoPowerScaling, TotalSourcePower, etc.
- Type
- PowerScaleSettingsEnum
- Access
- Read/Write
- SourcePower
- The source power (Watt).
- Type
- Expression
- Access
- Read/Write
- Type
- The object type string.
- Type
- string
- Access
- Read only
- Z0Imaginary
- The imaginary part of the characteristic impedance (Z0).
- Type
- Expression
- Access
- Read/Write
- Z0Real
- The real part of the characteristic impedance (Z0).
- Type
- Expression
- Access
- Read/Write
Method Details
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
- Return
- table
- A properties table.
- SetProperties (properties table)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
- Input Parameters
- properties(table)
- A table of properties defining the new state of the object.