Adds PVs for reseting the channels and timer

This commit is contained in:
2024-11-18 14:43:16 +01:00
parent 3b660ca560
commit 4bd648ea5d
3 changed files with 26 additions and 0 deletions

View File

@ -30,6 +30,13 @@
# field(SCAN, "1 second") # 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 # Read all monitors values

View File

@ -112,6 +112,18 @@ readRateMonitor{
@mismatch{in "%(\$1MsgTxt)s";} @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 # Read Values From Monitors

View File

@ -181,6 +181,13 @@ record(longin,"$(P):$(NAME):THRESHOLD-MONITOR_RBV")
field(SCAN, "1 second") 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 # Read all monitors values