How to query if joulescope device is already open

Hi @jj110 - Your Joulescopes keep the path from Current+ to Current- enabled by default when you close the Joulescope. Here is code to demonstrate:

import joulescope
import time

device = joulescope.scan_require_one()
for i in range(10):
    print('open')
    with device:
        time.sleep(1)
    print('close')
    time.sleep(1)

I used an LED and power supply set to 10 mA limit to check that the LED remained illuminated through these cycles using both a JS110 and JS220.

Here is my platform information:

PS C:\> python -VV
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun  6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)]
PS C:\> pip show joulescope pyjoulescope_driver
Name: joulescope
Version: 1.1.15
Summary: Joulescope™ host driver and utilities
Home-page: https://joulescope.readthedocs.io
Author: Jetperch LLC
Author-email: joulescope-dev@jetperch.com
License: Apache 2.0
Location: C:\bin\Python3_12_4\Lib\site-packages
Requires: numpy, psutil, pyjls, pyjoulescope-driver, pymonocypher, python-dateutil, pywin32
Required-by:
---
Name: pyjoulescope_driver
Version: 1.5.4
Summary: Joulescope™ driver
Home-page: https://joulescope.readthedocs.io
Author: Jetperch LLC
Author-email: joulescope-dev@jetperch.com
License: Apache 2.0
Location: C:\bin\Python3_12_4\Lib\site-packages
Requires: numpy, psutil, pywin32, requests
Required-by: joulescope

I am not sure exactly what you are seeing. Can you provide runnable code that demonstrates the problem?