DABC (Data Acquisition Backbone Core)
2.9.9
|
mbs::Monitor module provides possibility to interact with MBS over DABC web interface
Example of configuration file is plugins/mbs/app/web-mbs.xml
Following parameters could be specified for the module:
Parameter | Description |
---|---|
node | Name of MBS node |
period | How often status information requested from MBS node [default 1 sec] |
history | Size of preserved history [default 200] |
cmd | port on MBS node to submit commands (typically 6019) [default - none] |
logger | port on MBS node to read log information (normally 6007) [default - none] |
Several MBS nodes can be readout at once:
In most situations started automatically by MBS. mbs::Monitor module will periodically request status record and calculate several rate values - data rate, event rate. Several log variables are created, which reproduce output of rate command of MBS.
To enable it, one should call 'sta cmdrem' in normal MBS processs. This functionality available starting from MBS version 6.3. If XML file contains line <cmd value="6019"/>
, module will try to connect with MBS and will publish CmdMbs command. Via web interface user can than submit commands like start acq
, stop acq
, @startup
, show rate
to MBS process.
MBS prompter also allows to submit MBS commands remotely (but only remotely). To start prompter on mbs, one should do:
Value of argument after -r should be host name, where DABC will run.
When logger is enabled by MBS ('sta logrem'), one can connect to it and get log information. At the moment logger is available in the MBS only together with the prompter. If enabled, module will readout log information and put into log record.
(Note: this requires MBS versions >=6.3!)
Two possibilities:
1) Start mbs dispatcher as normal ("mbs"). Invoke mbs commands "start cmdrem" (port 6019) and "start logrem" (port 6007). Then run dabc process with web server that connects to these ports: "dabc_exe web-mbs-gui.xml" (Please specify correct mbs node name in example xml configuration!)
2) start mbs dispatcher with option: "mbs -dabc". This will open command and log sockets at startup. Then run "dabc_exe web-mbs-gui.xml". The advantage of this method is that all startup commands can be send from web interface.
In addition to the generic web interface, a control gui implementation is provided that provides buttons and log panels to monitor and control a single node mbs with Linux PC and pexor/kinpex hardware. An example configuration file of this is plugins/mbs/app/web-mbs-gui.xml To start specialized web gui, select in hierarchy treeview of the generic dabc website the entry "MBS/<nodename>/ControlGUI". This will open control gui in separate window/tab.
start acquisition
, stop acquisition
, @startup
, @shutdown
commands