Large File Size Error

Hello,

I finally was able to connect 4 JS220 and run them at the same time. I am recording at a sample rate of 100Hz. With one or two JS220 selected, the file size is what I would expect - not so large, but as soon as I connect a third JS, the interface jumps and the sample rate seems to switch to 1MHz causing the file size to grow exponentially (and eventually filled my drive). A. is there a way around this and B. is this a bug?

TIA

cherkey

Hi @cherkey - 100 Hz should definitely work with 4 JS220’s connected. You do need to ensure that you configure each and every JS220 for 100 Hz, though. The settings are all independent. You should be able to inspect the settings using the Device Control widget.

What do you mean by “the interface jumps”? What version of the Joulescope UI are you using?

Also ensure that your four Joulescopes are connected to a powered hub rated for at least 2A @ 5V total. If you have other devices connected, ensure that the hub has sufficient power for them, too. An unpowered hub will likely not be able to supply sufficient power causing Joulescopes to brown out.

Can you also submit an Issue Report through the UI? Select Help → Report Issue. In the notes, add a link to this topic so that we can respond accordingly.

Hi,

Yes, each device is set to 100Hz. I am using a powered USB hub. UI version is 1.7.7. What I i mean by ‘jumps’ is that the run starts with streaming (which I use to verify everything is running correctly and is then turned off during long recording) and waveform data is being displayed, the screen restarts (jumps not the best word I guess lol) as if a setting was changed.

I will submit thru Help/Report Issue

Thank you,

Hi @cherkey - We received the Joulescope UI issue report. Was this from the same computer you used for the 4 x JS220 capture? The logs shows no Joulescope ever connected and Joulescope UI 1.7.0 (not the latest 1.7.7). Unfortunately, this issue report does not have any meaningful info to help troubleshoot what you are seeing.

If you have Python 3.12+ and the latest pyjoulescope_driver installed, you can also try:

python -m pyjoulescope_driver record --frequency 100 out.jls

Here’s what I see in the Joulescope UI when viewing a very quick record with this method and adding the JLS Info widget:

Ah geez, my apologies, I had that other machine running with 2 JS only so I could keep the test running.. and sent the issue report with my other laptop, not thinking it would pull in all info from this one - I should’ve known.

I can follow up with that machine when the test is complete - as this is Friday, my reply will be Monday

Hi @cherkey - Thanks for sending the issue report from the test machine. It shows exactly what is happening. There are two separate issues, plus a Joulescope UI issue that makes things much worse.

1. JS220-005556 keeps disconnecting

Over the logs you sent, JS220-005556 disconnected and reconnected about 100 times. Your other JS220s almost never did. Each time, Windows reports a USB error and the device comes back about 0.2 seconds later. The instrument keeps running during these drops, so this looks like a USB connection problem rather than a power loss. To find the cause:

Swap the JS220-005556 with JS220-001673. Only swap the instrument so that all cables connected to JS220-005556 are now connected to JS220-001673, and all cable previously connected to JS220-001673 are now connected to JS220-005556. Do the disconnects follow JS220-005556 or move to JS220-001673?

If it moves to JS220-001673, consider using a different USB port. Also share any details about the cabling for this Joulescope. Particularly ground loops, bad USB cables, or problematic hubs / hub ports.

If they always follow JS220-005556, whatever cable or port it uses, please let us know and we will look into a replacement.

2. JS220-004982 is set to 1 MHz

The configuration in your report shows that JS220-004982 is set to a 1 MHz sample rate, not 100 Hz. The other three JS220s are set to 100 Hz. Each JS220 has its own sample rate setting. To change it:

  1. Open the Device Control widget.
  2. Expand JS220-004982.
  3. Set the Sample rate to 100 Hz.

3. Recording issue when a device reconnects

The logs also show a Joulescope UI issue, and it is what filled your drive. When a JS220 reconnects, the Joulescope UI restores your 100 Hz setting, but only about 0.1 seconds after the device has already started streaming at full rate. During a recording, that short burst of full-rate data makes the JLS file jump ahead by billions of samples. The file then grows by tens of gigabytes with empty data, and that device records no useful data after the first reconnect. This is also the screen “jump” you saw: the waveform view resets each time the device reconnects.

We are working on a fix so that a reconnecting JS220 starts at its configured sample rate. We are also making the recorder safe against this kind of jump. We’ll post here when a release with the fix is ready.

Until then, the most reliable workaround is to fix the disconnects in step 1.


Thanks for your patience and for submitting the report!

Hi Matt,
As always, thank you for your quick response. I will look into #1. Regarding #2, I have confirmed that all JS are set to 100Hz prior to run, which is why I was suspsecting it was changing itself somehow. I look forward to #3 - hopefully soon :slight_smile: and hopefully I can alleviate these usb restarts.

We have a fix for #3, which is in joulescope_driver 2.5.6 and UI 1.8.0. UI 1.8.0 is currently alpha, and you can manually download from here:

Look forward to hearing what you find with (1) and UI 1.8.0!

Thanks Matt… I just received my first couple JS320 - I assume these changes are all good with these as well?

Yes! UI 1.8.0 fixes the same JLS problem for JS110, JS220, and JS320.

Hi Matt,

Just a follow up here to say that your changes have made an improvement, thank you.

cherkey