Posts: 2
Joined: Tue May 10, 2016 5:57 pm

Xprotolab Oscilloscope

Fri Jun 10, 2016 1:01 pm

I have an Xprotolab Plain single board oscilloscope and I would like to get the companion software running on my Pi 3 (I have it on a Windows 7 box at present). Has anyone attempted this?

User avatar
Posts: 335
Joined: Thu May 26, 2016 10:36 pm

Re: Xprotolab Oscilloscope

Fri Jun 10, 2016 1:10 pm

I don't have it working, but from their website, you can download the software :
http://www.gabotronics.com/download/xsc ... nux.tar.gz

In a terminal :
wget http://www.gabotronics.com/download/xsc ... nux.tar.gz
tar zxpvf xscopes-linux.tar.gz

looks like it is a precompiled binary ... my suggestion is to try to run it, when it fails, install the required libraries ...

Zero PCB quick connect clip - Live now on kickstarter : http://kck.st/2hKrOIs
Sound card for the Raspberry Pi with inbuilt microphone : http://www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card : http://www.audioinjector.net

Posts: 4919
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Xprotolab Oscilloscope

Fri Jun 10, 2016 1:48 pm

The link you have been given is for a pre-compiled version for an intel-based machine: this will not run on an RPi.

The product page http://www.gabotronics.com/oscilloscope ... -plain.htm has a download link for some source code http://www.gabotronics.com/download/xsc ... source.zip, but there don't seem to be any instructions for building it.

You might get better informed advice from the supplier's own forums: http://www.gabotronics.com/component/op ... topiclist/

Posts: 2
Joined: Tue May 10, 2016 5:57 pm

Re: Xprotolab Oscilloscope

Fri Jun 17, 2016 12:30 pm

The developer's forum and the developer have had no help on this matter. The Xprotolab Plain is a great little product for an electronic workbench but having a Windows box on your bench waste a lot of workspace. My hope was to have a Pi touch LCD and a Pi 3 to interface but it doesn't seem like it will happen. Maybe I should start thinking about a Bitscope.

Posts: 1
Joined: Tue Feb 13, 2018 12:31 pm

Re: Xprotolab Oscilloscope

Tue Feb 13, 2018 12:57 pm

I have it working on raspberry pi 3 with raspbian stretch,
There are warnings but it works.
I found the method on an odroid wiki and made some minor changes because of the use of dphys-swapfile to deal with the swap.
The method consist of downloading all the code and compiling it.

Here is what I did
Open terminal.
update and upgrade raspberry

pi@raspberrypi:~$ sudo apt-get update
pi@raspberrypi:~$ sudo apt-get upgrade

install paquets which will allow to download and compile the code

pi@raspberrypi:~$ sudo apt-get install git
pi@raspberrypi:~$ sudo apt-get install qt5-default
pi@raspberrypi:~$ sudo apt-get install libqt5serialport5-dev
pi@raspberrypi:~$ sudo apt-get install libusb-1.0-0-dev

while compiling the code, the raspberry will lack memory
It’s the reason why one needs to use swap

Check the swap is on :
pi@raspberrypi:~$ /sbin/swapon -s
the answer is a table
Filename Type Size Used Priority
/var/swap file 102396 0 -1

Swap is only a 100Mega file, it’s size needs to be increased.
The maximum value is 2048.
let’s have 2000MByte of swap
put the swap off:
pi@raspberrypi:~$ sudo /sbin/dphys-swapfile swapoff

The swap is controlled by a paquet called dphys-swapfile already installed on the raspberry.
A file called « dphys-swapfile » is in the directory « etc » (etc/ dphys-swapfile)
In that file, we need to write the number of Mbytes we want as swap
we will replace 100 by 2000

open file manager as a sudoer
(one can do it in another terminal)
pi@raspberrypi:~$ sudo pcmanfm

open directory « etc », clic right on file « dphys_swapfile » and open it with ‘leafpad’.
Avoid opening with default libre office as it will ask to record a second file with an odt extension.

Record and close the file.

validate the new swap size
pi@raspberrypi:~$ sudo dphys-swapfile setup
The answer is :
want /var/swap=2000MByte, checking existing: deleting wrong size file (104857600), generating swapfile ... of 2000MBytes

The swap is still off, we can check this by writing
pi@raspberrypi:~$ /sbin/swapon -s
no answer

Put the swap on :
pi@raspberrypi:~$ sudo /sbin/dphys-swapfile swapon

check it is on and that the right size has been written :
pi@raspberrypi:~$ /sbin/swapon -s
The answer is a new table
Filename Type Size Used Priority
/var/swap file 2047996 0 -1

Thus, we should now have enough memory to compile the code

Make a new directory called « xp » as in the odroid example

pi@raspberrypi:~$ cd ~ && mkdir xp && cd xp

Copy all Gabriel code from github
in a directory called « xscopes-qt »
pi@raspberrypi:~/xp$ git clone https://github.com/ganzziani/xscopes-qt

go to directory « xscopes-qt » :
pi@raspberrypi:~/xp$ cd xscopes-qt

the raspberry is now ready to compile
pi@raspberrypi:~/xp/xscpe-qt$ qmake
pi@raspberrypi:~/xp/xscpe-qt$ make -j5
compiling needs a few minutes.

Not everything went well as compiling finished by warnings :
« /usr/bin/ld : escamotage incompatible /home/pi/xp/xscopes-qt/libs/unix/libusb-1.0.a lors de la recherche de -lusb-1.0 »

Meanwhile, there is now a file called « xscope » in « xscope-qt ».

Let’s try to run the file as sudoer :

pi@raspberrypi:~/xp/xscope-qt$ sudo ./xscope
some warnings are displayed :
libEGL warning: DRI2: failed to authenticate
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

0x15a0310 Device Opened
VERSION "2.38"
and the scope window opened

We can now put the swap off.
pi@raspberrypi:~$ sudo /sbin/dphys-swapfile swapoff

and, if we want it off at boot
pi@raspberrypi:~$ sudo update-rc.d dphys-swapfile disable

To run the program without sudo , make a file named, something.rules, let’s say gabo.rules containing

SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="06f9", GROUP="users", MODE="0666"

in “/etc/udev/rules.d”.

And then, reload the udev :

pi@raspberrypi:~$ sudo udevadm control --reload

http://www.gabotronics.com/product-info ... erface.htm
http://manpages.ubuntu.com/manpages/xen ... ile.8.html

Return to “Other projects”

Who is online

Users browsing this forum: No registered users and 10 guests