|   | PhasorValueBaseCalculateVars Method | 
        
        
            Calculates vars (total volt-amperes of reactive power) from imaginary and real components of a voltage and current phasor.
            
        
        Namespace: GSF.PhasorProtocolsAssembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.257-beta
 Syntax
SyntaxGSF.PhasorProtocols.PhasorValueBase.CalculateVars = function(voltage, current);
Parameters
- voltage  IPhasorValue
- Voltage phasor.
- current  IPhasorValue
- Current phasor.
Return Value
PowerCalculated vars (total volt-amperes of reactive power) from imaginary and real components of specified 
voltage and 
current phasors.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentNullException | voltage and current must not be null. | 
 Remarks
Remarks
            Although the 
Power units class technically represents watts (i.e., real power) and vars (i.e., imaginary power)
            are properly expressed in volt-amperes reactive (VAr), the calculated result is still a representation of power and therefore
            the 
Power units class is used to express the return value leaving the consumer to properly apply the needed
            engineering units for display purposes.
            
 See Also
See Also