Equipment List Parameters
TABLE showing Equipment List Parameters
Note These parameters are copied to the ODB /Equipment/<equipment-name>/Common subdirectory when the frontend is initialized.
EQUIPMENT Parameter | Explanation |
Equipment Name | Each equipment has to be assigned a unique name (i.e. no two equipments in the same experiment may have the same name). The name will be the reference name of the equipment generating the event. Examples of typical Equipment Names are "Trigger","Scaler","Epics". |
EQUIPMENT_INFO Structure | |
EventID | Each equipment has to be associated with a unique eventID . The event ID will be part of the event header of that particular equipment. |
Trigger Mask | Each equipment must be associated with a unique Trigger mask if the @ref FE_tbl_EqType "Equipment type" is @ref FE_tbl_EqInterrupt "EQ_INTERRUPT" or @ref FE_tbl_EqMultithread "EQ_MULTITHREAD". In this case, the trigger mask can be modified dynamically by the readout routine to define a sub-event type on an event-by-event basis. This can be used to mix "physics events" (from a physics trigger) and "calibration events" (from a clock for example) in one run and identify them later. Both parameters are declared as 16bit values. If the Trigger mask is used in a single bit-wise mode, 16 is the maximum number of different masks available. |
Buffer | Specifies the name of the Buffer to which the event will be sent. After composition of an "Equipment", the Midas frontend mfe.c
takes over the sending of this event to the buffer (usually the "SYSTEM" buffer) on the back-end computer where it may be sent to the logger and the analyser.
the readout function associated with that equipment will still be performed, but the actual event won't be sent to the buffer. Instead, that particular equipment can be mirrored in the ODB if the @ref FE_tbl_ReadOn "RO_ODB" flag is turned on (see @ref FE_RO_ODB_example "example"). The ODB is updated with a new event approximately every second. Note that this feature is generally used only for testing or monitoring, as writing large amounts of data to the ODB takes time.
|
| |
| |
| |
| |
|
Equipment Type should be set to one of the Equipment Flags EQ_XXX selected from the following Table:
Equipment Types | Explanation | |
EQ_PERIODIC | Periodic Event | In this mode no hardware requirement is necessary to @ref FE_tab_event_trigger "trigger" the readout function. Instead, the @ref FE_tbl_ReadoutRoutine "readout routine" associated with this equipment is called periodically.The @ref FE_tbl_Period "Period" field in the equipment declaration is used in this case to specify the time interval between calls to the readout function. See @ref FE_other_event "example". |
EQ_POLLED | Polling Event | In this mode, the name of the routine performing the @ref FE_tab_event_trigger "trigger" check function is @ref FE_poll_event "poll_event()". This routine must be provided in the frontend.c by the user. As polling consists of checking a variable for a TRUE condition, if the loop count is infinite and the condition never becomes TRUE, the frontend would not be able to respond to any network commands. Therefore the loop count is determined when the frontend starts for the first time so that it returns
after a given time-out if no event is available. This time-out is usually of the order of 500 milliseconds. |
EQ_INTERRUPT | Interrupt Event | This modeis similar to the @ref FE_tbl_EqPolled "EQ_POLLED" mode except a hardware interrupt is used to @ref FE_tab_event_trigger "trigger" the event instead of a polling loop. Instead of passing a pointer to the polling routine, in EQ_INTERRUPT mode a pointer to the interrupt configuration routine is passed to the system. Midas requires complete configuration and control of the interrupt source. This is provided by an interrupt configuration routine called @ref FE_interrupt_event "interrupt_configure()" that must be provided in the frontend.c by the user. When a valid interrupt is received, the @ref FE_tbl_ReadoutRoutine "readout routine" associated with the equipment is called.See @ref FE_interrupt_event "example". |
EQ_MULTITHREAD | Multithread Event Readout | Thisequipment type implements themulti-threading capability within the frontend code. The polling isperformed within a separate thread and uses the@ref rbfunctionc "Midas Ring Buffer Functions" (rb_xxx) for inter-thread communication.EQ_MULTITHREAD is similar to @ref FE_tbl_EqPolled "EQ_POLLED" mode, except for the polling function which in the case of EQ_MULTITHREAD resides in a separate thread. This new type has been added to take advantage of the multi-core processor to free up CPU for tasks other than polling.
|
EQ_SLOW | Slow Control Event | This flag declaresthe equipment as a Slow Control Equipment. This will enable the call tothe idle function part of the class driver. This flag also causes event data to be sent automatically to the /equipment/variables tree in the ODB. |
EQ_MANUAL_TRIG | Manual triggered event | This flag enables the equipment to be @ref FE_Manual_trig_mode "triggered" by a remote procedure call (RPC). If EQ_MANUAL_TRIGGER is selected, the web interface will provide an extra button to trigger the equipment. The event may also be triggered by a client via RPC. @ref FE_manual_trigger "See example." |
EQ_FRAGMENTED | Fragmented Event | Obsolescent flag EQ_FRAGMENTED enabled large events (beyond the Midas configuration limit) to be handled by the system (see note below). This flag required that a valid max_event_size_frag variable is defined in the user Frontend code. The max_event_size variable was used as fragment size in this case. This option was meant to be used in experiments where the event rate was not an issue but the size of the data needed to be extremely large. @ref FE_fragmented_event "See example."
NOTE:
|
EQ_EB | Event run through the event builder | This flag identifies the equipment as a fragment event and should be ORed with the EQ_POLLED in order to be identified by the \ref FE_Event_Builder. Not to be confused with a fragmented event (see above)! |