47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# EL737 EPICS Database for streamdevice support
|
|
# Macros
|
|
# P - Prefix
|
|
# NAME - just a name, e.g. EL737
|
|
# PROTO - Stream device protocol file
|
|
# ASYN_PORT - Low level Asyn IP Port to EL737
|
|
|
|
################################################################################
|
|
# Status Variables
|
|
|
|
record(longin, "$(P):$(NAME):MONITOR-CHANNEL")
|
|
{
|
|
field(DESC, "PRESET-COUNT Monitors this channel")
|
|
field(VAL, 1)
|
|
field(DISP, 1)
|
|
}
|
|
|
|
record(longin, "$(P):$(NAME):MONITOR-CHANNEL_RBV")
|
|
{
|
|
field(DESC, "PRESET-COUNT Monitors this channel")
|
|
field(VAL, 1)
|
|
field(DISP, 1)
|
|
}
|
|
|
|
################################################################################
|
|
# Count Commands
|
|
|
|
record(longout,"$(P):$(NAME):THRESHOLD-MONITOR")
|
|
{
|
|
field(DESC, "Channel monitored for minimum rate")
|
|
field(VAL, "1") # Monitor
|
|
field(DRVL, "1") # Smallest Threshold Channel
|
|
field(DRVL, "8") # Largest Threshold Channel
|
|
}
|
|
|
|
################################################################################
|
|
# Read all monitors values
|
|
|
|
record(ai, "$(P):$(NAME):READALL")
|
|
{
|
|
field(DESC, "Reads monitors and elapsed time")
|
|
field(INP, "@$(PROTO) readAll8($(P):$(NAME):) $(ASYN_PORT)")
|
|
field(SCAN, ".2 second")
|
|
field(DTYP, "stream")
|
|
field(FLNK, "$(P):$(NAME):UNSET-COUNTING")
|
|
}
|