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: 336
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 ...

Check the Ultra 2 sound card - use our shop instead of Amazon Europe (Amazon USA is live).
Sound card for the Raspberry Pi with inbuilt microphone : www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card

User avatar
Posts: 8024
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

[email protected]:~$ sudo apt-get update
[email protected]:~$ sudo apt-get upgrade

install paquets which will allow to download and compile the code

[email protected]:~$ sudo apt-get install git
[email protected]:~$ sudo apt-get install qt5-default
[email protected]:~$ sudo apt-get install libqt5serialport5-dev
[email protected]:~$ 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 :
[email protected]:~$ /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:
[email protected]:~$ 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)
[email protected]:~$ 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
[email protected]:~$ 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
[email protected]:~$ /sbin/swapon -s
no answer

Put the swap on :
[email protected]:~$ sudo /sbin/dphys-swapfile swapon

check it is on and that the right size has been written :
[email protected]:~$ /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

[email protected]:~$ cd ~ && mkdir xp && cd xp

Copy all Gabriel code from github
in a directory called « xscopes-qt »
[email protected]:~/xp$ git clone https://github.com/ganzziani/xscopes-qt

go to directory « xscopes-qt » :
[email protected]:~/xp$ cd xscopes-qt

the raspberry is now ready to compile
[email protected]:~/xp/xscpe-qt$ qmake
[email protected]:~/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 :

[email protected]:~/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.
[email protected]:~$ sudo /sbin/dphys-swapfile swapoff

and, if we want it off at boot
[email protected]:~$ 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 :

[email protected]:~$ 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”