MSCB Page: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
(The midas documentation has moved to https://midas.triumf.ca/docs/)
 
Line 1: Line 1:
{{Pagelinks}}
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/web_pages/#mscb-page MSCB page] in Built-in web pages and [https://midas.triumf.ca/docs/develop/features/acquiring_data/slow_control/mscb/#the-mscb-webpage The MSCB webpage] on the Slow control: MSCB page for the new documentation about the MSCB web page.
 
= Links =
{{mhttpdpages2|[[/MSCB ODB tree]]|[https://elog.psi.ch/mscb/ MSCB (MIDAS Slow Control Bus)]}}
 
= Purpose =
The purpose of a [[mhttpd]] MSCB Page is to visually present the devices in the
[https://elog.psi.ch/mscb/  MSCB (MIDAS Slow Control Bus)] system and their variables.
 
= Access to the MSCB Page =
The MSCB Page is displayed by clicking on the  {{Button|name=MSCB}}  button on the mhttpd [[Status Page]] or other mhttpd web page.
 
;Note
: If the MSCB button is not present on the Status Page, either
:* MIDAS has been built without MSCB support ([[#MIDAS with MSCB support|see below]]) or
:* it may have been [[Status Page#page-switch-buttons|suppressed]].
 
 
== MIDAS with MSCB support ==
 
In order to create the MSCB page, the flag
; -DHAVE_MSCB
must be present in the MIDAS Makefile  so that mhttpd is linked against ../mscb/mscb.c and has direct access to all mscb ethernet submasters (USB access is currently disabled on purpose there). See [[Compilation & Build]] for more information.
 
The presence of the flag '''-DHAVE_MSCB''' will cause the MSCB button to appear on the [[Status Page]] by default, unless the menu button has been [[Status Page#page-switch-buttons|suppressed]].
 
;Note
: The current MIDAS distribution contains a file <span style="color:#686868; font-weight:bold; font-style:italic ">../midas/examples/slowcont/mscb_fe.c</span> which contains example code of how to read some MSCB devices.
 
 
= Features of the MSCB page =
Click thumbnail to enlarge
[[File:Deap_mscb.png|thumb|left|Figure 1: Example of a MSCB page]]
The MSCB page  (see Figure 1) displays information from the [[/MSCB ODB tree]]. It obtains a list of all available submasters from the [[/MSCB ODB tree#Submaster subtree|Submaster subtree]].
 
The <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;">Rescan</span> button will rescan the MSCB devices, the <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;">Reload</span> button
refreshes the page.
<div style="clear: both"></div> <!-- clear wraparound after thumbnail -->
 
 
[[Category: MSCB]] [[Category:mhttpd Pages]] [[Category:Slow Control]]

Latest revision as of 22:01, 30 October 2026

The midas documentation has moved. See MSCB page in Built-in web pages and The MSCB webpage on the Slow control: MSCB page for the new documentation about the MSCB web page.