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

            if (obj2 is null)
            {
                return(false);
            }
            return(obj2.UniqueId == UniqueId);
        }
예제 #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);
            }
           
        }