Last change
on this file since 19811 was 16762, checked in by tbretz, 11 years ago |
Do not add zero values, they just bias the average.
|
-
Property svn:executable
set to
*
|
File size:
828 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | case $1 in
|
---|
4 | config)
|
---|
5 | cat <<'EOM'
|
---|
6 | graph_title Agilent current
|
---|
7 | graph_vlabel current
|
---|
8 | graph_category environment
|
---|
9 | agilent_cur1.label Camera current
|
---|
10 | agilent_cur2.label Interlock current
|
---|
11 | agilent_cur3.label Bias current
|
---|
12 | EOM
|
---|
13 | exit 0;;
|
---|
14 | esac
|
---|
15 |
|
---|
16 | DATA=`echo -e -n "meas:curr?\n" | nc 10.0.100.220 5025`
|
---|
17 | RC=$?
|
---|
18 | #echo $RC $DATA
|
---|
19 | DATA=`printf %.3f ${DATA}`
|
---|
20 | if [ "$RC" == "0" -a $DATA != "0.000" ] ; then
|
---|
21 | echo agilent_cur1.value $DATA
|
---|
22 | fi
|
---|
23 |
|
---|
24 | DATA=`echo -e -n "meas:curr?\n" | nc 10.0.100.224 5025`
|
---|
25 | RC=$?
|
---|
26 | #echo $RC $DATA
|
---|
27 | DATA=`printf %.3f ${DATA}`
|
---|
28 | if [ "$RC" == "0" -a $DATA != "0.000" ] ; then
|
---|
29 | echo agilent_cur2.value $DATA
|
---|
30 | fi
|
---|
31 |
|
---|
32 | DATA=`echo -e -n "meas:curr?\n" | nc 10.0.100.222 5025`
|
---|
33 | RC=$?
|
---|
34 | #echo $RC $DATA
|
---|
35 | DATA=`printf %.3f ${DATA}`
|
---|
36 | if [ "$RC" == "0" -a $DATA != "0.000" ] ; then
|
---|
37 | echo agilent_cur3.value $DATA
|
---|
38 | fi
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.