/MSCB ODB tree: Difference between revisions
(Created page with "<div style="column-count:4;-moz-column-count:4;-webkit-column-count:4"> * Midas Documentation * Feature Listing * Application_lis...") |
No edit summary |
||
Line 14: | Line 14: | ||
= Purpose = | = Purpose = | ||
The <span style="color:purple; font-style:italic;">/MSCB</span> ODB tree contains data for the MSCB (MIDAS Slow Control Bus) system. | The <span style="color:purple; font-style:italic;">/MSCB</span> ODB tree contains data for the MSCB (MIDAS Slow Control Bus) system. | ||
This tree is optional, and only required if the MSCB | This tree is optional, and only required if the MSCB system is in use. Provided MSCB support has been [[MSCB Page|built in]] to [[mhttpd]], the data from this tree is displayed on the [[MSCB Page]]. | ||
Line 29: | Line 27: | ||
= Example = | = Example = | ||
The following example using the [[odbedit]] command <span style="color:saddlebrown; font-style:bold; ">"ls"</span> command shows the /MSCB ODB tree from the | The following example using the [[odbedit]] command <span style="color:saddlebrown; font-style:bold; ">"ls"</span> command shows the /MSCB ODB tree from the Deap experiment. This data is displayed on the [[MSCB Page#Introduction|MSCB Page]]. | ||
[local:deap:Stopped]/>ls -l /MSCB/Submaster/mscb520 | |||
Key name Type #Val Size Last Opn Mode Value | |||
--------------------------------------------------------------------------- | |||
Pwd STRING 1 32 31h 0 RWD | |||
Comment STRING 1 32 31h 0 RWD SCBs | |||
Address INT 28 4 31h 0 RWD | |||
[0] 0 | |||
[1] 1 | |||
[2] 2 | |||
[3] 3 | |||
[4] 4 | |||
[5] 5 | |||
................. | |||
[27] 27 | |||
Node comment STRING 28 32 31h 0 RWD | |||
[0] aaa | |||
[1] bbb | |||
[2] DEAPCOND410 | |||
[3] DEAPCOND410 | |||
[4] DEAPCOND410 | |||
[5] DEAPCOND410 | |||
........................... | |||
[27] DEAPCOND410 | |||
= Keys in the /MSCB tree = | = Keys in the /MSCB tree = | ||
Revision as of 11:08, 28 August 2014
Links
Purpose
The /MSCB ODB tree contains data for the MSCB (MIDAS Slow Control Bus) system. This tree is optional, and only required if the MSCB system is in use. Provided MSCB support has been built in to mhttpd, the data from this tree is displayed on the MSCB Page.
Creating the /MSCB tree
The /MSCB ODB tree is an optional tree that may be created by the user, but they are also created automatically by mhttpd if the /MSCB/Submaster key is not present in the ODB. In this case, the equipment list is scanned, and all MSCB devices and addresses are collected from locations such as
- /Equipment/<name>/Settings/Devices/Input/Device
or
- /Equipment/<name>/Settings/Devices/<name>/MSCB Device
which are the locations for MSCB submasters used by the mscbdev.c and mscbhvr.c device drivers (found in the midas package at path ../midas/drivers/device). Once the tree is created, it will not be touched again by mhttpd, so devices can be removed or reordered by hand.
Example
The following example using the odbedit command "ls" command shows the /MSCB ODB tree from the Deap experiment. This data is displayed on the MSCB Page.
[local:deap:Stopped]/>ls -l /MSCB/Submaster/mscb520 Key name Type #Val Size Last Opn Mode Value --------------------------------------------------------------------------- Pwd STRING 1 32 31h 0 RWD Comment STRING 1 32 31h 0 RWD SCBs Address INT 28 4 31h 0 RWD [0] 0 [1] 1 [2] 2 [3] 3 [4] 4 [5] 5 ................. [27] 27 Node comment STRING 28 32 31h 0 RWD [0] aaa [1] bbb [2] DEAPCOND410 [3] DEAPCOND410 [4] DEAPCOND410 [5] DEAPCOND410 ........................... [27] DEAPCOND410
Keys in the /MSCB tree
Submaster subtree
- Type: DIR
The Submaster subtree contains one or more <submaster-name> subtree(s) for the MSCB submasters present in the system.
<submaster-name> subtree
- Type: DIR
- Default:
The <submaster-name> subtree contains information for one of the MSCB submaster(s) present in the system. There will be a <submaster-name> subtree for each MSCB submaster present.
Pwd
- Type: STRING [32]
- Default:
This key in the <submaster-name> subtree may contain an optional password needed by that submaster. Leave blank if no password.
Comment
- Type: STRING [32]
- Default:
This key in the <submaster-name> subtree may contain an optional comment describing that submaster.
Address
- Type: INT Array
- Default:
This key in the <submaster-name> subtree is a variable-length array containing the node addresses for that submaster. The length of the array is determined by the number of nodes present.
Node comment
- Type: STRING[32] Array
- Default:
This key in the <submaster-name> subtreeis an optional variable-length array that may contain a comment for each node. The length of the array is determined by the number of nodes present.