Hi,
I am wanting to control my JS220 Joulescope through the python command line so I can record high speed data on trigger input as well as run the energy accumulator for automated testing of a battery powered device.
Unfortunately I seem to have hit a block where I can’t get the python joulescope package to connect to the hardware.
I am using:
Joulescope JS220
Windows 10 Pro 64bit
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
python packages pyjoulescope_driver and joulescope have been installed successfully
I can run:
python -m pyjoulescope_driver scan
and it gives me the joulescope name and serial:
u/js220/000763
I am trying to use some of the examples in the following repo:
https://github.com/jetperch/pyjoulescope_examples
I have followed the README and installed all requirements.
When I try to run:
python bin\capture_simple.py
I get the following error:
Traceback (most recent call last):
File "bin\capture_simple.py", line 33, in <module>
run()
File "bin\capture_simple.py", line 24, in run
device = scan_require_one(config='auto')
File "C:\Users\mattc\AppData\Roaming\Python\Python37\site-packages\joulescope\driver.py", line 1353, in scan_require_one
raise RuntimeError("no devices found")
The joulescope GUI program has no problem connecting and recording.
pyjoulescope_driver seems to be able to connect to the hardware no problem with:
python -m pyjoulescope_driver statistics
I see in the pyjoulescope_examples repo some of the examples use the “joulescope” package and others use the “pyjoulescope_driver” directly.
Why am I unable to run the examples?
Am I missing something?