Test and Measurement Forum

Drivers for BeagleBoneBlack and Raspberry Pi

Discussion forum for the new Picoscope Linux software

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby DigitalArcSystems » Tue Jul 19, 2016 9:03 pm

Hi!
I'm enjoying these drivers and have recently moved up from a PicoScope 2000 class scope to a Picoscope 3403D. When I installed libps3000 I didn't recieve all of the same files as when I installed the libps2000.

The libps2000 Files included:
Code: Select all
aclocal.m4 compile       config.h     config.log     config.sub  depcomp     libtool    m4       
Makefile.in  ps2000con    stamp-h1 autom4te.cache  config.guess  config.h.in  config.status
configure   install-sh  ltmain.sh  Makefile  missing      PS2000con.o


The libps3000 files were only:
Code: Select all
Copyright usbtest


Where can I find the rest of these files? I need them to develop the software we're working on. Thanks!

Noah Ternullo
DigitalArcSystems
Newbie
 
Posts: 0
Joined: Tue Jul 19, 2016 8:54 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Wed Jul 20, 2016 6:25 am

For the Picoscope 3403D you will need libps3000a, not libps3000 which is for the very old 3000 series devices.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby DigitalArcSystems » Wed Jul 20, 2016 8:03 pm

Thanks!
I thought that might be the case so I tried installing that driver as well. I have the exact same issue. Where can I find the C files, example program, etc for the libps3000a on a Raspberry Pi?
DigitalArcSystems
Newbie
 
Posts: 0
Joined: Tue Jul 19, 2016 8:54 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Wed Jul 20, 2016 8:11 pm

From memory I think opt/pico, or a directory underneath, but I will have to check when back in the office tomorrow.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby DigitalArcSystems » Thu Jul 21, 2016 6:57 pm

Thanks for looking into this for me. The file structure is as follows:

/opt/picoscope/
|
|--------- lib This is where the .so files are stored
|
|--------- include This is where the header files are stored
|
|--------- share/doc/libps3000a This is where I would expect the C files for the example/test application to be,
but they appear to be missing.
DigitalArcSystems
Newbie
 
Posts: 0
Joined: Tue Jul 19, 2016 8:54 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Fri Jul 22, 2016 6:28 am

They are not in the latest release, not sure why, attached is the example code from the previous release, try using these files
Attachments
libps3000a.zip
Example App
(21.59 KiB) Downloaded 21 times
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby DigitalArcSystems » Mon Aug 01, 2016 7:52 pm

Thanks again!
The files look to be exactly what I needed. The issue I have is that they don't appear to be working. That is, using the compiled sample program provided, I can find and open my PicoScope, but any attempt to get data from it results in either a repeating exception or no data being obtained. Hmm. Any suggestions? I'll post more details as I get them.
DigitalArcSystems
Newbie
 
Posts: 0
Joined: Tue Jul 19, 2016 8:54 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Tue Aug 02, 2016 8:30 am

Can you post the errors, then we can see what they are linked to.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby DigitalArcSystems » Fri Aug 26, 2016 7:15 pm

Here's a couple of them:

1st on attempt to obtain a block of Data:

B - Immediate block V - Set voltages
T - Triggered block I - Set timebase
E - Collect a block of data using ETS A - ADC counts/mV
R - Collect set of rapid captures
S - Immediate streaming
W - Triggered streaming
X - Exit
Operation:

Collect block immediate...
Press a key to start

Timebase: 2 SampleInterval: 4nS oversample: 1
Waiting for trigger...Press a key to abort
BlockDataHandler:ps3000aGetValues ------ 0x00000046
Status 46: PICO_BUFFERS_NOT_SET
An attempt was made to get data before a data buffer was defined

Here's an attempt to set the Voltages

PS3000A driver example program

Enumerating Units...
Found one device, opening...

Handle: 1
Device opened successfully, cycle 1

Model : 3403D
S/N : DU009/010


Readings will be scaled in (mV)



B - Immediate block V - Set voltages
T - Triggered block I - Set timebase
E - Collect a block of data using ETS A - ADC counts/mV
R - Collect set of rapid captures
S - Immediate streaming
W - Triggered streaming
X - Exit
Operation:

0 -> 10 mV
Specify voltage range (0..0)
99 - switches channel off

** At least 1 channel must be enabled **

Specify voltage range (0..0)
99 - switches channel off

** At least 1 channel must be enabled **

Specify voltage range (0..0)
99 - switches channel off

[THIS REPEATS]



Thanks,


Noah
DigitalArcSystems
Newbie
 
Posts: 0
Joined: Tue Jul 19, 2016 8:54 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Thu Sep 08, 2016 12:54 pm

I would suggest cutting the code back to basics and add in the calls in sequence, not using the console menu, to make a simple block collection routine.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2287
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Previous

Return to PicoScope for Linux

Who is online

Users browsing this forum: No registered users and 0 guests