MIDAS
Loading...
Searching...
No Matches
scfe.cxx File Reference
#include <stdio.h>
#include "midas.h"
#include "mfe.h"
#include "history.h"
#include "class/hv.h"
#include "class/multi.h"
#include "device/nulldev.h"
#include "bus/null.h"
Include dependency graph for scfe.cxx:

Go to the source code of this file.

Functions

INT frontend_init ()
 Frontend initialization.
 

Variables

const charfrontend_name = "SC Frontend"
 The frontend name (client name) as seen by other MIDAS clients.
 
const charfrontend_file_name = __FILE__
 The frontend file name, don't change it.
 
DEVICE_DRIVER hv_driver []
 
DEVICE_DRIVER multi_driver []
 
BOOL equipment_common_overwrite = TRUE
 
EQUIPMENT equipment []
 Main structure for midas equipment.
 

Function Documentation

◆ frontend_init()

INT frontend_init ( void  )

Frontend initialization.

Runs once at application startup. We initialize the hardware and optical interfaces and set the equipment status in ODB. We also lock the frontend to once physical cpu core.

Returns
Midas status code

Definition at line 81 of file scfe.cxx.

82{
83 hs_define_panel("Environment", "Sines", {
84 "Environment/Input:Input Channel 0",
85 "Environment/Input:Input Channel 1"
86 });
87
88 return CM_SUCCESS;
89}
#define CM_SUCCESS
Definition midas.h:582
INT hs_define_panel(const char *group, const char *panel, const std::vector< std::string > var)
Definition history.cxx:3492
Here is the call graph for this function:

Variable Documentation

◆ equipment

EQUIPMENT equipment[]
Initial value:
= {
{"Environment",
{10, 0,
"SYSTEM",
0,
"FIXED",
TRUE,
60000,
0,
0,
1,
"", "", ""} ,
NULL,
},
{""}
}
#define RO_TRANSITIONS
Definition midas.h:434
#define RO_RUNNING
Definition midas.h:426
#define EQ_SLOW
Definition midas.h:418
#define TRUE
Definition midas.h:182
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
Definition rmidas.h:24
DEVICE_DRIVER multi_driver[]
Definition scfe.cxx:46

Main structure for midas equipment.

Definition at line 54 of file scfe.cxx.

54 {
55
56 {"Environment", /* equipment name */
57 {10, 0, /* event ID, trigger mask */
58 "SYSTEM", /* event buffer */
59 EQ_SLOW, /* equipment type */
60 0, /* event source */
61 "FIXED", /* format */
62 TRUE, /* enabled */
63 RO_RUNNING | RO_TRANSITIONS, /* read when running and on transitions */
64 60000, /* produce event every 60 sec */
65 0, /* stop run after this event limit */
66 0, /* number of sub events */
67 1, /* log history every second */
68 "", "", ""} ,
69 cd_multi_read, /* readout routine */
70 cd_multi, /* class driver main routine */
71 multi_driver, /* device driver list */
72 NULL, /* init string */
73 },
74
75 {""}
76};

◆ equipment_common_overwrite

BOOL equipment_common_overwrite = TRUE

Definition at line 52 of file scfe.cxx.

◆ frontend_file_name

const char* frontend_file_name = __FILE__

The frontend file name, don't change it.

Definition at line 36 of file scfe.cxx.

◆ frontend_name

const char* frontend_name = "SC Frontend"

The frontend name (client name) as seen by other MIDAS clients.

Definition at line 34 of file scfe.cxx.

◆ hv_driver

DEVICE_DRIVER hv_driver[]
Initial value:
= {
{"Dummy Device", nulldev, 16, null},
{""}
}

Definition at line 41 of file scfe.cxx.

41 {
42 {"Dummy Device", nulldev, 16, null},
43 {""}
44};

◆ multi_driver

DEVICE_DRIVER multi_driver[]
Initial value:
= {
{"Input", nulldev, 3, null, DF_INPUT},
{"Output", nulldev, 2, null, DF_OUTPUT},
{""}
}
#define DF_OUTPUT
Definition midas.h:1051
#define DF_INPUT
Definition midas.h:1050

Definition at line 46 of file scfe.cxx.

46 {
47 {"Input", nulldev, 3, null, DF_INPUT},
48 {"Output", nulldev, 2, null, DF_OUTPUT},
49 {""}
50};