#define N_CHAMBERS 15
#define N_LV       12 
struct lv_mbox{
    struct modhcom _mh;    /* Standard module header           */
    int st[N_CHAMBERS][2];
    char name[N_CHAMBERS][5];
    int creat_tim[6];      /* date of module creation          */
    int nread_lv;
    int nerr_lv;
    int lv_tim[6];         /* date of last lv update           */
    float vstar[3][N_LV];  /* STAR +6V/-6V/+5V */
    float vsgs[2][N_LV];   /*  SGS +6V/-6V     */
    float istar[3][N_LV];  /* STAR +6V/-6V/+5V */
    float isgs[2][N_LV];   /*  SGS +6V/-6V     */
    int lv_alarm_id;    /* alarm ID ( from S.C.M. ) */
    int nread_t;
    int nerr_t;
    int t_tim[6];          /* date of last termometer update   */
    float t[N_CHAMBERS][2];
    int t_alarm_id[2];  /* alarm id :  [0] : error ( > T0 ) 
                                       [1] : fatal ( > T1 )    */
};
typedef struct lv_mbox LV_MBOX;

/* the chamber names follow the termperature probe order */
char *ch_name[] =   {
 /* South Balcony */  "CH33", "CH41", "CH51", "CH61", "CH34", "CH42", "CH52", "CH62", "CH64", "CH66", "CH93", "CH95", "CH94", "CH96",
                      "CH72",
 /* North Balcony */   "CH31", "CH21", "CH11", "CH81", "CH32", "CH22", "CH12",
                       "CH82", "CH84", "CH86", "CH91", "CH97", "CH92", "CH98",
                      "CHXX"};
/* pointer LV ordering -> temperature ordering */
int lv_t[] = { 13,  3,  7, 12,  0,  4, 11,  1,   5, 10,  2,  6 };
/* pointer temperature ordering -> LV ordering */
int t_lv[] = {  4,  7, 10,  1,  5,  8, 11,   2, -1, -1,  9,  6,  3,  0 , 1};