The current update to Linux has removed C console examples and build scripts. This in preparation to separate all SDK code examples from driver and executables.
I have attached Linux built scripts and updated C console examples.
Below are instructions to install and build the example for the USB TC-08 datalogger.
You will need to change the commands for other devices.
This device/driver table maybe useful- topic15321.html
The packages have been provided on our Debian/Raspbian(new) repositories.
Hello Andrew,
thank you for this information.
I followed step by step your post to build some of the attached C examples on a Raspberry Pi 2. All the required packages are installed correctly and updated to the latest version available on the repository. However every time I try to run autogen.sh script, I get the following error:
Hi Hitesh,
I'm interested in Series 2000 (PicoScope 2203), so I first installed ps2000 driver.
However I also tried with other drivers, including libusbtc08 (following step by step the example posted by AndrewA), with the same result.
I have downloaded these files into /opt/picoscope/share/doc/libps2000a/
I have processed configure.ac with autoconf like this: sudo autoconf configure.ac this only produces a autom4te.cache folder and I am getting the following errrors.
configure.ac:10: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:25: error: possibly undefined macro: AM_DISABLE_STATIC
configure.ac:31: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:40: error: possibly undefined macro: AM_LDFLAGS
If you are using the PicoScope 2204A or 2205A please use the ps2000Con.c file into the linux-build-files directory and run the following commands:
./autogen.sh
make
If you are using a PicoScope 2000 Series device which uses the ps2000a API functions (check the Programmer's Guide for your device) then you will need the files from the ps2000a directory in the repository.
To anyone else struggling to run the c examples please do the following:
(Connect up your device first)
1. Download the necessary drivers as described above
2. Unzip attached folder contents to /opt/picoscope/share/doc/libps2000
3. (note from readme file) Your system must be set up in such a way that all users who need to use
the driver have write access to the USB device (Linux only). Driver installation
package automatically installs 95-pico.rules to /etc/udev/rules.d/
and creates pico group to correctly initialise permissions upon device
being connected to the system. In order to use it you need to add your
user to pico supplementary group:
sudo usermod -G pico your_username
and run following command to login to this group:
newgrp -
4. Navigate to directory:
cd /opt/picoscope/share/doc/libps2000
5. Simply grant permissions and run the setup file:
sudo chmod +x setup
./setup
As I am very new to linux, I actually spent quite some time getting this to work. Thats why I created the 'setup' script in order to help others in the same position. I hope this does help!