Low-Energy Muon (LEM) Experiment  0.5.2
lemvac.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LEMVAC_IN_VARS   27
 number of variables in the get list More...
 
#define LEMVAC_OUT_VARS   8
 number of variables in the set list More...
 

Functions

INT lemvac_in (INT cmd,...)
 
INT lemvac_out (INT cmd,...)
 

Macro Definition Documentation

#define LEMVAC_IN_VARS   27

number of variables in the get list

Definition at line 10 of file lemvac.h.

#define LEMVAC_OUT_VARS   8

number of variables in the set list

Definition at line 11 of file lemvac.h.

Function Documentation

INT lemvac_in ( INT  cmd,
  ... 
)

lem vacuum controller device driver (read routines) entry function. Establishes the communication with the SPS controll unit of the LEM experiment and reads the state of the pumps, valves, and the pressure values.

INT lemvac_out ( INT  cmd,
  ... 
)

lem vacuum controller device driver (write routines) entry function. At the moment only control over the BPVX (sliding valve between moderator and trigger chamber) and BPXY (sliding valve between trigger and sample chamber) is implemented. As a precaution for each valve two variables are introduced:

  • a valve enable variable. If this variable is set to 1, the DD takes active control over the valve, otherwise the state of the 2nd variable is ignored.
  • a valve state variable. Value 1 means open the valve, value 0 means closing it.