MSCB Page: Difference between revisions
No edit summary |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
= Links = | = Links = | ||
{{mhttpdpages2|[[/MSCB ODB tree]]|[https://elog.psi.ch/mscb/ MSCB (MIDAS Slow Control Bus)]}} | |||
= Purpose = | = Purpose = | ||
The purpose of a [[mhttpd]] MSCB Page is to visually present the devices in the MSCB (MIDAS Slow Control Bus) system and their variables. | 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 = | = Access to the MSCB Page = | ||
Line 37: | Line 25: | ||
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]]. | 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. | |||
Line 51: | Line 41: | ||
[[Category: | [[Category: MSCB]] [[Category:mhttpd Pages]] [[Category:Slow Control]] |
Latest revision as of 21:49, 3 February 2024
Links
Purpose
The purpose of a mhttpd MSCB Page is to visually present the devices in the MSCB (MIDAS Slow Control Bus) system and their variables.
Access to the MSCB Page
The MSCB Page is displayed by clicking on the 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 (see below) or
- it may have been 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 suppressed.
- Note
- The current MIDAS distribution contains a file ../midas/examples/slowcont/mscb_fe.c which contains example code of how to read some MSCB devices.
Features of the MSCB page
Click thumbnail to enlarge
The MSCB page (see Figure 1) displays information from the /MSCB ODB tree. It obtains a list of all available submasters from the Submaster subtree.
The Rescan button will rescan the MSCB devices, the Reload button refreshes the page.