41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# EPICS Database for streamdevice support for testing functionality specific to
|
|
# the 2nd Generation Systems
|
|
#
|
|
# Macros
|
|
# INSTR - Prefix
|
|
# NAME - the device name, e.g. DAQV2
|
|
# PROTO - Stream device protocol file
|
|
# ASYN_PORT - Low level Asyn IP Port to DAQ
|
|
|
|
################################################################################
|
|
# Testing Commands
|
|
|
|
# These won't match the values on the machine after a full restart But I chose
|
|
# not to force their intialisation as they are only important for testing
|
|
|
|
record(bo, "$(INSTR)$(NAME):TESTGEN")
|
|
{
|
|
field(DESC, "Turn on/off Testgen Signal")
|
|
field(DTYP, "stream")
|
|
field(OUT, "@$(PROTO) switchTestgenOnOff($(INSTR)$(NAME):) $(ASYN_PORT)")
|
|
field(VAL, 0)
|
|
field(ZNAM, "OFF")
|
|
field(ONAM, "ON")
|
|
}
|
|
|
|
record(longout, "$(INSTR)$(NAME):TESTGEN-LOWRATE")
|
|
{
|
|
field(DESC, "Set Minimum Testgen Rate")
|
|
field(DTYP, "stream")
|
|
field(OUT, "@$(PROTO) setTestSignal($(INSTR)$(NAME):) $(ASYN_PORT)")
|
|
field(VAL, 1000)
|
|
}
|
|
|
|
record(longout, "$(INSTR)$(NAME):TESTGEN-HIGHRATE")
|
|
{
|
|
field(DESC, "Set Maximum Testgen Rate")
|
|
field(DTYP, "stream")
|
|
field(OUT, "@$(PROTO) setTestSignal($(INSTR)$(NAME):) $(ASYN_PORT)")
|
|
field(VAL, 1000)
|
|
}
|