diff --git a/db/daq_2nd_gen.db b/db/daq_2nd_gen.db index f5f2af9..b835201 100644 --- a/db/daq_2nd_gen.db +++ b/db/daq_2nd_gen.db @@ -38,6 +38,13 @@ record(seq, "$(INSTR)$(NAME):CORRECT-MONITOR-CHANNEL") field(SCAN, ".5 second") } +record(calc, "$(INSTR)$(NAME):RATE_MAP") +{ + field(DESC, "Want a consistent lowrate pv") + field(INPA, "$(INSTR)$(NAME):RAW-STATUS.B2 NPP") + field(CALC, "(A=1)?1:0") +} + ################################################################################ # Count Commands diff --git a/db/daq_4ch.db b/db/daq_4ch.db index 193a01a..2a44d79 100644 --- a/db/daq_4ch.db +++ b/db/daq_4ch.db @@ -25,6 +25,13 @@ record(longin, "$(INSTR)$(NAME):MONITOR-CHANNEL_RBV") field(DISP, 1) } +record(calc, "$(INSTR)$(NAME):RATE_MAP") +{ + field(DESC, "Want a consistent lowrate pv") + field(INPA, "$(INSTR)$(NAME):RAW-STATUS.B2 NPP") + field(CALC, "(A=0)?1:0") +} + ################################################################################ # Count Commands diff --git a/db/daq_8ch.db b/db/daq_8ch.db index c770a7d..8891ea4 100644 --- a/db/daq_8ch.db +++ b/db/daq_8ch.db @@ -25,6 +25,13 @@ record(longin, "$(INSTR)$(NAME):MONITOR-CHANNEL_RBV") field(DISP, 1) } +record(calc, "$(INSTR)$(NAME):RATE_MAP") +{ + field(DESC, "Want a consistent lowrate pv") + field(INPA, "$(INSTR)$(NAME):RAW-STATUS.B2 NPP") + field(CALC, "(A=0)?1:0") +} + ################################################################################ # Count Commands diff --git a/db/daq_common.db b/db/daq_common.db index 83fe9d0..403ed49 100644 --- a/db/daq_common.db +++ b/db/daq_common.db @@ -88,7 +88,7 @@ record(bi, "$(INSTR)$(NAME):COUNTING_PRESET") record(bi, "$(INSTR)$(NAME):IS_LOWRATE") { - field(INP, "$(INSTR)$(NAME):RAW-STATUS.B2") + field(INP, "$(INSTR)$(NAME):RATE_MAP PP") field(ZNAM, "LOW RATE") field(ONAM, "GOOD RATE") }