Writing Custom Python Wrapper API Without Hardware?

Post any questions you may have about our current range of oscilloscopes
Post Reply
JamieForster
Newbie
Posts: 0
Joined: Tue Sep 22, 2020 9:50 pm

Writing Custom Python Wrapper API Without Hardware?

Post by JamieForster »

Hi, I was wondering if it is possible to write custom python APIs (ie. modifying ps5000aStreamingExample.py) when I don't have access to the hardware to plug into my computer.

I have attempted to write run ps5000aStreamingExample.py but have come into this error:

Code: Select all

  File "C:/Program Files/Pico Technology/picosdk-python-wrappers-master/ps5000aExamples/ps5000aStreamingExample.py", line 26, in 
    assert_pico_ok(status["openunit"])
  File "C:\Users\Jamie\AppData\Local\Programs\Python\Python38\lib\site-packages\picosdk\functions.py", line 160, in assert_pico_ok
    raise PicoSDKCtypesError("PicoSDK returned '{}'".format(PICO_STATUS_LOOKUP[status]))
picosdk.errors.PicoSDKCtypesError: PicoSDK returned 'PICO_NOT_FOUND'
Which I have assumed is happening due to the lack of hardware.

Thanks :D

NeilH
PICO STAFF
PICO STAFF
Posts: 265
Joined: Tue Jul 18, 2017 8:28 am

Re: Writing Custom Python Wrapper API Without Hardware?

Post by NeilH »

Hi

All of the API functions will return errors if there isn't a device connected (and opened for those beyond the OpenUnit functions)

Neil
Neil
Technical Support Engineer

rob3rt0ng
Newbie
Posts: 0
Joined: Mon Feb 01, 2021 1:18 pm

Re: Writing Custom Python Wrapper API Without Hardware?

Post by rob3rt0ng »

Hi all,

Unfortunately, I haven't got the hardware handy with me because my situation is constrained to working from home. Is there a workaround this?

Thanks
Robert

Post Reply