CHANNELS=1 2 setup: echo "ch1...vystup ze zesilovace" echo "ch2...pila" echo "ch3...trigger pily" echo "ch4...off" arming: wget http://TektronixDPO3014a/download.cgi?"command=:FPANEL:PRESS+SINGLESEQ" -O /dev/null 2>log acquisition: echo "Performing Tektronix DPO 3014 DAS acquisition"|tee -a /home/svoboda/GOLEM/web/roperation/RemoteTokamak/actions.log for channel in $(CHANNELS);\ do make getdata CHANNEL=$$channel ;\ done;\ # make convert_isf2csv & python2 main.py acquisition plots: python2 main.py plots getdata: wget -T2 http://TektronixDPO3014a/download.cgi?"command=select:ch$(CHANNEL) on" -O /dev/null 2>>log wget -T2 http://TektronixDPO3014a/download.cgi?"command=save:waveform:fileformat internal" -O /dev/null 2>>log echo "TektronixDPO3014: Downloading data for channel $(CHANNEL)" wget -T2 http://TektronixDPO3014a/download.cgi?'wfmsend=Get' -O ch$(CHANNEL).isf 2>>log # convert_isf2csv: # echo "TektronixDPO3014: Converting ISF data to CSV in the background" # for isf_file in `ls *isf` ;\ # do wine cnvrtwfm.exe -l $$isf_file;\ # done;\ # echo "1" > dataready clean: rm download* log dataready *isf *csv off: wget http://TektronixDPO3014a/download.cgi?'command=select:ch2 on' 2>>log wget http://TektronixDPO3014a/download.cgi?'wfmsend=Get' -O ch2 2>>log wget http://TektronixDPO3014a/download.cgi?'command=select:ch3 on' 2>>log wget http://TektronixDPO3014a/download.cgi?'wfmsend=Get' -O ch3 2>>log wget http://TektronixDPO3014a/download.cgi?'command=select:ch4 on' 2>>log wget http://TektronixDPO3014a/download.cgi?'wfmsend=Get' -O ch4 2>>log echo "1" > dataready rm download.*