Hi,
I'm a new user of the libps5000a.so library with gcc on a Raspberry.
I have written my first C program with this library. No problem for linking and the functions are fully called by the main program.
The first I've used is : ps5000aEnumerateUnits. It gives results. The picoscope is detected, its serial number is obtained.
The second one is ps5000aOpenUnits. It doesn't work. The return handle is -1 that means "The scope fails to open".
I wonder if there is something to do before executing my C program. The LED in front of the Pico is still red. I have connected the pico to the usb and the usbtest program gives good result. Any idea ?
Hi Hitesh,
Yes, I have tried running it with sudo command or as root.
Do you think that the raspberry usb ports give enough current for the picoscope ?
The pico is supplied with a double usb plug. Perhaps should I use an external power unit.
Hi Hitesh,
Thank you for your help.
I'm using a 5244A dual channel Picoscope and I'm using the dual-headed USB cable.
I have also tried to plug the power head in an auxiliary PC USB port and the second head in the Rasp.
No result.
Last edited by jbl on Thu Jan 05, 2017 11:15 am, edited 1 time in total.
Also, note that trying to pass the serial value to the ps5000aOpenUnit() function if multiple units are returned from the ps5000aEnumerateUnits() function might not work.
Well, it's not so good.
If we check the 11a return value in the documentation. It's better than 3f (PICO_NOT_USED).
11a gives : PICO_POWER_SUPPLY_NOT_CONNECTED.
Perhaps it means that an external power supply is mandatory to play with this library ...