Revision 2ea7698ff7e59d1867a9ea1375c95e75e00ae1a6

HW/Radiation/Monitoring/Fluke451P/sandbox/index

Changes from beginning to 2ea7698ff7e59d1867a9ea1375c95e75e00ae1a6

---
format:markdown
...
 
~~~ 
echo -n "T"|nc  -w 2 192.168.2.249 10001
echo -ne "T"|telnet 192.168.2.249 10001

# DO CO modu:
echo -n "T" | socat STDIN TCP:192.168.2.249:10001
~~~

Cosi nadejneho se delo:
~~~
Spusteni test modu
echo -n "T" | socat STDIN TCP:192.168.2.249:10001
.... nabirani .. a zpet do CO modu:
echo -n "T" | socat STDIN TCP:192.168.2.249:10001
sejmuti a vykresleni ...
file=VIII;echo -n "X"|netcat -w 10 192.168.2.249 10001 > LogDataEntry$file;ll;echo 'plot "LogDataEntry'$file'" u 0:3'|gnuplot -persist 
~~~

Lepe (040917)??
~~~
echo -ne "T"|netcat  192.168.2.249 10001

file=IV;echo -n "X"|netcat -w 1 192.168.2.249 10001;netcat -w 10 192.168.2.249 10001 > LogDataEntry$file;echo 'plot "LogDataEntry'$file'" u 0:3'|gnuplot -persist & echo 'set terminal jpeg;plot "LogDataEntry'$file'" u 0:3'|gnuplot > LogDataEntry$file.jpg;ll

echo -ne "T"|netcat  192.168.2.249 10001

~~~

Komunikovat lze takto:
~~~
echo -ne "F"|netcat -w 1 192.168.2.249 10001;netcat -w 3 192.168.2.249 10001
~~~

Takze:
Integrovana davka:

Start mereni:
echo -ne "T"|netcat -w 10 192.168.2.249 10001
Stop mereni:
for i in `seq 1 20`; do echo -ne " "|netcat -w 10 192.168.2.249 10001; sleep 0.1;done
Cteni mereni
echo -ne "F"|netcat -w 1 192.168.2.249 10001;netcat -w 3 192.168.2.249 10001


Skript:

~~~
# Just to train the strange Fluke:
echo -ne " "|netcat -w 10 192.168.2.249 10001;sleep 3s;echo -ne " "|netcat -w 10 192.168.2.249 10001; sleep 3s
# and go on ...
echo Start the measurement ...
echo -ne "T"|netcat -w 10 192.168.2.249 10001
for i in `seq 1 $1`; do sleep 10; echo $i x 10s/$1; done # wait to integrate dose in tens of seconds ..
echo Stopping the measurement
for i in `seq 1 30`; do echo -ne " "|netcat -w 10 192.168.2.249 10001; sleep 0.3;done
sleep 5s # just to wait
echo Reading and logging it ...
date|tr '\n' ' '|tee -a GlobalLog;echo -ne ':::'$1' x 10s::: '|tee -a GlobalLog;echo -ne "F"|netcat -w 1 192.168.2.249 10001;netcat -w 3 192.168.2.249 10001|grep Sieverts|tee -a GlobalLog
sleep 5s # just to wait
echo -ne "X"|netcat -w 1 192.168.2.249 10001;socat -T 60 -u TCP:192.168.2.249:10001 STDOUT > Log`date '+%d%m%y%H%M%S'`

#(log Dava 150 radku za 10 minut)

# echo 'plot "Log040917152351" u 0:3'|gnuplot --persist

~~~