Adds PVs for reseting the channels and timer
This commit is contained in:
@ -30,6 +30,13 @@
|
||||
# field(SCAN, "1 second")
|
||||
# }
|
||||
|
||||
record(bo, "$(P):$(NAME):C$(CHANNEL)")
|
||||
{
|
||||
field(DESC, "Clear the current channel count")
|
||||
field(DTYP, "stream")
|
||||
field(OUT, "@$(PROTO) clearChannel($(P):$(NAME):, $(CHANNEL)) $(ASYN_PORT)")
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Read all monitors values
|
||||
|
||||
|
@ -112,6 +112,18 @@ readRateMonitor{
|
||||
@mismatch{in "%(\$1MsgTxt)s";}
|
||||
}
|
||||
|
||||
clearTimer{
|
||||
out "CT";
|
||||
in;
|
||||
@mismatch{in "%(\$1MsgTxt)s";}
|
||||
}
|
||||
|
||||
clearChannel{
|
||||
out "CC \$2";
|
||||
in;
|
||||
@mismatch{in "%(\$1MsgTxt)s";}
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Read Values From Monitors
|
||||
|
||||
|
@ -181,6 +181,13 @@ record(longin,"$(P):$(NAME):THRESHOLD-MONITOR_RBV")
|
||||
field(SCAN, "1 second")
|
||||
}
|
||||
|
||||
record(bo, "$(P):$(NAME):CT")
|
||||
{
|
||||
field(DESC, "Clear the timer")
|
||||
field(DTYP, "stream")
|
||||
field(OUT, "@$(PROTO) clearTimer($(P):$(NAME):) $(ASYN_PORT)")
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Read all monitors values
|
||||
|
||||
|
Reference in New Issue
Block a user