-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadcpage.html
182 lines (150 loc) · 6.28 KB
/
adcpage.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="dygraph-combined.js"></script>
<title>Pixie-Net ADC</title>
<style type="text/css">
body { background-color:#d0d0d0; font-family:sans-serif; }
h1 { margin:0; font-size:24px }
h2 { margin-top:15px; font-size:20px; font-weight:normal; border-bottom:1px solid #ff9040 }
p { font-size:14px }
li { font-size:14px }
a { color:#6060d0; text-decoration:none }
a:hover { text-decoration:underline }
.header { padding: 20px; text-align: center; background: #1e73be; color: white; }
.header h1 { font-size: 40px; }
/* Ensure proper sizing */
* { box-sizing: border-box; }
/* Column container */
.row { display: flex; flex-wrap: wrap; }
/* Sidebar/left column */
.side { height: 100%; width: 180px; position: fixed; background-color: white; padding: 20px; }
.side a { float: left; display: block; color: #002b80; text-align: left; padding: 10px 10px; text-decoration: none; }
.side a:hover { background-color: #ddd; color: #1e73be; }
/* bottom help section */
.fixed_bot { position: fixed; bottom: 0; left: 0; width: 180px; padding: 20px }
.fixed_bot p {font-size: 11px; }
.fixed_bot a {font-size: 12px; }
/* Main column */
.main { margin-left: 180px; padding: 20px; }
.w3-card-2{
background-color:white;
border-radius:3px;
padding: 10px;
margin-bottom: 20px;
box-shadow:0 4px 10px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)
}
.tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; }
.tooltip .tooltiptext {
visibility: hidden;
width: 250px;
background-color: #1e73be;
color: white;
text-align: left;
border-radius: 6px;
padding: 5px 5px;
position: absolute;
z-index: 1;
}
.tooltip:hover .tooltiptext { visibility: visible; width: 250px; top: 100%; left: 80%; margin-left: -60px; }
</style>
</head>
<body>
<div class="header">
<h1>Pixie-Net ADC Traces (file)</h1>
</div>
<div class="row">
<div class="side">
<img src="xialogo.jpg" width="140" height=auto alt="XIA Logo">
<p> </p>
<a href="/index.html"> Home </a>
<a href="cgitraces.cgi"> Current ADC traces </a>
<a href="cgistats.cgi"> Current run statistics </a>
<a href="mcapage.html">Most recent <br> MCA spectra</a>
<a href="/webops/webopsindex.html"> Web interface </a>
<div class="fixed_bot">
<h2>Help</h2>
<i><p>This page displays the ADC waveforms saved to file ADC.csv by gettraces. </p>
<p>Double click to auto zoom </p>
<p>Click and drag to zoom </p>
<p>Alt click and drag to pan </p>
<p>Use browser button to refresh </p>
<p>Sample interval defined in settings file (XDT ch.0) </p></i>
</div>
</div>
<div class="main">
<div class="w3-card-2">
<div id="graphdiv2" style="width:500px; height:300px; background-color:white;"></div>
<div id = "legend" style="width:500px; height:80px; background-color:white;" ></div>
<input id='showall' type="button" value="Show All" onclick="showall(true)">
<input id='hideall' type="button" value="Hide All" onclick="showall(false)">
<p><b>Show</b></p>
<p>
<input type="checkbox" id="0" checked="checked" onclick="change(this)">
<label for="0"> adc00 </label>
<input type="checkbox" id="1" checked="checked" onclick="change(this)">
<label for="1"> adc01 </label>
<input type="checkbox" id="2" checked="checked" onclick="change(this)">
<label for="2"> adc02 </label>
<input type="checkbox" id="3" checked="checked" onclick="change(this)">
<label for="3"> adc03 </label><br>
<input type="checkbox" id="4" checked="checked" onclick="change(this)">
<label for="4"> adc04 </label>
<input type="checkbox" id="5" checked="checked" onclick="change(this)">
<label for="5"> adc05 </label>
<input type="checkbox" id="6" checked="checked" onclick="change(this)">
<label for="6"> adc06 </label>
<input type="checkbox" id="7" checked="checked" onclick="change(this)">
<label for="7"> adc07 </label><br>
<input type="checkbox" id="8" checked="checked" onclick="change(this)">
<label for="8"> adc08 </label>
<input type="checkbox" id="9" checked="checked" onclick="change(this)">
<label for="9"> adc09 </label>
<input type="checkbox" id="10" checked="checked" onclick="change(this)">
<label for="10"> adc10 </label>
<input type="checkbox" id="11" checked="checked" onclick="change(this)">
<label for="11"> adc11 </label><br>
<input type="checkbox" id="12" checked="checked" onclick="change(this)">
<label for="12"> adc12 </label>
<input type="checkbox" id="13" checked="checked" onclick="change(this)">
<label for="13"> adc13 </label>
<input type="checkbox" id="14" checked="checked" onclick="change(this)">
<label for="14"> adc14 </label>
<input type="checkbox" id="15" checked="checked" onclick="change(this)">
<label for="15"> adc15 </label><br>
</p>
</div>
</div>
</div>
<script type="text/javascript">
var g2 = new Dygraph(
document.getElementById("graphdiv2"),
"ADC.csv", // path to CSV file
{ // graph options
title: ' ',
colors:
["Navy", "Maroon", "DarkMagenta", "Black",
"Blue", "Red", "BlueViolet", "Green",
"Teal", "Darkorange","Fuchsia", "Olive" ,
"Aqua", "Gold", "Gray", "Lime" ],
ylabel: 'ADC value',
xlabel: 'Time (us)',
labelsDiv: document.getElementById('legend'),
legend: 'always',
visibility: [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true]
}
);
function change(el) {
g2.setVisibility(el.id, el.checked);
}
var graphs = [ g2 ];
function showall(val) {
for (var idx = 0; idx < graphs.length; idx++) {
graphs[idx].updateOptions({ visibility: [val, val, val, val, val, val, val, val, val, val, val, val, val, val, val, val] });
}
}
</script>
</body>
</html>