04-26-2023 03:10 AM
j'ai fait mesurer la tension des piles avec module ..... aprés la mesure comment j'affiche dans l'interface le nombre des pilles bonne et le nombres des piles mauvaises
04-26-2023 04:17 AM
Hi chedise,
@chedise19 wrote:
I had the battery voltage measured with the module ..... after the measurement how do I display in the interface the number of good batteries and the number of bad batteries
You collect your statistics data (good/bad) and then you display those numbers in indicators…
The question is: what have you tried and where are you stuck?
04-26-2023 09:40 AM
If the only outcome is "good" or "bad", and you obviously know the total number N, you only need to know good or bad, then calculate the other. Simple integer math! All you need is two numeric indicators. Further analysis can give you percentages, for example.
Statistics typically involves a bit more. For example if the "badness" parameter is a floating point number from 0 to 1, and everything above 0.8 is bad, you could draw a histogram with two differently colored areas.