Search found 11 matches

by jbl
Fri Jan 27, 2017 12:16 pm
Forum: C and C++
Topic: Problem with the number of samples retrieved
Replies: 3
Views: 4439

Re: Problem with the number of samples retrieved

Yes, it's working fine now. 4096 samples retrieved with no lost. Here is the last version with a spin button for threshold tuning. PicoV1.jpeg The gtk widget "curve" is used to display the signal. This widget is deprecated by gtk developers. Does somebody know or use a gtk graphical tool that could ...
by jbl
Fri Jan 27, 2017 8:36 am
Forum: C and C++
Topic: Problem with the number of samples retrieved
Replies: 3
Views: 4439

Re: Problem with the number of samples retrieved

Hi,
Sorry for this silly question (in very poor english).
I haven't seen that parameters 2 and 3 of ps5000aRunBlock function give the number
of required samples.
Here is a better code.
Regards
by jbl
Thu Jan 26, 2017 3:09 pm
Forum: C and C++
Topic: Problem with the number of samples retrieved
Replies: 3
Views: 4439

Problem with the number of samples retrieved

Hi, I am still writing a C-code to communicate with my 5244B Picoscope. After some troubles with the ps5000aOpenUnit everything seems to be ok. Thanks to Hitesh for his help on this first problem. The C-code is written with the graphical library gtk+. The program is very simple. It displays a window...
by jbl
Thu Jan 05, 2017 3:29 pm
Forum: Getting Started
Topic: Problem with ps5000aOpenUnit in C
Replies: 11
Views: 8930

Re: Problem with ps5000aOpenUnit in C

Thanks, it seems to be ok now.
The returned value is 0 (PICO_OK) and the red led in front of the Pico turned off.
by jbl
Thu Jan 05, 2017 2:52 pm
Forum: Getting Started
Topic: Problem with ps5000aOpenUnit in C
Replies: 11
Views: 8930

Re: Problem with ps5000aOpenUnit in C

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 ...
by jbl
Thu Jan 05, 2017 1:10 pm
Forum: Getting Started
Topic: Problem with ps5000aOpenUnit in C
Replies: 11
Views: 8930

Re: Problem with ps5000aOpenUnit in C

Good !
It's working with PS5000A_DR_8BIT.
The display is :

handle : 1
device : 11a
channel : 0

Thank you very much.
by jbl
Thu Jan 05, 2017 11:30 am
Forum: Getting Started
Topic: Problem with ps5000aOpenUnit in C
Replies: 11
Views: 8930

Re: Problem with ps5000aOpenUnit in C

Here is the very simple code (perhaps too simple) : #include #include "PicoStatus.h" #include "ps5000aApi.h" main(){ int16_t handle,nb,serialLg=80; char serial[80]; PICO_STATUS device,channel; printf("Hello Picoscope\n"); device=ps5000aEnumerateUnits(&nb,serial,&serialLg); printf("Number o...
by jbl
Wed Jan 04, 2017 10:50 pm
Forum: Getting Started
Topic: Problem with ps5000aOpenUnit in C
Replies: 11
Views: 8930

Re: Problem with ps5000aOpenUnit in C

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.
by jbl
Wed Dec 21, 2016 9:47 am
Forum: Getting Started
Topic: Problem with ps5000aOpenUnit in C
Replies: 11
Views: 8930

Re: Problem with ps5000aOpenUnit in C

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.
by jbl
Fri Dec 16, 2016 3:17 pm
Forum: Getting Started
Topic: Problem with ps5000aOpenUnit in C
Replies: 11
Views: 8930

Problem with ps5000aOpenUnit in C

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, it...
by jbl
Fri Dec 16, 2016 2:53 pm
Forum: Introductions
Topic: Hi
Replies: 1
Views: 3297

Hi

Hi,
Im a french user of a Picoscope 5240A and I hope, one day, it will be able to communicate with my Raspberry 2B.
Thank you for your help.