# # EPICS records for all # record( ai, "$(PREF)glob:min_rpm_vme" ) { field( DESC, "Min RPM for VME" ) field( SCAN, "Passive" ) field( EGU , "RPM" ) field( VAL , "$(MINVME)" ) field( PINI, "YES") } record( ai, "$(PREF)glob:max_rpm_vme" ) { field( DESC, "Max RPM for VME" ) field( SCAN, "Passive" ) field( EGU , "RPM" ) field( VAL , "$(MAXVME)" ) field( PINI, "YES") } record( ai, "$(PREF)glob:min_rpm_vxs" ) { field( DESC, "Min RPM for VXS" ) field( SCAN, "Passive" ) field( EGU , "RPM" ) field( VAL , "$(MINVXS)" ) field( PINI, "YES") } record( ai, "$(PREF)glob:max_rpm_vxs" ) { field( DESC, "Max RPM for VXS" ) field( SCAN, "Passive" ) field( EGU , "RPM" ) field( VAL , "$(MAXVXS)" ) field( PINI, "YES") } grecord( ai, "$(PREF)glob:amb_t_avg" ) { field(DESC, "Average temp. in the hall") field(SCAN, "Passive") field(EGU , "F") field(PREC, "1" ) field(HIHI, "90") field(HIGH, "85") field(LOW , "60") field(LOLO, "55") field(LLSV, "MAJOR") field(LSV , "MINOR") field(HSV , "MINOR") field(HHSV, "MAJOR") } grecord( calcout, "$(PREF)glob:amb_t_calc" ) { field(DESC, "Average temp. calc for hall") field(SCAN, "Passive") field(CALC, "ABS(I)>0.1?((A+B)/I):200") field(INPA, "$(PREF)glob:amb_t1clean CPP") field(INPB, "$(PREF)glob:amb_t2clean CPP") field(INPI, "$(PREF)glob:amb_n4avg CPP MS") field(OUT, "$(PREF)glob:amb_t_avg PP MS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } grecord( calc, "$(PREF)glob:amb_n4avg" ) { field(DESC, "N for averaging") field(SCAN, "Passive") field(CALC, "A+B") field(INPA, "$(PREF)glob:amb_t1weight CPP") field(INPB, "$(PREF)glob:amb_t2weight CPP") field(LOLO, "0.5") field(LLSV ,"MAJOR") } grecord( calc, "$(PREF)glob:amb_t1clean" ){ field( SCAN, "Passive" ) field( INPA, "$(T1_HALL) CPP" ) field( CALC, "A>30&&A<120?A:0" ) } grecord( calc, "$(PREF)glob:amb_t2clean" ){ field( SCAN, "Passive" ) field( INPA, "$(T2_HALL) CPP" ) field( CALC, "A>30&&A<120?A:0" ) } grecord( calc, "$(PREF)glob:amb_t1weight" ){ field( SCAN, "Passive" ) field( INPA, "$(T1_HALL) CPP" ) field( CALC, "A>30&&A<120?1:0" ) } grecord( calc, "$(PREF)glob:amb_t2weight" ){ field( SCAN, "Passive" ) field( INPA, "$(T2_HALL) CPP" ) field( CALC, "A>30&&A<120?1:0" ) }