Test and Measurement Forum

C console examples for Linux

Post your C and C++ discussions here

C console examples for Linux

Postby AndrewA » Wed Jun 01, 2016 12:02 pm

Hello all,

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-
https://www.picotech.com/support/topic15321.html

The packages have been provided on our Debian/Raspbian(new) repositories.
Code: Select all
deb http://labs.picotech.com/debian/ picoscope main

For Raspbian use the following:
Code: Select all
deb http://labs.picotech.com/raspbian/ picoscope main

Every package is signed with or key, so in order to verify them the public part has to imported:
Code: Select all
wget -O - http://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -

To pull/update repositories cache run
Code: Select all
sudo apt-get update

Install the driver
Code: Select all
sudo apt-get install libusbtc08

copy attached files-
autogen.sh
usbtc08con.c
To-
/opt/picoscope/share/doc/libusbtc08

copy one of the PicoStatus.h files from one the include folders to usbtc08 one- (loggers only)
Code: Select all
cp /opt/picoscope/include/libps3000a-1.1/PicoStatus.h /opt/picoscope/include/libusbtc08-1.8/

Install complier and build.
Code: Select all
sudo apt-get install build-essential autoconf automake make libtool
cd /opt/picoscope/share/doc/libusbtc08
sudo ./autogen.sh
sudo make
Attachments
linux_C_console-2016-06-01.zip
linux C console files
(107.18 KiB) Downloaded 146 times
Regards Andrew
Technical Specialist
AndrewA
Zen Master
Zen Master
 
Posts: 178
Joined: Tue Oct 21, 2014 3:07 pm

Re: C console examples for Linux

Postby gioboske » Thu Nov 24, 2016 9:34 pm

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:
Code: Select all
autoreconf: 'configure.ac' or 'configure.in' is required


Since I'm not familiar with autoreconf, I need some help to figure out what is happening.
Any pointers?

Thank you,
gioboske
gioboske
Newbie
 
Posts: 0
Joined: Thu Nov 24, 2016 8:00 pm

Re: C console examples for Linux

Postby Hitesh » Fri Nov 25, 2016 9:13 am

Hi gioboske,

Which PicoScope/PicoLog driver package have you installed?

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: C console examples for Linux

Postby gioboske » Mon Nov 28, 2016 9:03 am

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.

Thank you,
Regards
gioboske
Newbie
 
Posts: 0
Joined: Thu Nov 24, 2016 8:00 pm

Re: C console examples for Linux

Postby gioboske » Wed Nov 30, 2016 10:50 am

UPDATE:
I also installed the drivers on Ubuntu 15.04 and then I tried to compile the C example for PS2000.
Same problem when running autogen.sh:
Code: Select all
autoreconf: 'configure.ac' or 'configure.in' is required


gioboske
gioboske
Newbie
 
Posts: 0
Joined: Thu Nov 24, 2016 8:00 pm

Re: C console examples for Linux

Postby gioboske » Wed Nov 30, 2016 2:05 pm

UPDATE 2:
I found the missing "configure.ac" file, by installing the old driver (ver. 2.1.43r14) downloaded from: http://labs.picotech.com/raspbian/pool/main/libp/libps2000/libps2000_2.1.4-3r14_armhf.deb

Now "autogen.sh" exits without errors.
Please include the "configure.ac" files in the attached C examples.

Thank you,
gioboske
gioboske
Newbie
 
Posts: 0
Joined: Thu Nov 24, 2016 8:00 pm

Re: C console examples for Linux

Postby Hitesh » Thu Dec 01, 2016 11:34 am

Hi gioboske,

Sorry for the delay in getting back to you but good to hear that you were able to find the configure.ac file.

We are in the process of determining how best to distribute examples to allow driver only installs.

Below are the files for the (lib)ps2000 driver:

PS2000con_Linux.zip
PS2000 Linux files
(13.84 KiB) Downloaded 2 times

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


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests