source: trunk/FACT++/munin/agilent_curr@ 19779

Last change on this file since 19779 was 16762, checked in by tbretz, 12 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
3case $1 in
4 config)
5 cat <<'EOM'
6graph_title Agilent current
7graph_vlabel current
8graph_category environment
9agilent_cur1.label Camera current
10agilent_cur2.label Interlock current
11agilent_cur3.label Bias current
12EOM
13 exit 0;;
14esac
15
16DATA=`echo -e -n "meas:curr?\n" | nc 10.0.100.220 5025`
17RC=$?
18#echo $RC $DATA
19DATA=`printf %.3f ${DATA}`
20if [ "$RC" == "0" -a $DATA != "0.000" ] ; then
21 echo agilent_cur1.value $DATA
22fi
23
24DATA=`echo -e -n "meas:curr?\n" | nc 10.0.100.224 5025`
25RC=$?
26#echo $RC $DATA
27DATA=`printf %.3f ${DATA}`
28if [ "$RC" == "0" -a $DATA != "0.000" ] ; then
29 echo agilent_cur2.value $DATA
30fi
31
32DATA=`echo -e -n "meas:curr?\n" | nc 10.0.100.222 5025`
33RC=$?
34#echo $RC $DATA
35DATA=`printf %.3f ${DATA}`
36if [ "$RC" == "0" -a $DATA != "0.000" ] ; then
37 echo agilent_cur3.value $DATA
38fi
39
Note: See TracBrowser for help on using the repository browser.