CHANNELS=1 2 3 4 #CHANNELS=1 scope_address=nc -q 3 RigolDS1074e 5555 output=RigolDS1074e turn_on: turn_off: ping: ping RigolDS1074e arming: echo ":SINGLe"|$(scope_address) acquisition: echo "Performing Rigol DS1074e DAS acquisition"|tee -a /home/svoboda/GOLEM/web/roperation/RemoteTokamak/actions.log for channel in $(CHANNELS);\ do make getdata CHANNEL=$$channel ;\ done;\ paste data* > data_all #python2 acquisition.py make getscreenshot #python2 main.py acquisition plots: echo '

Rigol oscilloscope

Screenshot

Data


Generated by makefile.' >> $(output).html #python2 main.py plots getdata: echo "Rigol DS1074e: Downloading data for channel $(CHANNEL)" echo ":WAV:SOURCE CHAN$(CHANNEL);:WAV:FORM ASCii;:WAV:MODE NORM" |$(scope_address);sleep 0.5s;echo ":WAV:DATA?" |$(scope_address)|cut -c 12-|sed 's/,/\n/g'|tee data$(CHANNEL)|gnuplot -e 'set terminal jpeg;plot " plot$(CHANNEL).jpg; getscreenshot: #echo "display:data?" |$(scope_address)| dd bs=1 skip=11 2>/dev/null | convert bmp:- screenshot.png echo ":DISPLAY:DATA? ON,OFF,PNG" | nc -w1 RigolDS1074e 5555 | dd bs=1 skip=11 of=screenshot.png convert -resize 150x120\! screenshot.png icon.png clean: off: