Difference between revisions of "Rigol"
m (→Softwares) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 99: | Line 99: | ||
=DS1054Z Oscilloscope= |
=DS1054Z Oscilloscope= |
||
+ | * 1GSa/s, 24MS of capture when using one single channel |
||
+ | * 500MSa/s, 12MS of capture when using two channels |
||
+ | * 250MSa/s, 6MS of capture when using three or four channels |
||
+ | |||
+ | Using means displaying ''or'' using as trigger ! |
||
+ | |||
==Links== |
==Links== |
||
* https://www.rigolna.com/products/digital-oscilloscopes/1000z/ |
* https://www.rigolna.com/products/digital-oscilloscopes/1000z/ |
||
Line 107: | Line 113: | ||
** [http://www.batronix.com/pdf/Rigol/ProgrammingGuide/MSO1000Z_DS1000Z_ProgrammingGuide_EN.pdf Programming Guide] |
** [http://www.batronix.com/pdf/Rigol/ProgrammingGuide/MSO1000Z_DS1000Z_ProgrammingGuide_EN.pdf Programming Guide] |
||
* [http://int.rigol.com/Support/SoftDownload/3 Latest firmwares] |
* [http://int.rigol.com/Support/SoftDownload/3 Latest firmwares] |
||
+ | |||
+ | Local link: |
||
+ | * http://your_rigol_ip/DS1000Z_WelcomePage.html |
||
==Hacks== |
==Hacks== |
||
Line 120: | Line 129: | ||
* Fan is moderately noisy, someone proposed to [changing fan: https://www.youtube.com/watch?v=taLTQsWEEqc replace it (youtube)] with a Gelid Silent 5 |
* Fan is moderately noisy, someone proposed to [changing fan: https://www.youtube.com/watch?v=taLTQsWEEqc replace it (youtube)] with a Gelid Silent 5 |
||
** I've still some doubts, imho the noise comes from air flow in the box itself, not much from fan, so less noise means less air flow... |
** I've still some doubts, imho the noise comes from air flow in the box itself, not much from fan, so less noise means less air flow... |
||
+ | ** '''update''': I did the change and I highly recommend the operation! It's much silent now! Vcc on middle cable, GND on cable with text. |
||
==Softwares== |
==Softwares== |
||
Line 211: | Line 221: | ||
It seems it acquires only the screen size? How to increase window to the internal 24M? |
It seems it acquires only the screen size? How to increase window to the internal 24M? |
||
+ | ===[https://github.com/mabl/pyRigolWFM pyRigolWFM]=== |
||
− | |||
=DG1022Z Waveform generator= |
=DG1022Z Waveform generator= |
||
Line 226: | Line 236: | ||
* Plug a USB cable between DS1054Z USB device plug (on the back) and DG1022Z USB host plug (on the front) |
* Plug a USB cable between DS1054Z USB device plug (on the back) and DG1022Z USB host plug (on the front) |
||
* DS1022Z: Store -> ... |
* DS1022Z: Store -> ... |
||
+ | * [https://gist.github.com/pklaus/2597049 Controlling the Rigol DG1022 with Python on Linux (using the usbtmc driver) – Proof of Concept] |
Latest revision as of 11:37, 31 January 2018
Generic interfaces for instrumentation
Some background in French in GLMF 124
GPIB
Aka IEEE-488, a standard interface bus, requires an adapter on Rigol instruments and PC so we'll ignore it.
USBTMC
USBTMC is a protocol built on top of USB that allows GPIB-like communication with USB devices. From the user's point of view, the USB device behaves just like a GPIB device. See more on NI site.
- https://github.com/python-ivi/python-usbtmc not tested
- https://github.com/ralfstx/rigol-linux not tested
VXI-11 RPC
VXI stands for VME eXtensions for Instrumentation
VXI-11 is a TCP/IP instrument protocol specification defined by the VXIbus Consortium. Since LXI instruments are based on Ethernet, the TCP/IP interface allows you to communicate with an LXI instrument using the VXI-11 interface.
- https://en.wikipedia.org/wiki/VME_eXtensions_for_Instrumentation
- http://www.lxistandard.org/About/VXI-11-and-LXI.aspx
- https://github.com/python-ivi/python-vxi11 not tested
Generic software for instrumentation
There are different standard APIs/layers to talk to a compatible device:
LXI – LAN Extensions for Instrumentation
See https://lxi.github.io/ and https://github.com/lxi/lxi-tools
git clone https://github.com/lxi/liblxi.git
cd liblxi
./autogen.sh
./configure
make
sudo make install
cd -
git clone https://github.com/lxi/lxi-tools.git
cd lxi-tools
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
SCPI – Standard Commands for Programmable Instruments
VISA – Virtual Instrument Software Architecture
apt-get install vish python-pyvisa python3-pyvisa
IVI – Interchangeable Virtual Instrument
- https://github.com/python-ivi/python-ivi not tested, seems not to support these Rigol devices
Sigrok
Debian version is too old to communicate with Rigol latest fw, so let's install it from git repo:
sudo apt-get install git-core gcc g++ make autoconf autoconf-archive automake libtool pkg-config libglib2.0-dev libglibmm-2.4-dev libzip-dev libusb-1.0-0-dev libftdi-dev check doxygen python-numpy python-dev python-gi-dev python-setuptools swig default-jdk libieee1284-3-dev libqt4-dev libboost-test-dev libboost-thread-dev libboost-filesystem-dev libboost-system-dev libqt5svg5-dev
git clone git://sigrok.org/libserialport
(
cd libserialport
./autogen.sh
./configure
make
sudo make install
)
git clone git://sigrok.org/libsigrok
(
cd libsigrok
./autogen.sh
./configure
make
sudo make install
)
git clone git://sigrok.org/libsigrokdecode
(
cd libsigrokdecode
./autogen.sh
./configure
make
sudo make install
)
git clone git://sigrok.org/sigrok-cli
(
cd sigrok-cli
./autogen.sh
./configure
make
sudo make install
)
git clone git://sigrok.org/pulseview
(
cd pulseview
cmake .
make
sudo make install
)
DS1054Z Oscilloscope
- 1GSa/s, 24MS of capture when using one single channel
- 500MSa/s, 12MS of capture when using two channels
- 250MSa/s, 6MS of capture when using three or four channels
Using means displaying or using as trigger !
Links
- https://www.rigolna.com/products/digital-oscilloscopes/1000z/
- User Guide (from here)
- Programming Guide (from here)
- http://www.batronix.com/shop/oscilloscopes/Rigol-DS1054Z.html
- Latest firmwares
Local link:
Hacks
- ./riglol DS1ZA181234567 DSFR => DS1104Z
- Fan is moderately noisy, someone proposed to [changing fan: https://www.youtube.com/watch?v=taLTQsWEEqc replace it (youtube)] with a Gelid Silent 5
- I've still some doubts, imho the noise comes from air flow in the box itself, not much from fan, so less noise means less air flow...
- update: I did the change and I highly recommend the operation! It's much silent now! Vcc on middle cable, GND on cable with text.
Softwares
pyDSA
Spectrum Analyzer for the Rigol DS1000 series oscilloscopes
Still using PyVISA 1.4 instead of PyVISA 1.8, to be tested in a virtenv...
DSRemote
git clone https://github.com/Teuniz/DSRemote
cd DSRemote
qmake
make -j8
sudo make install
On HiDPI screen:
QT_AUTO_SCREEN_SCALE_FACTOR=1 ./dsremote
See help for usage & shortcuts
To change memory depth: acq / mem depth / ... To save waveform: save / wave inspector / ... => EDF file
EDF? => apt-get install edfbrowser => no hidpi and not clear how to browse trace...
DS1054Z screen capture OscScreenGrabLAN
git clone https://github.com/RoGeorge/DS1054Z_screen_capture
cd DS1054Z_screen_capture
Usage examples:
python OscScreenGrabLAN.py png 192.168.1.60
python OscScreenGrabLAN.py csv 192.168.1.60
ds1054z Python library
pip install ds1054z[savescreen,discovery]
Quick & dirty screen capture
echo ":DISPLAY:DATA? ON,OFF,PNG" | nc -w1 192.168.1.60 5555 | tail -c +12|head -c -1 > DS1104Z_$(date '+%Y-%m-%d_%H.%M.%S').png
Quick & dirty waveform capture
echo ":WAV:DATA?" | nc -w1 192.168.1.60 5555 | tail -c +12|head -c -1 > DS1104Z_$(date '+%Y-%m-%d_%H.%M.%S').raw
TODO: increase capture size
Quick & dirty RESET
echo "*RST" | nc -w1 192.168.1.60 5555
Quick & dirty identification
echo "*IDN?" | nc -w1 192.168.1.60 5555
Sigrok
See above for sigrok installation
sigrok-cli
sigrok-cli -d rigol-ds:conn=tcp-raw/192.168.1.60/5555 --scan The following devices were found: rigol-ds - Rigol DS1104Z 00.04.04.SP3 with 4 channels: CH1 CH2 CH3 CH4
sigrok-cli -d rigol-ds:conn=tcp-raw/192.168.1.60/5555 -O analog --frames 1
Trying other outputs seems bogus...
sigrok-cli -d rigol-ds:conn=tcp-raw/192.168.1.60/5555 -O wav --frames 1 -o /tmp/wav
=> ok but surrounded "FRAME-BEGIN\n" "FRAME-END", workaround:
sigrok-cli -d rigol-ds:conn=tcp-raw/192.168.1.60/5555 -O wav --frames 1 |tail -c +13|head -c -10 > /tmp/1.wav
sigrok-cli -d rigol-ds:conn=tcp-raw/192.168.1.60/5555 -O csv --frames 1
=> ok but mixed with analog, workaround:
sigrok-cli -d rigol-ds:conn=tcp-raw/192.168.1.60/5555 -O csv --frames 1 |sed '/^$/,/FRAME-END/d' > /tmp/1.csv
Other outputs (binary, hex, ...) all produce the analog output
pulseview
On HiDPI screen:
QT_AUTO_SCREEN_SCALE_FACTOR=1 pulseview
It seems it acquires only the screen size? How to increase window to the internal 24M?
pyRigolWFM
DG1022Z Waveform generator
Links
- https://www.rigolna.com/products/waveform-generators/dg1000z/
- User Guide (from here)
- Programming Guide (from here)
- http://www.batronix.com/shop/waveform-generator/Rigol-DG1022Z.html
- Latest firmwares
Howtos
Coupling DS1054Z and DG1022Z
- Plug a USB cable between DS1054Z USB device plug (on the back) and DG1022Z USB host plug (on the front)
- DS1022Z: Store -> ...
- Controlling the Rigol DG1022 with Python on Linux (using the usbtmc driver) – Proof of Concept