BNMR: Custom pages: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
en>Suz
m (New page: {{Pagelinks}} == Links == <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * BNMR * Environment variables * [...)
 
en>Suz
mNo edit summary
Line 17: Line 17:


Complicated experiments such as {{bnmqr|join=and}} involve a large number of ODB parameters in various directories that have to be setup in order to control the experiment. Navigating these parameters using the standard MIDAS ODB page can become complicated and time-consuming. For this reason, [https://midas.triumf.ca/MidasWiki/index.php/Custom_Page custom pages] specific to an experiment are often written to present relevant parameters for the experiment in a more user-friendly way, and to display information specific to that experiment. The custom pages written for the {{bnmqr|join=and}} experiments are written in HTML and Javascript.
Complicated experiments such as {{bnmqr|join=and}} involve a large number of ODB parameters in various directories that have to be setup in order to control the experiment. Navigating these parameters using the standard MIDAS ODB page can become complicated and time-consuming. For this reason, [https://midas.triumf.ca/MidasWiki/index.php/Custom_Page custom pages] specific to an experiment are often written to present relevant parameters for the experiment in a more user-friendly way, and to display information specific to that experiment. The custom pages written for the {{bnmqr|join=and}} experiments are written in HTML and Javascript.
== Custom pages ==
Some of the custom pages written for the {{bnmqr|join=and}} experiments include:
* [[BNMR: Custom Status page| Status page]]  - this page replaces the MIDAS standard status page
* [[BNMR: Custom Parameters page|Parameters page]] -  this page enables users to enter the parameters for the selected PPG Mode
* Tune page -  this page enables users to compare two tunes
* [[BNMR: Custom PPG Mode 20 Setup page|PPG Mode 20 Setup page]] -  this page prevents users from entering invalid values for the Beam and RF parameters
In order for  {{Utility|name=mhttpd}} to display custom pages, the custom page files must be listed in the {{Odbpath|path=/Custom}} ODB tree. See [[BNMR: Keys in /Custom ODB tree|keys in /Custom tree]] for details.
== Location of code ==
All custom page code is located in directory {{Filepath|path=~bn[mq]r/online/custom}}. Some style sheets are used by several custom pages.
{| border="1" style="border-collapse:collapse; color:green; background-color:aliceblue"  "
|+ Code
! Custom Page !! HTML !! JS !! CSS
|-
| Status
| Custom_Status.html
| cs_functions.js
| common.css, bn[mq]r.css
|-
| Parameters
| parameters.html
| parameter_functions.js, params_common.js,
| mhttpd.css, common.css,  bn[mq]r.css
|-
| Mode 20 setup
| slider20.html
|
| common.css
|-
| Compare Tunes
| compare_tunes.html
|  params_common.js, tune_descriptions.js
|
|}

Revision as of 14:44, 17 November 2016

Links

Purpose

BNMR Custom pages are written specifically for the bnmr and bnqr experiments to enable to users to control the experiments more easily.

Introduction

MIDAS experiments run the web server [mhttpd] which allows users to control and communicate with their experiments using a standard web browser (e.g. Firefox).

Complicated experiments such as bnmr and bnqr involve a large number of ODB parameters in various directories that have to be setup in order to control the experiment. Navigating these parameters using the standard MIDAS ODB page can become complicated and time-consuming. For this reason, custom pages specific to an experiment are often written to present relevant parameters for the experiment in a more user-friendly way, and to display information specific to that experiment. The custom pages written for the bnmr and bnqr experiments are written in HTML and Javascript.

Custom pages

Some of the custom pages written for the bnmr and bnqr experiments include:

  • Status page - this page replaces the MIDAS standard status page
  • Parameters page - this page enables users to enter the parameters for the selected PPG Mode
  • Tune page - this page enables users to compare two tunes
  • PPG Mode 20 Setup page - this page prevents users from entering invalid values for the Beam and RF parameters

In order for mhttpd to display custom pages, the custom page files must be listed in the /Custom ODB tree. See keys in /Custom tree for details.

Location of code

All custom page code is located in directory ~bn[mq]r/online/custom. Some style sheets are used by several custom pages.



Code
Custom Page HTML JS CSS
Status Custom_Status.html cs_functions.js common.css, bn[mq]r.css
Parameters parameters.html parameter_functions.js, params_common.js, mhttpd.css, common.css, bn[mq]r.css


Mode 20 setup slider20.html common.css
Compare Tunes compare_tunes.html params_common.js, tune_descriptions.js