Automation Script for Realtime Current captures

Hi @mliberty ,
I am working with Joulescope version JS110 currently.
I am trying to make an automation script that captures every real-time sample using python script and also if at any level my current levels reaches above certain limit it immediately starts capturing the current variation and records till the current reaches the normal level.
Basically, I am trying to capture every single activity that happens real time and can get the averaged current for that particular event.
Working with Windows 10 and 64bit processor.
So, Need your guidance to achieve this.

1 Like

Hi @aryan and welcome to the Joulescope forum!

I think that the first step is to further refine what you are trying to do. Here is what I understand:

  1. Start script, initialize JS110, start current sample streaming.
  2. Wait until current sample value exceeds threshold.
  3. Wait until the current sample value is below a threshold.
  4. Output the average current, duration and charge between (2) and (3).
  5. Goto (2)
  6. On CTRL-C, exit.

I have a few questions:

  1. Do the steps I described above match what you want?
  2. For (4), what is the desired output? File, stdout, another thread?
  3. Do you also want to record the waveform between (2) and (3) to a JLS file?
  4. Do you have any preference between using the joulescope package or pyjoulescope_driver package?
  5. For (3), do you want to ensure that it is below the threshold for some time, or just 1 sample?