Having Trouble Setting up PicoSDK Python Wrappers

Post general discussions on using our drivers to write your own software here
Post Reply
ts_abbott
Newbie
Posts: 0
Joined: Thu May 26, 2022 5:51 pm

Having Trouble Setting up PicoSDK Python Wrappers

Post by ts_abbott »

Hi everyone,

I am currently trying to write a python script to capture picoscope data and automatically calculate some duty cycles. I am using the PicoSDK Python Wrappers from the github, https://github.com/picotech/picosdk-python-wrappers.

I have followed the installation instructions and have installed the picosdk folders, as well as ran the setup.py listed in the instructions. I made sure my bit versions matched also.

I am trying to run the ps3000aExamples before working on my own project. However, I cannot get any examples to work.

Running the ps3000aBlockExample.py gives me an error of

"File 'ps3000aBlockExample.py', line 22, in
assert_pico_ok(status["openunit"])"
"File 'C:\Python27\lib\site-packages\picosdk\functions.py", line 160, in asswert_pico_ok raise PicoSDKCtypesError("PicoSDK returned '{}'".format(PICO_STATUS_LOOKUP[status]))
picosdk.errors.PicoSDKCtypesError: PicoSDK returned 'PICO_INTERNAL_ERROR'

My Picoscope 3504 is connected and works with the Picoscope software. Has anyone run into this issue or know how to fix it? Thanks in advance!

Martyn
Site Admin
Site Admin
Posts: 4181
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Having Trouble Setting up PicoSDK Python Wrappers

Post by Martyn »

From the PicoScope software can you post the text from Help->About then we will know what device you have
Martyn
Technical Support Manager

ts_abbott
Newbie
Posts: 0
Joined: Thu May 26, 2022 5:51 pm

Re: Having Trouble Setting up PicoSDK Python Wrappers

Post by ts_abbott »

I managed to fix the issue somehow! I reinstalled the whole package and made sure to restart my computer after running the setup.py script and it seemed to have fixed it. Not sure what went wrong but thank you for replying anyways. :)

Post Reply