Inheritance: openHistorian.Data.Types.TypeBase, ISignalCalculation
Beispiel #1
0
        public override bool Equals(object obj)
        {
            MetadataBase obj2 = obj as MetadataBase;

            if (obj2 is null)
            {
                return(false);
            }
            return(obj2.UniqueId == UniqueId);
        }
Beispiel #2
0
        public void CreateCalculatedSignals(MetadataBase angleReference)
        {
            if (VoltageMagnitude != null)
            {
                SignalScaling calcPu = new SignalScaling(Math.Sqrt(3) / ExtraData.NominalVoltage, VoltageMagnitude);
                calcPu.GetPoints(out VoltageMagnitudePu);
            }

            if (VoltageAngle != null && CurrentAngle != null && CurrentMagnitude != null && VoltageMagnitude != null)
            {
                SinglePhasorPowerSignals calc = new SinglePhasorPowerSignals(VoltageMagnitude, VoltageAngle, CurrentMagnitude, CurrentAngle);
                calc.GetPoints(out Watt, out PowerFactor, out VoltAmpre, out VoltAmpreReactive);
            }

            if (VoltageAngle != null)
            {
                SignalAngleDifference calcRef = new SignalAngleDifference(VoltageAngle, angleReference);
                calcRef.GetPoints(out VoltageAngleReference);
            }
        }
        public void CreateCalculatedSignals(MetadataBase angleReference)
        {
            if (VoltageMagnitude != null)
            {
                SignalScaling calcPu = new SignalScaling(Math.Sqrt(3) / ExtraData.NominalVoltage, VoltageMagnitude);
                calcPu.GetPoints(out VoltageMagnitudePu);
            }

            if (VoltageAngle != null && CurrentAngle != null && CurrentMagnitude != null && VoltageMagnitude != null)
            {
                SinglePhasorPowerSignals calc = new SinglePhasorPowerSignals(VoltageMagnitude, VoltageAngle, CurrentMagnitude, CurrentAngle);
                calc.GetPoints(out Watt, out PowerFactor, out VoltAmpre, out VoltAmpreReactive);
            }

            if (VoltageAngle != null)
            {
                SignalAngleDifference calcRef = new SignalAngleDifference(VoltageAngle, angleReference);
                calcRef.GetPoints(out VoltageAngleReference);
            }
           
        }