What can produce infinity ‘inf’ in C?
We have the 3CT example here:
. https://github.com/openenergymonitor/STM32/tree/master/Emon3CT_CB
put together by Trys, based on the txShield example.
The output of the serial terminal is here:
stm32_3ct1vt_log.txt.zip (43.1 KB)
There are a number of these 0 outputs. Searching the file for ‘inf’ also yields these problem lines.
V0:0.00,I0:0.000,RP0:-0.2,AP0:0.0,PF0:-inf,C0:-1557388913,millis:4735
V1:0.00,I1:0.000,RP1:0.1,AP1:0.0,PF1:inf,C1:-1557388913,millis:4743
V2:241.42,I2:0.073,RP2:0.2,AP2:17.7,PF2:0.009,C2:-1557388913,millis:4750
The zeros only ever occur in either the first or middle line, never the 3rd. There seems to be a patterns to the an amount of error between I0, I1 and I3.
The negative counter is also strange.
My day could be getting to the bottom of this one I think.