DSRemote

DSRemote is a program to control and visualize your Rigol® DS6000 or DS1000Z series oscilloscope from
your Linux desktop via USB or LAN. It will probably work as well with the other series like DS2000A and DS4000 series but
I have no access to all those oscilloscopes so I can not test it. I tried to mimic the interface of the DS6000 series.
It's a work in progress but the basic controls are working. Live signals can be viewed, screenshots can
be made and waveform data can be saved. There's no manual yet, but it's pretty straight forward.


Version

Latest version: 0.34_1702041507 February 4, 2017

How to compile

- Install Git, the GCC compiler and the Qt4 development package:
Linux Mint 18: sudo apt-get install git-core libqt4-dev libqt4-core g++
openSuse Leap 42.2: sudo zypper in git-core libqt4-devel
Fedora 25: sudo dnf install git-core qt-devel gcc-c++

- Download the source code:
mkdir DSRemote_git
cd DSRemote_git
git init
git pull https://github.com/Teuniz/DSRemote

- Create the makefile:
Linux Mint 18: qmake
openSuse Leap 42.2: qmake
Fedora 25: qmake-qt4

- Compile the source code and install it:
make -j16
sudo make install

Now you can run the program by typing: dsremote

Note: Make sure you are using the latest firmware which is 00.04.04.SP1 at the time of this writing.
Older firmware versions can cause connection problems!
Check here for the latest firmware: http://int.rigol.com/Support/SoftDownload/3

LAN connection

Just select "LAN" in the settings menu and enter the IP-address of the oscilloscope.
Click on the apply button.
In the "Device" menu, select "Connect".

USB connection

Just select "USB" in the settings menu and select the device (usually: /dev/usbtmc0).
Click on the apply button.
In the "Device" menu, select "Connect".

Note: The DS1054Z is plug and play with a recent kernelversion.
You probably have to add yourself to the group "usbtmc" before you can access the device.
Here's how you do that:
First, check the groupname of the device, enter:

ls -l /dev/usbtmc*

Now, add yourself to the group (usbtmc in this example):

sudo usermod -a -G usbtmc <username>
You need to logout and login again to let the changes take into effect.

In case you have a permission problem because /dev/usbtmc0 uid and gid are set to root,
create a file /lib/udev/rules.d/30-usbtmc.rules that contains the following:

####################################################################################
# USBTMC instruments

# Rigol Technologies  DS1000Z series
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="1ab1", ATTRS{idProduct}=="04ce", GROUP="usbtmc", MODE="0660"

# Devices
KERNEL=="usbtmc/*",       MODE="0660", GROUP="usbtmc"
KERNEL=="usbtmc[0-9]*",   MODE="0660", GROUP="usbtmc"
####################################################################################

You need to reboot in order to take it into effect.

For the DS6000 series, scroll down.

Viewing downloaded waveform data

Here you can download a viewer to open the downloaded waveform data from the oscilloscope: EDFbrowser
The waveform data files can also be opened in Scilab or Octave

Automatic driver loading

For the DS6000 series, in order to let the system load the usbtmc driver automatically, proceed as follows:

Create a new group, usbtmc:

sudo groupadd usbtmc

Add yourself to this group:

sudo usermod -a -G usbtmc <username>

You need to log out and log in again before the changes take into effect.

Create a file /etc/udev/rules.d/usbtmc.rules with the following content:


####################################################################################
# USBTMC instruments

# Rigol Technologies  DS6000 series
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="1ab1", ATTRS{idProduct}=="04b0", GROUP="usbtmc", MODE="0660"

# Devices
KERNEL=="usbtmc/*",       MODE="0660", GROUP="usbtmc"
KERNEL=="usbtmc[0-9]*",   MODE="0660", GROUP="usbtmc"
####################################################################################

Disconnect and connect the oscilloscope again (or reboot).

Make sure you are using the latest firmware (00.02.00.SP5).


Keywords: Rigol DS1000Z DS1054Z DS1074Z DS1104Z DS6000 DS6062 DS6064 DS6102 DS6104 Remote control software