source: trunk/FACT++/munin/agilent_volt@ 16761

Last change on this file since 16761 was 16761, checked in by tbretz, 12 years ago
  • Property svn:executable set to *
File size: 747 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 (90V)
12EOM
13 exit 0;;
14esac
15
16DATA220=`echo -e -n "meas:volt?\n" | nc 10.0.100.220 5025`
17RC220=$?
18
19if [ "$RC220" == "0" ] ; then
20 echo agilent_volt1.value `printf %.3f ${DATA220}`
21fi
22
23DATA222=`echo -e -n "meas:volt?\n" | nc 10.0.100.222 5025`
24RC222=$?
25
26if [ "$RC222" == "0" ] ; then
27 echo agilent_volt3.value `printf %.3f ${DATA222}`
28fi
29
30DATA224=`echo -e -n "meas:volt?\n" | nc 10.0.100.224 5025`
31RC224=$?
32
33if [ "$RC224" == "0" ] ; then
34 echo agilent_volt2.value `printf %.3f ${DATA224}`
35fi
36
Note: See TracBrowser for help on using the repository browser.