|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
07 Feb 2019, Stefan Ritt, Info, History panels in custom pages
|
08 Feb 2019, Thomas Lindner, Info, History panels in custom pages
|
12 Sep 2019, Pintaudi Giorgio, Info, History panels in custom pages
|
12 Sep 2019, Stefan Ritt, Info, History panels in custom pages
|
13 Sep 2019, Pintaudi Giorgio, Info, History panels in custom pages
|
|
Message ID: 1445
Entry time: 07 Feb 2019
Reply to this: 1446
|
Author: |
Stefan Ritt |
Topic: |
Info |
Subject: |
History panels in custom pages |
|
|
A new tag has been implemented to display history panels in custom pages, integrated in the
new custom page design from 2017. The full documentation can be found at
https://midas.triumf.ca/MidasWiki/index.php/New_Custom_Pages_(2017)#mhistory
Attached is a simple example of such a panel and the result. You have to rename triggerrate.txt to triggerrate.html if you want to use it (can't do it here since otherwise the browser wants to render it which does not work outside of midas).
Stefan |
|
|
<html>
<head>
<title>Trigger Rate Page</title>
<link rel="stylesheet" href="midas.css">
<script src="controls.js"></script>
<script src="midas.js"></script>
<script src="mhttpd.js"></script>
</head>
<body class="mcss" onload="mhttpd_init('TriggerRate');">
<div id="mheader"></div>
<div id="msidenav"></div>
<div id="mmain">
<table class="mtable">
<tr>
<th colspan="2" class="mtableheader">
Trigger Rate
</th>
</tr>
<tr>
<td>Current event rate:</td>
<td> <span name="modbvalue" data-odb-path="/Equipment/Trigger/Statistics/Events per sec." data-format="f1">.</span> events per sec.</td>
</tr>
<tr>
<td>Current data rate:</td>
<td> <span name="modbvalue" data-odb-path="/Equipment/Trigger/Statistics/kBytes per sec." data-format="f1">.</span> kBytes per sec.</td>
</tr>
<tr>
<td colspan="2">
<div name="mhistory" data-group="Default" data-panel="Trigger rate" data-scale="10m" style="width:600px;border:1px solid black;"></div>
</td>
</tr>
</table>
</div>
</body>
</html>
|