Home

Welcome! Log in or Join us

Forums The Open Grid Summed channels/streams derived by adding

Subscribe to Summed channels/streams derived by adding 2 posts, 2 voices , Tagged: adding totals streams

Reply to topic
 

 
Dargs_medium
Sep 19, 2012 1:59am
46 posts

Hi Sam,

Started looking at the p_a W & e_a kWh streams since adding a 2nd sensor/channel (Lighting Power), and they don't seem to be adding up.

eg, yesterday the added stream showed 3.7 kWh for the day, but the 2 channels were 2.68 kWh + 0.14 kWh (Expecting the total to be 2.82kWh).


Looking at the the arduino code (v18), is it possible this line I need to change?


define MATHABLE_CHANNELS 4 // this setting tells how many channels will be summed together.


As I'm only trying to add 2 channels together, maybe some random numbers are getting into the maths? Should I change this value to 2? (3rd channel is a spare atm)

(site 9#########2 (node dargs ? (p_1 38.18)(e_1 0.04)(p_2 0.00)(e_2 0.00)(p_3 0.00)(e_3 0.00)(p_a 38.22)(e_a 0.05)))
Looking at the Trace, I can see the Sum isn't quite right, the Stream1 = 38.18 W, Stream2 = 0, total = 38.22


Any ideas?

Thanks
dargs


 
Samotage_300_medium
Sep 19, 2012 5:09am
555 posts

Hey Simon,

Im suspecting a rounding error goin on inside the arduino codes...  It pops up adding the minimals on _2 and _3 Try hunting for that.

Sam, @samotage

Log in to reply to this topic

Forums The Open Grid Summed channels/streams derived by adding

copyright © 2008 Smart Energy Groups pty ltd