Low-Energy Muon (LEM) Experiment  0.5.1
lemvac_scfe.c File Reference
#include <stdio.h>
#include "midas.h"
#include "class/multi.h"
#include "device/nulldev.h"
#include "lemvac.h"
#include "sps_tcpip.h"
#include "null.h"
Include dependency graph for lemvac_scfe.c:

Go to the source code of this file.

Functions

INT poll_event (INT source[], INT count, BOOL test)
 
INT interrupt_configure (INT cmd, INT source[], PTYPE adr)
 
INT frontend_init ()
 
INT frontend_exit ()
 
INT frontend_loop ()
 
INT begin_of_run (INT run_number, char *error)
 
INT end_of_run (INT run_number, char *error)
 
INT pause_run (INT run_number, char *error)
 
INT resume_run (INT run_number, char *error)
 

Variables

char * frontend_name = "LEMVAC_SC"
 The frontend name (client name) as seen by other MIDAS clients. More...
 
char * frontend_file_name = __FILE__
 The frontend file name, don't change it. More...
 
BOOL frontend_call_loop = TRUE
 frontend_loop is called periodically if this variable is TRUE More...
 
INT display_period = 1000
 a frontend status page is displayed with this frequency in ms More...
 
INT max_event_size = 10000
 maximum event size produced by this frontend More...
 
INT max_event_size_frag = 5*1024*1024
 maximum event size for fragmented events (EQ_FRAGMENTED) More...
 
INT event_buffer_size = 10*10000
 buffer size to hold events More...
 
DEVICE_DRIVER lemvac_driver []
 device driver list More...
 
EQUIPMENT equipment []
 equipment structure for the mfe.c More...
 

Function Documentation

INT begin_of_run ( INT  run_number,
char *  error 
)

Called by the mfe at the begin of the run. Here it is only a dummy.

Definition at line 129 of file lemvac_scfe.c.

INT end_of_run ( INT  run_number,
char *  error 
)

Called by the mfe at the end of the run. Here it is only a dummy.

Definition at line 139 of file lemvac_scfe.c.

INT frontend_exit ( )

Called by the mfe at exiting stage. Here it is only a dummy.

Definition at line 110 of file lemvac_scfe.c.

INT frontend_init ( )

Called by the master frontend (mfe) at initializing stage.

Definition at line 94 of file lemvac_scfe.c.

INT frontend_loop ( )

Called by the mfe in the main loop.

Definition at line 119 of file lemvac_scfe.c.

INT interrupt_configure ( INT  cmd,
INT  source[],
PTYPE  adr 
)

Definition at line 88 of file lemvac_scfe.c.

INT pause_run ( INT  run_number,
char *  error 
)

Called by the mfe when the run is paused. Here it is only a dummy.

Definition at line 149 of file lemvac_scfe.c.

INT poll_event ( INT  source[],
INT  count,
BOOL  test 
)

Definition at line 87 of file lemvac_scfe.c.

INT resume_run ( INT  run_number,
char *  error 
)

Called by the mfe when the run is resumed. Here it is only a dummy.

Definition at line 159 of file lemvac_scfe.c.

Variable Documentation

INT display_period = 1000

a frontend status page is displayed with this frequency in ms

Definition at line 29 of file lemvac_scfe.c.

EQUIPMENT equipment[]
Initial value:
= {
{ "LEMVAC",
{78, 0,
"SYSTEM",
EQ_SLOW,
0,
"FIXED",
TRUE,
RO_RUNNING |
RO_TRANSITIONS,
30000,
0,
0,
1,
"", "", "",},
cd_multi_read,
cd_multi,
NULL,
},
{ "" }
}
DEVICE_DRIVER lemvac_driver[]
device driver list
Definition: lemvac_scfe.c:50

equipment structure for the mfe.c

Definition at line 58 of file lemvac_scfe.c.

INT event_buffer_size = 10*10000

buffer size to hold events

Definition at line 38 of file lemvac_scfe.c.

BOOL frontend_call_loop = TRUE

frontend_loop is called periodically if this variable is TRUE

Definition at line 26 of file lemvac_scfe.c.

char* frontend_file_name = __FILE__

The frontend file name, don't change it.

Definition at line 23 of file lemvac_scfe.c.

char* frontend_name = "LEMVAC_SC"

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

Definition at line 21 of file lemvac_scfe.c.

DEVICE_DRIVER lemvac_driver[]
Initial value:
= {
{ "LEMVAC in", lemvac_in, LEMVAC_IN_VARS, sps_tcpip, DF_INPUT },
{ "LEMVAC out", lemvac_out, LEMVAC_OUT_VARS, sps_tcpip, DF_OUTPUT },
{ "" }
}
#define LEMVAC_OUT_VARS
number of variables in the set list
Definition: lemvac.h:11
INT lemvac_out(INT cmd,...)
Definition: lemvac.c:1444
float lemvac_in[27]
holds the lemvac input variables
Definition: hv_fug_scfe.c:94
#define LEMVAC_IN_VARS
number of variables in the get list
Definition: lemvac.h:10

device driver list

Definition at line 50 of file lemvac_scfe.c.

INT max_event_size = 10000

maximum event size produced by this frontend

Definition at line 32 of file lemvac_scfe.c.

INT max_event_size_frag = 5*1024*1024

maximum event size for fragmented events (EQ_FRAGMENTED)

Definition at line 35 of file lemvac_scfe.c.