# EPICS Database for streamdevice specific to measurement channels # # Macros # INSTR - Prefix # NAME - the device name, e.g. EL737 # PROTO - Stream device protocol file # ASYN_PORT - Low level Asyn IP Port to Counterbox # CHANNEL - the number associated with the measurment channel ################################################################################ # Status Variables ################################################################################ # Count Commands record(bo, "$(INSTR)$(NAME):C$(CHANNEL)") { field(DESC, "Clear the current channel count") field(DTYP, "stream") field(OUT, "@$(PROTO) clearChannel($(INSTR)$(NAME):, $(CHANNEL)) $(ASYN_PORT)") } ################################################################################ # Read all monitors values record(longin, "$(INSTR)$(NAME):M$(CHANNEL)") { field(DESC, "Counterbox CH$(CHANNEL)") } record(ai, "$(INSTR)$(NAME):R$(CHANNEL)") { field(DESC, "Counterbox Rate CH$(CHANNEL)") field(INP, "@$(PROTO) readRate($(INSTR)$(NAME):, $(CHANNEL)) $(ASYN_PORT)") field(DTYP, "stream") field(SCAN, "1 second") }