Project

General

Profile

Run Control Messages

Run Control Servers (RCSs) send and receive messages to nearly every DAQ "resource" (aka subsystem), such as the Data Logger (DL), the Configuration Manager (CM), and sebApp and assembler. There are two types of messages: "request" and "response". A request message comes from the RCS and is sent to either one or many DAQ resources. A response message comes from the DAQ resource and is sent to the RCS. Request messages have at least an RMS message header; response messages have at least an RMS message header and request status. Messages are sent either on the "NULL" partition (basically a broadcast to all DAQ resources) or on a "real" partition. Most messages are sent on the real partition; the NULL partition is used to send messages before resources have joined a new partition.

The list of RC messages is below.

Message Sent to Description
EstablishPartition all Tells RC clients which partition they belong to (this will go away soon)
DetachFromPartition all Tells RC clients to remove themselves from a partition (this will go away soon)
FetchNamedConfigurations CM Get a list of named configurations from the CM for the user to choose from.
FetchLatestNamedGlobalConfig CM Get the most recently defined (used?) global configuration for this partition from the CM.
FetchNamedGlobalConfig CM Get a list of global configuration for this partition from the CM.
SetMessageAnalyzerParticipants MA Tell the MA what resources are in this partition.
PrepareAll CM Request CM to prepare all configuration files for all resources for a given named/global configuration. CM responds with list of URIs for RC to pass along to the individual resources.
PrepareConnectionsConfiguration CM Request CM to prepare all connection configuration files for all resources that need this information for a given named/global configuration. CM responds with list of URIs for RC to pass along to the individual resources.
LoadConnectionsConfiguration all Tell each resource to load the appropriate connection configuration file.
MakeConnections all Tell each resource to configure it's connection settings.
PrepareHardwareConfiguration CM Request CM to prepare all hardware configuration files for all resources that need this information for a given named/global configuration. CM responds with list of URIs for RC to pass along to the individual resources.
LoadHardwareConfiguration all Tell each resource to load the appropriate hardware configuration file.
ConfigureHardware all Tell each resource to configure it's hardware settings.
PrepareRunConfiguration CM Request CM to prepare all run configuration files for all resources that need this information for a given named/global configuration. CM responds with list of URIs for RC to pass along to the individual resources.
LoadRunConfiguration all Tell each resource to load the appropriate run configuration file.
ConfigureRun all Tell each resource to configure it's run settings.
BuildCfgBlock DL Tell the DL to create a configuration block for this run. The message contains all the configuration/version info the DL needs.
SyncTime TDU Immediately prior to sending a BeginRun message to all resources, tell the TDU to sync it's time.
BeginRun all Tell all resources to enter the "running" (data collection) state. The DL receives this message first, the GT receives it last.
BeginNewSubrun DL Tell the DL to close the current subrun file and open a new subrun file for the same run with the subrun number augmented by 1.
RolloverRun all Tell the DL to close the current subrun file and open a new subrun file for a new run number (included in the message) and subrun 0.
StopRun all Tell all resources to stop data collection. The GT receives this message first, the DL receives it last.
PauseRun all Tell all resources to pause data collection. The GT receives this message first, the DL receives it last.
ResumeRun all Tell all resources to pause data collection. The DL receives this message first, the GT receives it last.
BreakConnections all Tell all resources to break/reset their connection configurations.
Status all Heart beat message sent to all resources to make sure they are ok. See link for details.