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