Collecting average currents over long window

The UI is great for isolating specific events and optimizing them. Many of the devices I build have long “windows” due to periodic events. It’s important for me to conveniently compute the average current over such a window. Short of using the api is there a way to do this? I don’t really want to collect a huge file when all I want is the average

Hi @geoffrey,

If you want a single number from live-streaming data, then you can use the multimeter widget. Press the Accrue button to start:

The current will be the average current since you first pressed Accrue.

Alternatively, you can dramatically downsample and record to JLS. For many systems, 100 Hz or 1 kHz is enough for you to see events while significantly reducing storage requirements.

Does either approach work for you?

I think the “accrue” method will work well.

It works pretty well, I did notice that resetting “accrue” doesn’t reset Joules or Charge

Right. Today, you use Tools → Clear Accumulators to reset the Charge and Energy accumulators.

With the Multimeter Accrue feature, there are two right answers. Do not affect accumulators or set accumulators to zero at the start of an Accrue. A long time ago, I implemented the former because it was easier, and no one has said anything since.

Would having an option to zero accumulators at the start of an accrue be useful to you? At the end of the accrue, it would go back to the “normal”, unaffected accumulator values. The downside is if anyone issues a Tools → Clear Accumulators during Accrue, the accumulator values will be completely wrong.