This is a simple Linux shell script that Im using sometimes to capture screenshots from oscilloscopes via network.
Tested with Rigol DS1054Z and Rigol DHO924S. If You tried on other machines, please let me know - despite of results.
Most likely it should work with other Rigol equipment.
- At least one oscilloscope...
- Working network connection with scope.
- Any computer with Linux/GNU based system. Theoretically it should work with other *nix systems with GNU software, because its not "bash-only".
- About 5-15 minutes of time.
- Check scope ip address - if You dont know how to find/set it, then read manual of Your current device. Every device is different.
- Test network connection via ping. Just open a console or terminal and type ping putYourScopeIpAdressHere [enter...].
- Put file rigol.sh anywhere You want. But...
- File rigol.sh should have read and execution permissions. You can do it like this:
chmod a+rx rigol.sh - Script can be anytime executed via shell console (text terminal) like any other script. Some examples:
rigol.sh
./rigol.sh
/home/user-name/some-directory/rigol.sh
sh rigol.sh - All files will be saved in ${HOME}/Images/RIGOL (${HOME} means Your home directory) with date and time in filename - unless second arg with filename is provided.
- You can give argument(s) with other file name, ip address or file name which contains ip address. Use -h argument (./rigol.sh -h or rigol.sh -h) to know how to use it.
- This script is capable of reading stored ip addresses in text files. Just give a filename of this text file in first arg. Default hardcoded location is: /home/YourUserName/.config/scope_ip/nameOfTextFileWithOscilloscopeIpAddress.
- Also You can create some graphical activator (shortcut) if You prefer/want to click/touch instead of calling it in terminal. Example is in next chapter below...
Years ago I found very easy, short and unlicensed script doing basicaly same thing, which I modified, rewrited and modified again. It was unlicenced, so I decided to left it still unlicensed (do what You like with it). Big thanks for primary author, whoever (s)he is.