40 lines
1012 B
Plaintext
40 lines
1012 B
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
|
|
|
|
|
|
################################################################################
|
|
# 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")
|
|
}
|