This project has moved. For the latest updates, please go here.

PowerCalculations don't work anymore

Jan 22, 2013 at 2:23 PM

Months ago I was able to create a functional power calculation. However, for a 'long time' I cannot get this adapter to work. The definitions load, are enabled, no rows in the ErrorLog or elsewhere, but no data in the output measurements. Initializing the adapter results in no remarkable entry in the openPDC Console. The following are the database rows for one of my adapters (from views CustomActionAdapterDetail and MeasurementDetail):

NodeID,ID,AdapterName,AssemblyName,TypeName,ConnectionString,LoadOrder,Enabled,NodeName
03461AE1-F3B3-4EF1-8594-C33EF0DD7ED7,8,POWER#BH_KEENEROAD#L345_3015_VS#BH_KEENEROAD#L345_3015_IS,PowerCalculations.dll,PowerCalculations.PowerCalculator,FramesPerSecond=30;LagTime=3;LeadTime=1;OutputMeasurements={PPA:1224;PPA:1225};InputMeasurementKeys={PPA:47;PPA:48;PPA:39;PPA:40};,0,1,Default

CompanyID,CompanyAcronym,CompanyName,SignalID,HistorianID,HistorianAcronym,HistorianConnectionString,PointID,PointTag,AlternateTag,DeviceID,NodeID,DeviceAcronym,DeviceName,FramesPerSecond,DeviceEnabled,ContactList,VendorDeviceID,VendorDeviceName,VendorDeviceDescription,ProtocolID,ProtocolAcronym,ProtocolName,SignalTypeID,PhasorSourceIndex,PhasorLabel,PhasorType,Phase,SignalReference,Adder,Multiplier,Description,Subscribed,Internal,Enabled,EngineeringUnits,Source,SignalAcronym,SignalName,SignalTypeSuffix,Longitude,Latitude,ID
33,NEISO,New England ISO,5DF27221-C3E2-4587-91A1-6E2B1420FCAA,1,PPA,,40,NEISO_BH_KEENEROAD-PA1:IH,NULL,2,03461AE1-F3B3-4EF1-8594-C33EF0DD7ED7,BH_KEENEROAD,Bh_Keeneroad,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,2,1,L345_3015_IS,I,+,BH_KEENEROAD-PA1,0,1,Bh_Keeneroad L345_3015_IS  + Current Phase Angle,0,1,1,Degrees,Phasor,IPHA,Current Phase Angle,PA,-98.600000,37.500000,PPA:40
33,NEISO,New England ISO,C66F9A99-3012-422A-9B6B-7C01EC2BCA57,1,PPA,,1225,POWER#BH_KEENEROAD#L345_3015_VS#BH_KEENEROAD#L345_3015_IS#MVAR,,2,03461AE1-F3B3-4EF1-8594-C33EF0DD7ED7,BH_KEENEROAD,Bh_Keeneroad,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,10,0,NULL,NULL,NULL,POWER#BH_KEENEROAD#L345_3015_VS#BH_KEENEROAD#L345_3015_IS#MVAR,0,1,MVAR Measurement for Voltage Device: BH_KEENEROAD Voltage Phasor: L345_3015_VS Current Device: BH_KEENEROAD Current Phasor: L345_3015_IS,0,1,1,,PMU,CALC,Calculated Value,CV,-98.600000,37.500000,PPA:1225
33,NEISO,New England ISO,26795432-B96D-4E52-81D1-94BED7663929,1,PPA,,48,NEISO_BH_KEENEROAD-PA5:VH,NULL,2,03461AE1-F3B3-4EF1-8594-C33EF0DD7ED7,BH_KEENEROAD,Bh_Keeneroad,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,4,5,L345_3015_VS,V,+,BH_KEENEROAD-PA5,0,1,Bh_Keeneroad L345_3015_VS  + Voltage Phase Angle,0,1,1,Degrees,Phasor,VPHA,Voltage Phase Angle,PA,-98.600000,37.500000,PPA:48
33,NEISO,New England ISO,919EE362-8AC7-449A-A84F-982206536AEF,1,PPA,,47,NEISO_BH_KEENEROAD-PM5:V,NULL,2,03461AE1-F3B3-4EF1-8594-C33EF0DD7ED7,BH_KEENEROAD,Bh_Keeneroad,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,3,5,L345_3015_VS,V,+,BH_KEENEROAD-PM5,0,1,Bh_Keeneroad L345_3015_VS  + Voltage Magnitude,0,1,1,Volts,Phasor,VPHM,Voltage Magnitude,PM,-98.600000,37.500000,PPA:47
33,NEISO,New England ISO,3C20F916-2390-421D-9AA5-F89E7D17A4C3,1,PPA,,39,NEISO_BH_KEENEROAD-PM1:I,NULL,2,03461AE1-F3B3-4EF1-8594-C33EF0DD7ED7,BH_KEENEROAD,Bh_Keeneroad,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,1,1,L345_3015_IS,I,+,BH_KEENEROAD-PM1,0,1,Bh_Keeneroad L345_3015_IS  + Current Magnitude,0,1,1,Amps,Phasor,IPHM,Current Magnitude,PM,-98.600000,37.500000,PPA:39
33,NEISO,New England ISO,3447C786-88FA-45AF-BCA0-FE45E92E4526,1,PPA,,1224,POWER#BH_KEENEROAD#L345_3015_VS#BH_KEENEROAD#L345_3015_IS#MW,,2,03461AE1-F3B3-4EF1-8594-C33EF0DD7ED7,BH_KEENEROAD,Bh_Keeneroad,30,1,NULL,NULL,NULL,NULL,1,IeeeC37_118V1,IEEE C37.118-2005,10,0,NULL,NULL,NULL,POWER#BH_KEENEROAD#L345_3015_VS#BH_KEENEROAD#L345_3015_IS#MW,0,1,MW Measurement for Voltage Device: BH_KEENEROAD Voltage Phasor: L345_3015_VS Current Device: BH_KEENEROAD Current Phasor: L345_3015_IS,0,1,1,,PMU,CALC,Calculated Value,CV,-98.600000,37.500000,PPA:1224

and something called 'Runtime':
ID,SourceID,SourceTable
1,1,Historian
2,2,Historian
3,1,CustomActionAdapter
4,2,CustomActionAdapter
5,3,CustomActionAdapter
6,1,CustomInputAdapter
7,1,Device
8,2,Device
9,3,Device
10,4,Device
11,5,Device
12,6,Device
13,7,Device
14,8,Device
15,9,Device
16,10,Device
17,11,Device
18,12,Device
19,13,Device
20,14,Device
21,15,Device
22,16,Device
23,17,Device
24,18,Device
25,19,Device
26,20,Device
27,21,Device
28,22,Device
29,23,Device
30,24,Device
31,25,Device
32,26,Device
33,27,Device
34,28,Device
35,29,Device
36,30,Device
37,31,Device
38,32,Device
39,33,Device
40,34,Device
41,35,Device
42,36,Device
43,37,Device
44,38,Device
45,39,Device
46,40,Device
47,41,Device
48,42,Device
49,43,Device
50,44,Device
51,45,Device
52,46,Device
53,47,Device
54,48,Device
55,49,Device
56,50,Device
57,51,Device
58,52,Device
59,53,Device
60,54,Device
61,55,Device
62,56,Device
63,57,Device
64,58,Device
65,59,Device
66,60,Device
67,61,Device
68,62,Device
69,63,Device
70,64,Device
71,65,Device
72,66,Device
73,67,Device
74,68,Device
75,69,Device
76,4,CustomActionAdapter
96,24,CustomActionAdapter
97,25,CustomActionAdapter
98,26,CustomActionAdapter
99,27,CustomActionAdapter
100,28,CustomActionAdapter
101,29,CustomActionAdapter
102,30,CustomActionAdapter
103,31,CustomActionAdapter
104,32,CustomActionAdapter
105,33,CustomActionAdapter
106,34,CustomActionAdapter
107,35,CustomActionAdapter
108,36,CustomActionAdapter
109,37,CustomActionAdapter
110,38,CustomActionAdapter
Jan 22, 2013 at 8:45 PM

I have been running both the latest Release Candidate for openPDC 1.5, and lately the nightly build for 2013-01-16. The results are the same with both systems; that is, no results!

Jan 28, 2013 at 4:50 PM

Power Calculations occasionally work, but they never appear in the Historian Viewer, nor do they appear in the openPDC Manager's 'Monitoring->Device Measurements' display. I can get the values from this historian current value service (http://localhost:6152/historian/timeseriesdata/read/current/1222-12247/xml). The values were generated several days ago or more, although nothing in the openPDC has been changed (power adapter and measurement defintions included).

Bonus question: is it possible to request statistics measurements from the historian service? I cannot seem to request them.

 

2013-01-28 17:44:43,434 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_KEENEROAD#L345_3001_VS#BH_KEENEROAD#L345_3001_IS#MW ID: PPA:1222 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -67.60681 Quality: Good
2013-01-28 17:44:43,434 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_KEENEROAD#L345_3001_VS#BH_KEENEROAD#L345_3001_IS#MVAR ID: PPA:1223 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 14.0661793 Quality: Good
2013-01-28 17:44:43,434 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_KEENEROAD#L345_3015_VS#BH_KEENEROAD#L345_3015_IS#MW ID: PPA:1224 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: 0.8204139 Quality: Good
2013-01-28 17:44:43,434 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_KEENEROAD#L345_3015_VS#BH_KEENEROAD#L345_3015_IS#MVAR ID: PPA:1225 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 6.21963072 Quality: Good
2013-01-28 17:44:43,434 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_KEENEROAD#L345_396_VS#BH_KEENEROAD#L345_396_IS#MW ID: PPA:1226 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: 107.721176 Quality: Good
2013-01-28 17:44:43,435 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_KEENEROAD#L345_396_VS#BH_KEENEROAD#L345_396_IS#MVAR ID: PPA:1227 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 6.6712513 Quality: Good
2013-01-28 17:44:43,435 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_KEENEROAD#T345_T1_VS#BH_KEENEROAD#T345_T1_IS#MW ID: PPA:1228 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -32.3760033 Quality: Good
2013-01-28 17:44:43,435 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_KEENEROAD#T345_T1_VS#BH_KEENEROAD#T345_T1_IS#MVAR ID: PPA:1229 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 20.4522076 Quality: Good
2013-01-28 17:44:43,435 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#L345_388_VS#BH_ORRINGTON_A#L345_388_IS#MW ID: PPA:1230 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -0.0509917624 Quality: Good
2013-01-28 17:44:43,435 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#L345_388_VS#BH_ORRINGTON_A#L345_388_IS#MVAR ID: PPA:1231 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 0.0534988344 Quality: Good
2013-01-28 17:44:43,435 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#L345_396_VS#BH_ORRINGTON_A#L345_396_IS#MW ID: PPA:1232 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -108.72805 Quality: Good
2013-01-28 17:44:43,436 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#L345_396_VS#BH_ORRINGTON_A#L345_396_IS#MVAR ID: PPA:1233 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 20.8448048 Quality: Good
2013-01-28 17:44:43,436 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#B115_BUS1_VS#BH_ORRINGTON_A#T345_T1_IS#MW ID: PPA:1234 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -15.8414383 Quality: Good
2013-01-28 17:44:43,436 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#B115_BUS1_VS#BH_ORRINGTON_A#T345_T1_IS#MVAR ID: PPA:1235 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 18.8276119 Quality: Good
2013-01-28 17:44:43,436 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#B345_BUS3_VS#BH_ORRINGTON_A#T345_T2_IS#MW ID: PPA:1236 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -41.4666252 Quality: Good
2013-01-28 17:44:43,436 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_ORRINGTON_A#B345_BUS3_VS#BH_ORRINGTON_A#T345_T2_IS#MVAR ID: PPA:1237 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 32.5532074 Quality: Good
2013-01-28 17:44:43,436 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_ORRINGTON_B#B115_B2_VS#BH_ORRINGTON_B#L115_205_IS#MW ID: PPA:1238 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: 4.2865715 Quality: Good
2013-01-28 17:44:43,437 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_ORRINGTON_B#B115_B2_VS#BH_ORRINGTON_B#L115_205_IS#MVAR ID: PPA:1239 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 7.11155558 Quality: Good
2013-01-28 17:44:43,437 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_ORRINGTON_B#B115_B2_VS#BH_ORRINGTON_B#L115_65_IS#MW ID: PPA:1240 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: 2.010688 Quality: Good
2013-01-28 17:44:43,437 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_ORRINGTON_B#B115_B2_VS#BH_ORRINGTON_B#L115_65_IS#MVAR ID: PPA:1241 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 7.212051 Quality: Good
2013-01-28 17:44:43,437 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#BH_ORRINGTON_B#B345_B4_VS#BH_ORRINGTON_B#L345_390_IS#MW ID: PPA:1242 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -107.592995 Quality: Good
2013-01-28 17:44:43,437 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#BH_ORRINGTON_B#B345_B4_VS#BH_ORRINGTON_B#L345_390_IS#MVAR ID: PPA:1243 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 39.9708 Quality: Good
2013-01-28 17:44:43,438 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#VE_VERNON_1A#B345_BUS1_VA#VE_VERNON_1A#L345_3320_IP#MW ID: PPA:1244 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: 17.5019455 Quality: Good
2013-01-28 17:44:43,438 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#VE_VERNON_1A#B345_BUS1_VA#VE_VERNON_1A#L345_3320_IP#MVAR ID: PPA:1245 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 22.121582 Quality: Good
2013-01-28 17:44:43,438 DEBUG (Set:60) - Mw Calculation measurement data: PointTag: POWER#VE_VERNON_2A#L345_3340_VP#VE_VERNON_2A#L345_3340_IP#MW ID: PPA:1246 CalcType: Mw ReceivedTime: 1/26/2013 7:24:53 AM Value: -156.648758 Quality: Good
2013-01-28 17:44:43,438 DEBUG (Set:64) - Mvar Calculation measurement data: PointTag: POWER#VE_VERNON_2A#L345_3340_VP#VE_VERNON_2A#L345_3340_IP#MVAR ID: PPA:1247 CalcType: Mvar ReceivedTime: 1/26/2013 7:24:53 AM Value: 3.28136444 Quality: Good

Jan 31, 2013 at 3:44 PM
I am running the latest nightly build (downloaded morning of 2013-01-31), and am now getting power values from this historian, but the quality values are all 'DeletedFromProcessing'. What does that mean?
Coordinator
Feb 1, 2013 at 6:53 PM
Glad to hear your calculated measurements are working again!

That only means that the calculated values did not make into one or more of your concentrator output streams. Are you sending these values into another calculation and/or IEEE C37.118 output stream?

If so, you may need to increase the lag time.

Otherwise you can safely ignore this status...

Thanks!
Ritchie
Feb 1, 2013 at 8:34 PM
I increased LagTime to 6 seconds, even though I don't plan on streaming the calculations - their only need is for comparisons with PI input data, followed by possible alarms. But with the increase in lag time, I am now getting good data for the Power Calculations. I need to study the meaning of Lag Time in this environment. Thanks!!!