source: branches/testFACT++branch/munin/agilent_volt@ 18528

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