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: 2338
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: 2338
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 46 times
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2338
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: 2338
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: 2338
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby manasi » Fri Nov 04, 2016 10:55 am

Hi,

I am using pico data logger TC-08 and want to use it with my raspberry pi3 (newer model B). I referred this website "https://www.picotech.com/downloads/linux" to install the drivers for raspberry pi. I read somewhere it is the same for debian and raspberry pi since it is based on debian.

At the first step when I run this command "sudo bash -c 'echo "deb http://labs.picotech.com/debian/ picoscope main" >/etc/apt/sources.list.d/picoscope.list' ", I get this message "bash: /etc/apt/sources.list.d/picoscope.list: No such file or directory."

Not sure what is the issue. Do you have any idea about why its not working?

Regards,
Mansi
manasi
Newbie
 
Posts: 0
Joined: Fri Nov 04, 2016 10:45 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Hitesh » Wed Nov 09, 2016 11:11 am

Hi Mansi,

Did you run the command

Code: Select all
sudo bash -c 'echo "deb http://labs.picotech.com/debian/ picoscope main" >/etc/apt/sources.list.d/picoscope.list'

as a single line?

Regards,
Hitesh

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

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Lotharyx » Sat Nov 26, 2016 4:39 am

Without meaning to hijack the topic (too much, anyway ;-) )...is there any plan to release the PicoScope application for armhf architecture? Is it that big of a deal to build the application to target armhf, now that the drivers are done? (I have no idea)

I'd like to add my vote for that to be released! Thanks!
Lotharyx
Newbie
 
Posts: 0
Joined: Tue Dec 02, 2014 9:55 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Mon Nov 28, 2016 7:55 am

Not at the present time, we are looking to get Mac and Linux versions fully compatible with Windows before this would be considered.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2338
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