jetperch / pyjoulescope_ui

Joulescope graphical user interface
https://www.joulescope.com
Apache License 2.0
85 stars 26 forks source link

[Bug]: Incorrect scaling in live view #168

Closed NevynUK closed 1 year ago

NevynUK commented 1 year ago

Joulescope serial number

001736

UI version

0.10.8

What OS are you seeing the problem on?

macOS 13 amd64

What happened?

I have connected a Meadow (microcontroller board) using the USB powered hub through to a MacBook Pro. This board has nothing running except the OS so I am expecting low current draw. Running the UI connected to the Joulescope shows the following:

LiveData

Note the scale is 0 - 5A and the statistics also reflect this:

LiveDataStatistics

Note that the multimeter view is showing the correct average , minimum and maximum values.

What was expected?

I am expected the board to average about 130mA with periodic peaks. The following is a JLS file from a 5 minute run captured using the Python capture.py script:

ReadImportedFile

This looks correct.

How to reproduce?

  1. ... Connect a low current microcontroller board to a computer through a JS110.
  2. ... Start the Joulescope UI

Extra information

No response

mliberty1 commented 1 year ago

Thanks @NevynUK ! It sounds like the current range change filter is not being applied correctly. I was able to duplicate the issue.

Here is a capture of the original JS110 EVK using 0.9.11: image

And the same capture using 0.10.8: image

Here are the current range settings: image

We'll be investigating today!

mliberty1 commented 1 year ago

I tracked down the issue, which is actually in the joulescope driver js110_sample_processor. The code was not correctly respecting the "n" and "m" samples_window settings. We should have a new Joulescope UI release tomorrow.

NevynUK commented 1 year ago

Thank you for the update. Look forward to using the new release.

mliberty1 commented 1 year ago

Fixed in Joulescope UI 0.10.9.