Test and Measurement Forum

enumerateUnits and openUnit no longer working upon update

Discussion forum for the new Picoscope Linux software

enumerateUnits and openUnit no longer working upon update

Postby mmatheny » Tue Jun 14, 2016 10:19 pm


Attempting to open the a ps 4824 using the SDK via python (in Ubuntu 14.04) no longer works after the update. The proprietary picoscope software (Picoscope 6) works fine. My code is as follows
Code: Select all
from ctypes import *
lib = cdll.LoadLibrary("libps4000a.so")
count = c_short()
serials = (c_char * 100)()
serialLth = c_short()
lib.ps4000aEnumerateUnits(byref(count), byref(serials0, byref(serialLth))

This returns a value "0", but the serial code returns empty. If I try open without a serial
Code: Select all
]from ctypes import *
lib = cdll.LoadLibrary("libps4000a.so")
handlePointer = c_short()

'3' gets returned, which is I'm guessing "eeprom corrupt", or "unit busy". I used to get this status if I tried to open the unit while the proprietary software was open. Now, no matter what the status of the proprietary software, I get this returned.

Is there any way to return to the working version?
Posts: 0
Joined: Tue May 12, 2015 12:41 am

Re: enumerateUnits and openUnit no longer working upon updat

Postby Hitesh » Thu Jun 16, 2016 10:05 am

Hi mmatheny,

It looks as though there is a bug in the driver with regards to the serial numbers not being returned which I have reported.

The status code of 3 is PICO_NOT_FOUND, which indicates that the device is not found. Irrespective of whether you are using the serial number to open the device or not, you still need to pass a second parameter to the call to ps4000aOpenUnit (set to the Python equivalent of C NULL).

If you require the previous version of the driver, please e-mail support@picotech.com and we can point to where to obtain them.


Technical Specialist
Pico Technology
Site Admin
Site Admin
Posts: 2023
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Return to PicoScope for Linux

Who is online

Users browsing this forum: No registered users and 0 guests