ODB Page: Difference between revisions
Line 61: | Line 61: | ||
The '''Type''' of key to be created is selected from the ''Type'' drop-down list (Figure 3a). | The '''Type''' of key to be created is selected from the ''Type'' drop-down list (Figure 3a). Any of the data types supported by midas can be created (floats, integers, strings etc), including subdirectories and symbolic links. | ||
<br clear=all> | <br clear=all> | ||
Line 125: | Line 97: | ||
File: odb_link3.png | Figure 4d: Symbolic link has been created | File: odb_link3.png | Figure 4d: Symbolic link has been created | ||
</gallery> | </gallery> | ||
<br clear=all> | <br clear=all> | ||
= Delete an ODB key = | = Delete an ODB key = |
Revision as of 15:22, 20 June 2023
Links
Purpose
The purpose of the mhttpd ODB page is to allow the user to browse, search and edit the ODB of an experiment. This gives a user-friendly graphical alternative to the ODB editor odbedit.
Access the ODB page
Click image to enlarge
The ODB Page is accessed from the Status Page (or one of the other Pages) by clicking on the menu-button ODB.
The top level ODB trees will be visible as key-links (i.e.links to a key) (Figure 1). The ODB Page is largely self-explanatory. However, a brief description of its functionality and limitations is given below.
- Note
- If "ODB" button is not present on the Status Page, it may have been hidden.
Browse the ODB
By clicking on the key-links on the ODB page (Figure 1), the user can browse the various subtrees (Figure 2a). By clicking on the "→" link adjacent to the "Value" heading (Figure 2b), the type and size of the keys are shown. This is equivalent to the odbedit commands ls and ls -l.
Change the value of an ODB key
By clicking on a Key Value link (Figure 2), the user can change the value (unless password-protected or the key is write-protected - see Security). If web access is restricted, the user will be asked for a password the first time he/she attempts to edit a value.
Create an ODB key
The user can create a new ODB key in a tree or subtree using the ODB Page by
- entering the appropriate directory (see #Browse the ODB)
- clicking the Create button (Figure 2).
This will result in a "Create ODB Entry box" pop-up (Figure 3).
Figure 3: Create an ODB Key (click a thumbnail to enlarge)
The Type of key to be created is selected from the Type drop-down list (Figure 3a). Any of the data types supported by midas can be created (floats, integers, strings etc), including subdirectories and symbolic links.
1. Create a single value or array
Figure 3a shows the creation of a key of type Integer (32-bit). The type "Integer (32-bit)" has been selected from the Type drop-down list (Table 1 above). The name of the key "Number of cycles" has been filled in using the Name box. This key is not an array so the Array Size box has the default (1). The String size box will be ignored since this is a Integer key. The key is created by pressing the Create button on Figure 3a. The value of the key will be set to 0 when created. This has been changed to 10 in Figure 3c by clicking on the Key Value link .
Figure 3b shows the creation of a String Array. The type "String" has been selected from the Type drop-down list (Table 1 above). The Array size and String size boxes are set with the desired parameters. After pressing the Create button on Figure 3b, the resulting array is shown in Figure 3c. The values of the array elements are set to "Empty" when created. The array values can be set by clicking on the Key Value links.
2. Create a subdirectory or symbolic link
Create a subdirectory key in the same way as a regular key Figure 3a by selecting subdirectory from the Type drop-down list (Table 1 above). Figure 4a shows the creation of a subdirectory Edit on start in the /Experiment directory. The subdirectory is created by pressing the Create button on Figure 4a.
A symbolic link (or link) is a key which is a short-cut to another key in the ODB. Create a link by selecting symbolic link from the Type drop-down list (Table 1 above). Figure 4b shows the creation of an edit-on-start parameter which is a symbolic link called "write data" . The symbolic link is created by pressing the Create button on Figure 4b. The value of this symbolic link is set to the ODB key /logger/write data in Figure 4c. The resulting link is shown in Figure 4d.
Figure 4 Creating subdirectory or symbolic link (click to enlarge thumbnails)
Delete an ODB key
The user can delete a key in a tree or subtree by clicking the Delete button. The user selects which to delete from a list of the keys in the subtree (e.g. Figure 5).
Search the ODB for a key
Click on the Find button. A pop-up (Figure 6) appears in which the user types the relevant information.
Create Elog entry
An elog entry can be created easily from the ODB page by clicking the
Create Elog from this page button. A pop-up will appear for the user to fill in (Figure 7).
Limitations
The ODB Page editor supports a subset of the functionality of odbedit. For example, the ODB Page editor does not support re-ordering or renaming ODB keys. For full editing capabilities odbedit must be used.