Low Cost PCB's Low Cost Components

Author Topic: Using Linux (Ubuntu) to interface with a DS1074Z-S  (Read 5085 times)

0 Members and 1 Guest are viewing this topic.

Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Using Linux (Ubuntu) to interface with a DS1074Z-S
« on: November 22, 2014, 08:02:39 AM »
I've been looking for a way to communicate between my Linux PC and my DS1074Z-S via TCP/IP to no avail; despite searches via google and within this forum.

Setting up the network connection is easy, but I haven't been able to find a program to talk to the scope. What am I missing?

 

Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #1 on: November 22, 2014, 08:07:01 AM »
I should also have mentioned that one reason for me to do this is to be able to download screen shots to post to this forum.
So far I haven't found a memory stick that my scope will recognize.
 

Online dr.diesel

  • Super Contributor
  • ***
  • Posts: 1956
  • Country: us
  • Cramming the magic smoke back in...
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #2 on: November 22, 2014, 08:10:19 AM »
Try Peter's program, works for the 4000s and the DSA 815:

 
http://peter.dreisiebner.at/


Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #3 on: November 22, 2014, 08:39:10 AM »
Wish I could read all languages properly.
 

Offline wilfred

  • Super Contributor
  • ***
  • Posts: 4408
  • Country: au
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #4 on: November 22, 2014, 09:48:16 AM »
I should also have mentioned that one reason for me to do this is to be able to download screen shots to post to this forum.
So far I haven't found a memory stick that my scope will recognize.

What size and format USB stick are you using? The manual recommends no larger than 8GB. That usually implies an older FAT formatting is required since 8GB is a LOT of screen saves. Beyond that if it doesn't work than you might have a faulty unit.

I wouldn't be surprised if it couldn't recognise exFAT NTFS or a Linux filesystem.
 

Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #5 on: November 22, 2014, 10:46:57 AM »
OK I finally discovered that telnet to port 5555 opens the link for SCPI commands. That allows me to experiment.

As for the memory sticks mine are either too small <256Mb or too large >16Gb, complete bummer. Makes one wonder about Rigol's logic. I'll just have to find a few 4Gb sticks.







 

Online dr.diesel

  • Super Contributor
  • ***
  • Posts: 1956
  • Country: us
  • Cramming the magic smoke back in...
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #6 on: November 22, 2014, 12:13:55 PM »
Wish I could read all languages properly.

The program is in English,  :-//

Or are you not using a browser that automagically translates his webpage?

Online Lukas

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: de
    • carrotIndustries.net
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #7 on: November 23, 2014, 12:18:09 AM »
You may want to look for VXI11, that's the standard way for talking to instruments over LAN. There's python implementation of it: https://github.com/python-ivi/python-vxi11
 

Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #8 on: November 23, 2014, 12:53:16 AM »
Dr Diesel - yes I hadn't got round to installing translate. Having said that I believe the buttons are in German see screen shots. When I can figure out how to install it I'll try it.

Lukas I'll have to get Python working then try VXI11.

Thanks both.
 

Offline MiataMuc

  • Regular Contributor
  • *
  • Posts: 52
  • Country: de
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #9 on: November 23, 2014, 06:12:27 PM »
I use Peter's program in Kubuntu - but the Windows version (with wine), via network.

Florian
 

Offline BloodyCactus

  • Frequent Contributor
  • **
  • Posts: 444
  • Country: us
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #10 on: November 24, 2014, 04:28:54 AM »
the linux version works just fine for me, it gives me english buttons and all.  I can connect to my DG1032Z and my DS2202A no problem.

 

Offline grantbob

  • Supporter
  • ****
  • Posts: 39
  • Country: us
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #11 on: November 24, 2014, 06:27:36 AM »
Glad I saw this thread. I didn't even know Peter's program existed. I just tried it on OS X with a DS1074Z and it worked just fine. (much better than running a windows VM and fiddling with all the Rigol stuff for just an easy screenshot).  :)

-grantbob
 

Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #12 on: November 24, 2014, 07:07:59 AM »
The fundamental reason for starting this thread  was to discover what SCPI commands, if any, are used to take and download a screen snapshot via TCP/IP from a DS1074Z-S? I'm aware that a USB connection would be faster but I need to do this via TCP/IP.

I'm fully aware that the majority of software appears to be for Windows. Marmad's looks amazing but is overkill for my current needs.

I'm trying to do everything with Linux (Ubuntu 14). After over 20 years of Windows desktop and server it's a challenge, particularly when attempting to install software, which I'm still trying to learn about. In fact I'm trying to use the Ubuntu software centre wherever possible in order to minimise errors on my part.

Unless I'm missing the obvious (highly likely) I can't find a SCPI command or sequence of commands to download a screen shot.

Does anyone have the command sequences required?

ciao

Dave
 

Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #13 on: November 24, 2014, 07:15:16 AM »
Grantbob - I know you're using OSx but would you or someone else care to instruct me how to install Peter's program please?

Yeah I'm stoopid! But I do learn.
 

Online dr.diesel

  • Super Contributor
  • ***
  • Posts: 1956
  • Country: us
  • Cramming the magic smoke back in...
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #14 on: November 24, 2014, 08:59:54 AM »
All you have to do is extract his package, right click, extract.  Then mark the binary executable:

chmod +x RigolBildschirmkopie

Or right click, Permissions, check the "Allow this file to run as a program"  Or however Ubuntu states it.

Then just double click.

If your running 64bit, you might need glibc.i686, run from a console window to see output if double clicking to run fails.

Online Lukas

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: de
    • carrotIndustries.net
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #15 on: November 24, 2014, 10:38:30 AM »
The fundamental reason for starting this thread  was to discover what SCPI commands, if any, are used to take and download a screen snapshot via TCP/IP from a DS1074Z-S? I'm aware that a USB connection would be faster but I need to do this via TCP/IP.

I'm fully aware that the majority of software appears to be for Windows. Marmad's looks amazing but is overkill for my current needs.

I'm trying to do everything with Linux (Ubuntu 14). After over 20 years of Windows desktop and server it's a challenge, particularly when attempting to install software, which I'm still trying to learn about. In fact I'm trying to use the Ubuntu software centre wherever possible in order to minimise errors on my part.

Unless I'm missing the obvious (highly likely) I can't find a SCPI command or sequence of commands to download a screen shot.

Does anyone have the command sequences required?

ciao

Dave
The DISPLAY:DATA? fetches a screenshot. See the programming manual for more info on that.

BTW: Screenshots are often the wrong choice for documenting stuff. It's way more useful to retrieve the actual waveform data and plot them with some graphing software like gnuplot. This way you can compare data from subsequent measurements without messing with the scale factors at the instrument. You aren't limited to the screen resolution of the instrument as well.
 

Offline grantbob

  • Supporter
  • ****
  • Posts: 39
  • Country: us
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #16 on: November 24, 2014, 11:30:25 AM »
Grantbob - I know you're using OSx but would you or someone else care to instruct me how to install Peter's program please?

On OS X you just unzip the .zip and then extract the app from the .tar file (you can use the default archive utility in OS X for that) . Then you can run the app. I don't have a linux box handy at the moment but dr. diesel's explanation sounded about right for linuxland.

-grantbob

 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 5026
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #17 on: November 24, 2014, 11:43:53 AM »
The fundamental reason for starting this thread  was to discover what SCPI commands, if any, are used to take and download a screen snapshot via TCP/IP from a DS1074Z-S?

Does anyone have the command sequences required?

http://www.batronix.com/pdf/Rigol/ProgrammingGuide/MSO1000Z_DS1000Z_ProgrammingGuide_EN.pdf
 

Offline Dave Turner

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #18 on: November 25, 2014, 02:28:11 AM »
Monkeh - that's the exact file I've been searching - it must staring me in the face but I just don't see it.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 5026
  • Country: gb
Re: Using Linux (Ubuntu) to interface with a DS1074Z-S
« Reply #19 on: November 25, 2014, 02:30:47 AM »
Monkeh - that's the exact file I've been searching - it must staring me in the face but I just don't see it.

Page 81 ('2-63'), :DISPlay:DATA?

Also see page 223 ('2-204') for :WAVeform commands to gather raw data.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf