dial_a_device_node 0.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +674 -0
- data/README.md +94 -0
- data/Rakefile +1 -0
- data/app/assets/images/denver_summit.jpg +0 -0
- data/app/assets/images/eppendorf_innova_42.jpg +0 -0
- data/app/assets/images/heidolph.jpg +0 -0
- data/app/assets/images/ika_ret_control.jpg +0 -0
- data/app/assets/images/kern.jpg +0 -0
- data/app/assets/images/knf_rc900.jpg +0 -0
- data/app/assets/images/knf_sc920.jpg +0 -0
- data/app/assets/images/knf_simdos_02.jpg +0 -0
- data/app/assets/images/pce_balance.jpg +0 -0
- data/app/assets/images/purebeaglebone.jpg +0 -0
- data/app/assets/images/weathercape.jpg +0 -0
- data/app/assets/javascripts/dial_a_device_node/consolelogger.js +176 -0
- data/app/assets/javascripts/dial_a_device_node/deviceconnection.js +225 -0
- data/app/assets/javascripts/dial_a_device_node/devices/denver_summit.js +153 -0
- data/app/assets/javascripts/dial_a_device_node/devices/denver_summit_SIM.js +111 -0
- data/app/assets/javascripts/dial_a_device_node/devices/denver_summit_UI.js +121 -0
- data/app/assets/javascripts/dial_a_device_node/devices/eppendorf_innova_42.js +128 -0
- data/app/assets/javascripts/dial_a_device_node/devices/eppendorf_innova_42_SIM.js +66 -0
- data/app/assets/javascripts/dial_a_device_node/devices/eppendorf_innova_42_UI.js +46 -0
- data/app/assets/javascripts/dial_a_device_node/devices/heidolph.js +62 -0
- data/app/assets/javascripts/dial_a_device_node/devices/heidolph_SIM.js +24 -0
- data/app/assets/javascripts/dial_a_device_node/devices/heidolph_UI.js +17 -0
- data/app/assets/javascripts/dial_a_device_node/devices/ika_ret_control.js +192 -0
- data/app/assets/javascripts/dial_a_device_node/devices/ika_ret_control_SIM.js +233 -0
- data/app/assets/javascripts/dial_a_device_node/devices/ika_ret_control_UI.js +96 -0
- data/app/assets/javascripts/dial_a_device_node/devices/kern.js +137 -0
- data/app/assets/javascripts/dial_a_device_node/devices/kern_SIM.js +118 -0
- data/app/assets/javascripts/dial_a_device_node/devices/kern_UI.js +121 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_rc900.js +289 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_rc900_SIM.js +188 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_rc900_UI.js +179 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_sc920.js +309 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_sc920_SIM.js +298 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_sc920_UI.js +441 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_simdos_02.js +283 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_simdos_02_SIM.js +130 -0
- data/app/assets/javascripts/dial_a_device_node/devices/knf_simdos_02_UI.js +188 -0
- data/app/assets/javascripts/dial_a_device_node/devices/legacy_vnc.js +106 -0
- data/app/assets/javascripts/dial_a_device_node/devices/legacy_vnc_SIM.js +32 -0
- data/app/assets/javascripts/dial_a_device_node/devices/legacy_vnc_UI.js +26 -0
- data/app/assets/javascripts/dial_a_device_node/devices/pce_balance.js +111 -0
- data/app/assets/javascripts/dial_a_device_node/devices/pce_balance_SIM.js +80 -0
- data/app/assets/javascripts/dial_a_device_node/devices/pce_balance_UI.js +69 -0
- data/app/assets/javascripts/dial_a_device_node/devices/purebeaglebone.js +286 -0
- data/app/assets/javascripts/dial_a_device_node/devices/purebeaglebone_SIM.js +13 -0
- data/app/assets/javascripts/dial_a_device_node/devices/purebeaglebone_UI.js +256 -0
- data/app/assets/javascripts/dial_a_device_node/devices/weathercape.js +75 -0
- data/app/assets/javascripts/dial_a_device_node/devices/weathercape_SIM.js +33 -0
- data/app/assets/javascripts/dial_a_device_node/devices/weathercape_UI.js +42 -0
- data/app/assets/javascripts/dial_a_device_node/folderwatcher.js +43 -0
- data/app/assets/javascripts/dial_a_device_node/helper/WebSocket-Node-wrapper.js +36 -0
- data/app/assets/javascripts/dial_a_device_node/helper/XMLHttpRequest.js +579 -0
- data/app/assets/javascripts/dial_a_device_node/helper/agent.js +125 -0
- data/app/assets/javascripts/dial_a_device_node/helper/ajax.js +300 -0
- data/app/assets/javascripts/dial_a_device_node/helper/type.js +10 -0
- data/app/assets/javascripts/dial_a_device_node/php/comport.php +49 -0
- data/app/assets/javascripts/dial_a_device_node/php/php_serial.class.php +622 -0
- data/app/assets/javascripts/dial_a_device_node/systemstatus.js +124 -0
- data/app/assets/javascripts/dial_a_device_node/webconnection.js +197 -0
- data/app/assets/javascripts/dial_a_device_node/websocket_rails/abstract_connection.js.coffee +45 -0
- data/app/assets/javascripts/dial_a_device_node/websocket_rails/channel.js.coffee +70 -0
- data/app/assets/javascripts/dial_a_device_node/websocket_rails/event.js.coffee +42 -0
- data/app/assets/javascripts/dial_a_device_node/websocket_rails/http_connection.js.coffee +89 -0
- data/app/assets/javascripts/dial_a_device_node/websocket_rails/websocket_connection.js.coffee +37 -0
- data/app/assets/javascripts/dial_a_device_node/websocket_rails/websocket_rails.js.coffee +164 -0
- data/app/views/devices/ui/_denver_summit.html.erb +52 -0
- data/app/views/devices/ui/_eppendorf_innova_42.html.erb +72 -0
- data/app/views/devices/ui/_heidolph.html.erb +54 -0
- data/app/views/devices/ui/_ika_ret_control.html.erb +81 -0
- data/app/views/devices/ui/_kern.html.erb +52 -0
- data/app/views/devices/ui/_knf_rc900.html.erb +143 -0
- data/app/views/devices/ui/_knf_sc920.html.erb +194 -0
- data/app/views/devices/ui/_knf_simdos_02.html.erb +98 -0
- data/app/views/devices/ui/_pce_balance.html.erb +37 -0
- data/app/views/devices/ui/_purebeaglebone.html.erb +137 -0
- data/app/views/devices/ui/_weathercape.html.erb +313 -0
- data/beaglebonechip.js +57 -0
- data/dial-a-device-web.js +84 -0
- data/dial_a_device_node.gemspec +23 -0
- data/dial_a_device_node.js +419 -0
- data/lib/dial_a_device_node.rb +6 -0
- data/lib/dial_a_device_node/version.rb +3 -0
- data/package.json +35 -0
- data/start.js +40 -0
- metadata +161 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
|
|
2
|
+
<div class="row-fluid clearfix" style="height: 160px;">
|
|
3
|
+
|
|
4
|
+
<div class="col-md-5 col-sm-5">
|
|
5
|
+
|
|
6
|
+
<div id="gauge1" class="200x160px"></div>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<div class="inline" id="temperature_setpoint"> </div>
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
|
|
13
|
+
smartinput ("temperature_setpoint", function(val) {
|
|
14
|
+
ui.setTemperatureSetpoint(val);
|
|
15
|
+
}, "Set (°C)");
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<div class="btn-group btn-group-justified">
|
|
19
|
+
|
|
20
|
+
<div class="btn-group">
|
|
21
|
+
|
|
22
|
+
<button id="heaterbutton" name="heaterbutton" class="col-md-6 col-sm-6 btn btn-warning btn-lg" onclick="ui.toggleHeater();" data-toggle="button"><span id="heatericon" name="heatericon" class="glyphicon" />Heater</button>
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="col-md-5 col-sm-5">
|
|
31
|
+
|
|
32
|
+
<div id="gauge2" class="200x160px"></div>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<div class="inline" id="rotation_setpoint"> </div>
|
|
37
|
+
|
|
38
|
+
<script type="text/javascript">
|
|
39
|
+
|
|
40
|
+
smartinput ("rotation_setpoint", function(val) {
|
|
41
|
+
ui.setRotationSetpoint(val);
|
|
42
|
+
}, "Set (rpm)");
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<div class="btn-group btn-group-justified">
|
|
46
|
+
|
|
47
|
+
<div class="btn-group">
|
|
48
|
+
|
|
49
|
+
<button id="stirrerbutton" name="stirrerbutton" class="col-md-6 col-sm-6 btn btn-warning btn-lg" onclick="ui.toggleStirrer();" data-toggle="button"><span id="stirrericon" name="stirrericon" class="glyphicon" />Stirrer</button>
|
|
50
|
+
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<script>
|
|
62
|
+
var g1 = new JustGage({
|
|
63
|
+
id: "gauge1",
|
|
64
|
+
value: 0,
|
|
65
|
+
min: 0,
|
|
66
|
+
max: 280,
|
|
67
|
+
title: "Temperature",
|
|
68
|
+
label: "° C"
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
var g2 = new JustGage({
|
|
72
|
+
id: "gauge2",
|
|
73
|
+
value: 0,
|
|
74
|
+
min: 0,
|
|
75
|
+
max: 1700,
|
|
76
|
+
title: "Rotation",
|
|
77
|
+
label: "rpm"
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
</script>
|
|
81
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<div class="row-fluid" style="margin-top:20px;">
|
|
2
|
+
<div class="span12">
|
|
3
|
+
<div id="tab2" name="tab2" class="well" style="text-align: center";>
|
|
4
|
+
<label id="Display" name="Display" ><span id="iDisplay" style="font-size: 20px;"></span></label>
|
|
5
|
+
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<div class="row-fluid">
|
|
12
|
+
<div class="span12">
|
|
13
|
+
|
|
14
|
+
<span class="btn-group">
|
|
15
|
+
<button id="powerbutton" name="powerbutton" class="btn btn-warning btn-large" onclick="ui.togglepower(); "><i id="powericon" name="powericon" class="icon-play"></i> <span id="power">POWER</span></button>
|
|
16
|
+
</span>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
<span class="btn-group">
|
|
21
|
+
<button id="reset" name="RESET" class=" btn btn-inverse btn-large" onclick="ui.reset(); " >RESET</button>
|
|
22
|
+
</span>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<span class="btn-group">
|
|
26
|
+
<button id="Calibrate" name="Cal" class=" btn btn-info btn-large" onclick="ui.calibration();">CAL </button>
|
|
27
|
+
</span>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
<span class="btn-group">
|
|
31
|
+
|
|
32
|
+
<button id="tare" name="TARE" class="btn btn-danger btn-large " onclick="ui.tare();" > TARE </button>
|
|
33
|
+
</span>
|
|
34
|
+
|
|
35
|
+
<span class="btn-group">
|
|
36
|
+
<button id="print" name="PRINT" class=" btn btn-success btn-large" onclick="ui.print(); " > PRINT</button>
|
|
37
|
+
</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<span class="btn-group">
|
|
42
|
+
<button id="autoprintbutton" name="autoprintbutton" class=" btn btn-warning btn-large" onclick="ui.toggleautoprint(); " ><i id="autoprinticon" name="autoprinticon" class="icon-play"></i> <span id="autoprint">AUTOPRINT</span></button>
|
|
43
|
+
</span>
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<script type="text/javascript">
|
|
48
|
+
if (connectiontype == "simulation") {
|
|
49
|
+
//ev.emit("device.set.print");
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
</div>
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
|
|
2
|
+
<span class="btn-group inline">
|
|
3
|
+
<button id="coolantbutton" name="coolantbutton" class=" btn btn-success btn-large" onclick="ui.toggleCoolant(); " data-toggle="button"><span id="coolanticon" name="coolanticon" class="glyphicon glyphicon-star" /> <span id="coolant">Coolant</span></button>
|
|
4
|
+
</span>
|
|
5
|
+
|
|
6
|
+
<span class="btn-group inline">
|
|
7
|
+
<button id="stopbutton" name="stopbutton" class=" btn btn-danger btn-large" onclick="ui.Stop();"><span id="coolant">STOP</span></button>
|
|
8
|
+
</span>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<br>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<div class="row-fluid clearfix" style="height: 160px;">
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<div class="col-md-5 col-sm-5">
|
|
18
|
+
|
|
19
|
+
<div id="gauge1" class="200x160px"></div>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<div class="inline" id="temperature_setpoint"> </div>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript">
|
|
25
|
+
|
|
26
|
+
smartinput ("temperature_setpoint", function(val) {
|
|
27
|
+
ui.setTemperatureSetpoint(val);
|
|
28
|
+
}, "Set (°C)");
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<div class="btn-group btn-group-justified">
|
|
32
|
+
|
|
33
|
+
<div class="btn-group">
|
|
34
|
+
|
|
35
|
+
<button id="heaterbutton" name="heaterbutton" class="col-md-6 col-sm-6 btn btn-warning btn-lg" onclick="ui.toggleHeater();" data-toggle="button"><span id="heatericon" name="heatericon" class="glyphicon" />Heater</button>
|
|
36
|
+
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="col-md-5 col-sm-5">
|
|
44
|
+
|
|
45
|
+
<div id="gauge2" class="200x160px"></div>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div class="inline" id="rotation_setpoint"> </div>
|
|
50
|
+
|
|
51
|
+
<script type="text/javascript">
|
|
52
|
+
|
|
53
|
+
smartinput ("rotation_setpoint", function(val) {
|
|
54
|
+
ui.setRotationSetpoint(val);
|
|
55
|
+
}, "Set (rpm)");
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<div class="btn-group btn-group-justified">
|
|
59
|
+
|
|
60
|
+
<div class="btn-group">
|
|
61
|
+
|
|
62
|
+
<button id="rotationbutton" name="rotationbutton" class="col-md-6 col-sm-6 btn btn-warning btn-lg" onclick="ui.toggleRotation();" data-toggle="button"><span id="rotationicon" name="rotationicon" class="glyphicon" />Rotation</button>
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<br>
|
|
74
|
+
<br>
|
|
75
|
+
|
|
76
|
+
<div class="row-fluid clearfix" style="height: 160px;">
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<div class="col-md-5 col-sm-5">
|
|
80
|
+
|
|
81
|
+
<div id="gauge3" class="200x160px"></div>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<div class="inline" id="lift_setpoint"> </div>
|
|
85
|
+
|
|
86
|
+
<script type="text/javascript">
|
|
87
|
+
|
|
88
|
+
smartinput ("lift_setpoint", function(val) {
|
|
89
|
+
ui.setLiftSetpoint(val);
|
|
90
|
+
}, "Set");
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<div class="btn-group btn-group-justified">
|
|
94
|
+
|
|
95
|
+
<div class="btn-group">
|
|
96
|
+
|
|
97
|
+
<button id="upbutton" name="upbutton" class="col-md-6 col-sm-6 btn btn-success btn-lg" onmousedown="ui.liftUp();" onmouseup="ui.liftUpStop();">Up</button>
|
|
98
|
+
|
|
99
|
+
<button id="downbutton" name="downbutton" class="col-md-6 col-sm-6 btn btn-success btn-lg" onmousedown="ui.liftDown();" onmouseup="ui.liftDownStop();">Down</button>
|
|
100
|
+
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
<script>
|
|
115
|
+
var g1 = new JustGage({
|
|
116
|
+
id: "gauge1",
|
|
117
|
+
value: 0,
|
|
118
|
+
min: 0,
|
|
119
|
+
max: 100,
|
|
120
|
+
title: "Temperature",
|
|
121
|
+
label: "° C"
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
var g2 = new JustGage({
|
|
125
|
+
id: "gauge2",
|
|
126
|
+
value: 0,
|
|
127
|
+
min: 0,
|
|
128
|
+
max: 500,
|
|
129
|
+
title: "Rotation",
|
|
130
|
+
label: "rpm"
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
var g3 = new JustGage({
|
|
134
|
+
id: "gauge3",
|
|
135
|
+
value: 0,
|
|
136
|
+
min: 0,
|
|
137
|
+
max: 10,
|
|
138
|
+
title: "Lift",
|
|
139
|
+
label: "position"
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
</script>
|
|
143
|
+
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<script src="/assets/external/highcharts.js"></script>
|
|
2
|
+
<script src="/assets/external/exporting.js"></script>
|
|
3
|
+
|
|
4
|
+
<div class="row-fluid">
|
|
5
|
+
<div class="span12">
|
|
6
|
+
<span class="btn-group inline">
|
|
7
|
+
<button id="runmodebutton" name="runmodebutton" class=" btn btn-info btn-large dropdown-toggle" data-toggle="dropdown"><span id="runmode">Evacuate</span> <span class="caret"></span></button>
|
|
8
|
+
<ul class="dropdown-menu">
|
|
9
|
+
<li><a href="#" onclick="ui.setRunmode('n');">Evacuate</a></li>
|
|
10
|
+
<li><a href="#" onclick="ui.setRunmode('r');">Pressure Control</a></li>
|
|
11
|
+
<li><a href="#" onclick="ui.setRunmode('a');">Automatic</a></li>
|
|
12
|
+
<!-- <li><a href="#" onclick="ui.setRunmode('f');">Function</a></li> -->
|
|
13
|
+
</ul>
|
|
14
|
+
</span>
|
|
15
|
+
|
|
16
|
+
<span class="btn-group inline">
|
|
17
|
+
<button id="startstop" name="startstop" class=" btn btn-warning btn-large" onclick="ui.toggleStartstop();" data-toggle="button"><span id="startstopicon" name="startstopicon" class="glyphicon glyphicon-play" /></button>
|
|
18
|
+
</span>
|
|
19
|
+
|
|
20
|
+
<span class="btn-group inline">
|
|
21
|
+
<button id="pressurebutton" name="pressurebutton" class=" btn btn-info btn-large dropdown-toggle" data-toggle="dropdown"><span id="pressure">0</span> <span id="unitpressure">mbar</span> <span class="caret"></span></button>
|
|
22
|
+
|
|
23
|
+
<ul class="dropdown-menu">
|
|
24
|
+
<li><a href="#" onclick="ui.setPressureunit('0');">mbar</a></li>
|
|
25
|
+
<li><a href="#" onclick="ui.setPressureunit('1');">bar</a></li>
|
|
26
|
+
<li><a href="#" onclick="ui.setPressureunit('2');">hPa</a></li>
|
|
27
|
+
<li><a href="#" onclick="ui.setPressureunit('3');">Torr</a></li>
|
|
28
|
+
</ul>
|
|
29
|
+
</span>
|
|
30
|
+
|
|
31
|
+
<span class="btn-group inline">
|
|
32
|
+
<button id="ventilationbutton" name="ventilationbutton" class=" btn btn-success btn-large" onclick="ui.toggleVentilation();" data-toggle="button"><span id="ventilationicon" name="ventilationicon" class="glyphicon glyphicon-star" /> <span id="coolant">Ventilation</span></button>
|
|
33
|
+
</span>
|
|
34
|
+
|
|
35
|
+
<span class="btn-group inline">
|
|
36
|
+
<button id="coolantbutton" name="coolantbutton" class=" btn btn-success btn-large" onclick="ui.toggleCoolant(); " data-toggle="button"><span id="coolanticon" name="coolanticon" class="glyphicon glyphicon-star" /> <span id="coolant">Coolant</span></button>
|
|
37
|
+
</span>
|
|
38
|
+
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div class="row-fluid" style="margin-top:20px;">
|
|
43
|
+
<div class="span5">
|
|
44
|
+
<div id="tab2" name="tab2" class="well" style="display:none;">
|
|
45
|
+
<p>Pump Power</p>
|
|
46
|
+
|
|
47
|
+
<div class="clearfix" id="si_power"> </div>
|
|
48
|
+
|
|
49
|
+
<script type="text/javascript">
|
|
50
|
+
|
|
51
|
+
smartinput ("si_power", function(val) {
|
|
52
|
+
ui.setPower(val);
|
|
53
|
+
}, "%");
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<div id="tab3" name="tab3" class="well" style="display:none;">
|
|
59
|
+
<p>Pressure Setpoint</p>
|
|
60
|
+
|
|
61
|
+
<div class="clearfix" id="si_setpoint"> </div>
|
|
62
|
+
|
|
63
|
+
<script type="text/javascript">
|
|
64
|
+
|
|
65
|
+
smartinput ("si_setpoint", function(val) {
|
|
66
|
+
ui.setSetpoint(val);
|
|
67
|
+
}, "mbar");
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div id="tab4" name="tab4" class="well" style="display:none;">
|
|
73
|
+
<p>Function Definition</p>
|
|
74
|
+
<table id="tbl" name="tbl" border="1" width="400" onchange="new_func();">
|
|
75
|
+
<tr onClick="ui.edit_cell(0)">
|
|
76
|
+
<th>time</th>
|
|
77
|
+
<th>pressure</th>
|
|
78
|
+
<th>coolant</th>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr onClick="ui.edit_cell(1)">
|
|
81
|
+
<th>time</th>
|
|
82
|
+
<th>pressure</th>
|
|
83
|
+
<th>coolant</th>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr onClick="ui.edit_cell(2)">
|
|
86
|
+
<th>time</th>
|
|
87
|
+
<th>pressure</th>
|
|
88
|
+
<th>coolant</th>
|
|
89
|
+
</tr>
|
|
90
|
+
<tr onClick="ui.edit_cell(3)">
|
|
91
|
+
<th>time</th>
|
|
92
|
+
<th>pressure</th>
|
|
93
|
+
<th>coolant</th>
|
|
94
|
+
</tr>
|
|
95
|
+
<tr onClick="ui.edit_cell(4)">
|
|
96
|
+
<th>time</th>
|
|
97
|
+
<th>pressure</th>
|
|
98
|
+
<th>coolant</th>
|
|
99
|
+
</tr>
|
|
100
|
+
<tr onClick="ui.edit_cell(5)">
|
|
101
|
+
<th>time</th>
|
|
102
|
+
<th>pressure</th>
|
|
103
|
+
<th >coolant</th>
|
|
104
|
+
</tr>
|
|
105
|
+
<tr onClick="ui.edit_cell(6)">
|
|
106
|
+
<th>time</th>
|
|
107
|
+
<th>pressure</th>
|
|
108
|
+
<th>coolant</th>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr onClick="ui.edit_cell(7)">
|
|
111
|
+
<th>time</th>
|
|
112
|
+
<th>pressure</th>
|
|
113
|
+
<th>coolant</th>
|
|
114
|
+
</tr>
|
|
115
|
+
<tr onClick="ui.edit_cell(8)">
|
|
116
|
+
<th>time</th>
|
|
117
|
+
<th>pressure</th>
|
|
118
|
+
<th>coolant</th>
|
|
119
|
+
</tr>
|
|
120
|
+
<tr onClick="ui.edit_cell(9)">
|
|
121
|
+
<th>time</th>
|
|
122
|
+
<th>pressure</th>
|
|
123
|
+
<th>coolant</th>
|
|
124
|
+
</tr>
|
|
125
|
+
<tr onClick="ui.edit_cell(10)">
|
|
126
|
+
<th>time</th>
|
|
127
|
+
<th>pressure</th>
|
|
128
|
+
<th>coolant</th>
|
|
129
|
+
</tr>
|
|
130
|
+
<tr onClick="ui.edit_cell(11)">
|
|
131
|
+
<th>time</th>
|
|
132
|
+
<th>pressure</th>
|
|
133
|
+
<th>coolant</th>
|
|
134
|
+
</tr>
|
|
135
|
+
</table>
|
|
136
|
+
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<div class="span7">
|
|
143
|
+
<div id="container" name ="container" >
|
|
144
|
+
|
|
145
|
+
<!--Body content-->
|
|
146
|
+
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
<div id="myModal" class="modal hide fade">
|
|
154
|
+
<form class= "form-horizontal" action="" onsubmit="ui.save_row(); ui.updateChart(); $('#myModal').modal('hide'); return false;">
|
|
155
|
+
|
|
156
|
+
<div class="modal-header">
|
|
157
|
+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
158
|
+
<h3>Modal header</h3>
|
|
159
|
+
<input type="radio" name="myRadios" id="rad" onchange="ui.handleChange1();" value="1" checked>Function point<br></input>
|
|
160
|
+
<input type="radio" name="myRadios" id="rad2" onchange="ui.handleChange2();" value="2">repeat</input>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="modal-body" id="myform">
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
<div class="tab-content">
|
|
166
|
+
<div class="tab-pane active" id="home">
|
|
167
|
+
Time(sec): <input type="text" id = "j_t" value="" name="country_code" pattern="[0-9]{1,4}" title="enter valid value"><br>
|
|
168
|
+
|
|
169
|
+
Pressure: <input type="text" id = "j_p" value="" name="country_code" pattern="[0-9]{1,4}" title="enter valid value"><br>
|
|
170
|
+
<div class="control-group" id="j_coo">
|
|
171
|
+
Coolant(on/of): <input type="text" id = "j_c" value="" name="country_code" pattern="[0-9]{1,4}" title="enter valid value">
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<div class="modal-footer">
|
|
179
|
+
<span style="display: inline;">
|
|
180
|
+
<a href="#" class="btn" onClick = "ui.delete1(); ui.updateChart(); ">Delete from row</a>
|
|
181
|
+
<a href="#" class="btn" onClick = "ui.deleteAll(); ui.updateChart(); ">Delete row</a>
|
|
182
|
+
<input type="hidden" id="row" name="Language"/>
|
|
183
|
+
<button type="submit" class="btn btn-primary">Save changes</button>
|
|
184
|
+
</span>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
</form>
|
|
188
|
+
<script type="text/javascript">
|
|
189
|
+
$('#myTab a').click(function (e) {
|
|
190
|
+
e.preventDefault();
|
|
191
|
+
$(this).tab('show');
|
|
192
|
+
});
|
|
193
|
+
</script>
|
|
194
|
+
</div>
|