Runcontrol: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
Created page with "This page describes run control part of Coda DAQ system. It reside in ''$CODA/src/rc/'' directory. == Communication between rcServer and runcontrol =="
 
Boiarino (talk | contribs)
Line 2: Line 2:


== Communication between rcServer and runcontrol ==
== Communication between rcServer and runcontrol ==
Lets use 'tokenInterval' as example. It reside in database, and can be changed by runcontrol. Following steps were made to implement 'tokenInterval' functionality:
*
adcecal5:runControl> grep \"tokenInterval\" */*/*.cc
rcClient/src.s/rcClient.cc:  tokenInterval_    = new rccDaqData (exptname_, "tokenInterval",    0);
rcServer/Components.s/daqRun.cc:  tokenInterval_ = new rcsDaqData (exptname_, "tokenInterval", 0);
rcServer/Components.s/daqRun.cc:/*sergey: corresponds to "tokenInterval" !? see
rcServer/Components.s/daqRun.cc:  rcClient/src.s/rcClient.cc:  tokenInterval_    = new rccDaqData (exptname_, "tokenInterval",    0);
rcServer/Components.s/daqRun.cc:  rcServer/Components.s/daqRun.cc:  tokenInterval_ = new rcsDaqData (exptname_, "tokenInterval", 0);
rcServer/Components.s/dbaseReader.cc:    else if (::strcmp (row[0], DBASE_TOKEN_INTERVAL) == 0) /* DBASE_TOKEN_INTERVAL="tokenInterval" */
Xui/src.s/rcClientHandler.cc:    if (handler_.monitorOnCallback (exptname, "tokenInterval",
Xui/src.s/rcTokenIButton.cc:  daqData data (client.exptname (), "tokenInterval", newval);

Revision as of 10:33, 5 October 2015

This page describes run control part of Coda DAQ system. It reside in $CODA/src/rc/ directory.

Communication between rcServer and runcontrol

Lets use 'tokenInterval' as example. It reside in database, and can be changed by runcontrol. Following steps were made to implement 'tokenInterval' functionality:


adcecal5:runControl> grep \"tokenInterval\" */*/*.cc rcClient/src.s/rcClient.cc: tokenInterval_ = new rccDaqData (exptname_, "tokenInterval", 0); rcServer/Components.s/daqRun.cc: tokenInterval_ = new rcsDaqData (exptname_, "tokenInterval", 0); rcServer/Components.s/daqRun.cc:/*sergey: corresponds to "tokenInterval" !? see rcServer/Components.s/daqRun.cc: rcClient/src.s/rcClient.cc: tokenInterval_ = new rccDaqData (exptname_, "tokenInterval", 0); rcServer/Components.s/daqRun.cc: rcServer/Components.s/daqRun.cc: tokenInterval_ = new rcsDaqData (exptname_, "tokenInterval", 0); rcServer/Components.s/dbaseReader.cc: else if (::strcmp (row[0], DBASE_TOKEN_INTERVAL) == 0) /* DBASE_TOKEN_INTERVAL="tokenInterval" */ Xui/src.s/rcClientHandler.cc: if (handler_.monitorOnCallback (exptname, "tokenInterval", Xui/src.s/rcTokenIButton.cc: daqData data (client.exptname (), "tokenInterval", newval);