SetupPWR

 Performs power calculations on matched arrays of Voltage and Current channels. Results are available via the GetPWR* functions. (See also the SetFundMethod function.)

UI Access NA
Parameters
Name Type Description
<VoltageNames> Variant A variant array of existing channel names for the input voltages. Must be the same length as CurrentNames, and each voltage channel must be compatible with the base channel.
<CurrentNames> Variant A variant array of existing channel names for the input currents. Must be the same length as VoltageNames, and each current channel must be compatible with the base channel.
<FundFreq> Double The frequency, in Hz, for calculating the fundamental apparent power, real power, and reactive power according to the method specified by calling SetFundMethod. Set to 0 to skip these calculations.
Return Value

Boolean

Returns 1 if the calculation is successful; otherwise, it returns 0.

 

VB Syntax SetupPWR <VoltageNames>, <CurrentNames>, <FundFreq>
VB Example

See the examples in C:\Program Files\...[Ansys Installation]...\Examples\Twin Builder\Applications\Scripting\Ex6_MathMod