As i capture 200 samples for my True-RMS current measurement, the maximum value for each sum should be 200*1023*1023=209305800 which is twenty times below 2^32 - 1 (4294967295) which is the limit for an unsinged 32bit integer value.
Anyhow, the energy meter went beserk: The E_total counter quickly jumped into cosmic regions:

I still dont now what exactly caused the problem, i guess the snprintf routine i use to output the meter readings when polled by my monitoring server is buggy. Anyhow: the meter is back online and running again.
Keine Kommentare:
Kommentar veröffentlichen