BNMR: Custom Status page: Difference between revisions
en>Suz mNo edit summary |
en>Suz mNo edit summary |
||
Line 24: | Line 24: | ||
== Features of the Custom Status Page == | == Features of the Custom Status Page == | ||
The Custom Status Page provides status information specific to the {{bnmqr|join=or}} experiments. The option of reverting to the MIDAS standard status page is provided via the ToggleStatusPage button. | |||
=== Command and Page Buttons === | === Command and Page Buttons === | ||
[[Image: | [[Image:Bnqr_top_buttons2.png|Figure 3 Command and Page Buttons]] | ||
<br clear=all> | <br clear=all> | ||
In the middle of the top line on the Custom Status page are found the standard [https://midas.triumf.ca/MidasWiki/index.php/Status_Page#Menu_Buttons Menu buttons] to stop and start runs or to display | |||
different MIDAS pages. These standard buttons appear on most MIDAS pages (see [https://midas.triumf.ca/MidasWiki/index.php/Status_Page MIDAS Status page] for more information). | different MIDAS pages. These standard buttons appear on most MIDAS pages (see [https://midas.triumf.ca/MidasWiki/index.php/Status_Page MIDAS Status page] for more information). | ||
Below these buttons are buttons specific to the {{bnmqr|join=and}} experiment. Some are [[BNMR: Perlscripts#Customscripts|customscript buttons]], that is, a script is run when the button is pressed. Others switch to a different custom page. The actions of these buttons are described in Table 1. | |||
{| style="text-align: left; width: 100%; background-color: rgb(255, 255, 255);" border="3" cellpadding="2" cellspacing="2" | |||
|+ Table 1: Custom Buttons | |||
|- | |||
! Button !! Action | |||
|- | |||
| {{Button|name=Autorun}} | |||
| toggles [[BNMR: Autoruns|Autoruns]] on or off | |||
|- | |||
| <span style="color: brown; background-color: #CCCCCC; font-style:italic; font-size: 90; padding:0.25em; | |||
padding-left: 0.5em;padding-right: 0.5em;border:1px solid #808080;border-radius: 5px;margin-bottom:1px;">rf_config</span> | |||
| runs client <span style="color:green; font-style:italic; ">rf_config</span> to test the validity of the input parameters without actually starting a run<br> | |||
|- | |||
| <span style="color: brown; background-color: #CCCCCC; font-style:italic; font-size: 90; padding:0.25em; | |||
padding-left: 0.5em;padding-right: 0.5em;border:1px solid #808080;border-radius: 5px;margin-bottom:1px;">ToggleStatusPage</span> | |||
| runs a perlscript causing the status page to revert to the standard Midas Status Page. After pressing this button, a popup window with a message "Now refresh page" will appear. After refreshing the page, the MIDAS status page will appear. From this page, the CustomStatus page can be reached by clicking on the custom button <span style="color: #444444; background-color: #CCCCCC; font-style:italic; font-size: 90; padding:0.25em; | |||
padding-left: 0.5em;padding-right: 0.5em;border:1px solid #808080;border-radius: 5px;margin-bottom:1px;">CustomStatus</span> button. This will show the Custom status page as a regular Custom page. A message can be seen at the top of the custom page in this case "Using alias link "CustomStatus&" from Midas Main Status Page". To revert to running this page as the Custom Status Page, press the button once more and refresh the page. | |||
|- | |||
| <span style="color: blue; background-color: #CCCCCC; font-style:italic; font-size: 90; padding:0.25em; | |||
padding-left: 0.5em;padding-right: 0.5em;border:1px solid #808080;border-radius: 5px;margin-bottom:1px;">RunParams</span> | |||
|gives access to the Custom Parameter page. | |||
|- | |||
| | |||
<span style="color: green; background-color: #CCCCCC; font-style:italic; font-size: 90; padding:0.25em; | |||
padding-left: 0.5em;padding-right: 0.5em;border:1px solid #808080;border-radius: 5px;margin-bottom:1px;">ShowWindows</span> | |||
|button opens the page shown in Figure 4. | |||
|} | |||
<br><br> | |||
;Figure 4: Client windows page | |||
[[Image:Show_client_windows_page.png|left|thumb]] | |||
<br clear=all> | |||
=== Page Update Information == | |||
The page update information is also visible in Figure 1. The custom status page updates completely with a full page reload every minute. In between, it updates the information using innerHTML. This is called a partial reload. The time between partial reloads can be set by the user by clicking on the link "Page update 10 sec (min 5s)" (Figure 1). This minimum time is 5s. The ODB data is read each time a partial reload is done. The times of the last ODB data read, last full reload etc are also shown in Figure 1. A countdown to the next full reload is also visible. |
Revision as of 13:41, 2 September 2016
Links
Introduction
The default MIDAS Status page has been replaced by a custom status page for the bnmr and bnqr experiments. Note that the MIDAS client mhttpd must be running for the webserver to be available. To connect to the Custom Status page, see Getting Started.
Custom Status Page
- Bnmr status stopped.png
Figure 1:
BNMR Custom Status Page (Run Stopped) - Bnqr status stopped.png
Figure 2:
BNQR Custom Status Page (Run Stopped)
Click a thumbnail to enlarge
The custom status page is a MIDAS Custom Page written for the bnmr and bnqr experiments. It is written in HTML and Javascript and uses the MIDAS asynchronous functions to access the ODB.
The custom status page allows users to enter experimental parameters easily, including changing Experimental Modes and run type. A Custom Parameter page accessed from the custom status page allows users to enter run parameters easily.
Features of the Custom Status Page
The Custom Status Page provides status information specific to the bnmr or bnqr experiments. The option of reverting to the MIDAS standard status page is provided via the ToggleStatusPage button.
Command and Page Buttons
Figure 3 Command and Page Buttons
In the middle of the top line on the Custom Status page are found the standard Menu buttons to stop and start runs or to display
different MIDAS pages. These standard buttons appear on most MIDAS pages (see MIDAS Status page for more information).
Below these buttons are buttons specific to the bnmr and bnqr experiment. Some are customscript buttons, that is, a script is run when the button is pressed. Others switch to a different custom page. The actions of these buttons are described in Table 1.
Button | Action |
---|---|
Autorun |
toggles Autoruns on or off |
rf_config | runs client rf_config to test the validity of the input parameters without actually starting a run |
ToggleStatusPage | runs a perlscript causing the status page to revert to the standard Midas Status Page. After pressing this button, a popup window with a message "Now refresh page" will appear. After refreshing the page, the MIDAS status page will appear. From this page, the CustomStatus page can be reached by clicking on the custom button CustomStatus button. This will show the Custom status page as a regular Custom page. A message can be seen at the top of the custom page in this case "Using alias link "CustomStatus&" from Midas Main Status Page". To revert to running this page as the Custom Status Page, press the button once more and refresh the page. |
RunParams | gives access to the Custom Parameter page. |
ShowWindows |
button opens the page shown in Figure 4. |
- Figure 4
- Client windows page
= Page Update Information
The page update information is also visible in Figure 1. The custom status page updates completely with a full page reload every minute. In between, it updates the information using innerHTML. This is called a partial reload. The time between partial reloads can be set by the user by clicking on the link "Page update 10 sec (min 5s)" (Figure 1). This minimum time is 5s. The ODB data is read each time a partial reload is done. The times of the last ODB data read, last full reload etc are also shown in Figure 1. A countdown to the next full reload is also visible.