#!/bin/bash #cat /etc/samba/smb.conf function SendCommandToTheDevice() { echo $1|netcat -q 3 $TheOscilloscope 4000 } function LoadSetupRIGOL() { SendCommandToTheDevice ":LOAD:SETup $1" echo OK } function SingleSeq() { SendCommandToTheDevice ":SAVEon:TRIG ON" SendCommandToTheDevice "FPANEL:PRESS SINGLESEQ" } function GetOscScreenShot() { /usr/bin/python ~/Support/main.py save_screenshot $SHM0/$SUBDIR/$ThisDev/ScreenShot.png }