From a5ba82b2cf84409bff87a26832d9a9affd875e88 Mon Sep 17 00:00:00 2001 From: rivers Date: Tue, 19 Jul 2011 20:09:27 +0000 Subject: [PATCH] Added GapFill, ThresholdApply, ThresholdAutoApply git-svn-id: https://subversion.xor.aps.anl.gov/synApps/areaDetector/trunk@13189 dc6c5ff5-0b8b-c028-a01f-ffb33f00fc8b --- ADApp/Db/pilatus.template | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/ADApp/Db/pilatus.template b/ADApp/Db/pilatus.template index fc86ca5..2609f56 100644 --- a/ADApp/Db/pilatus.template +++ b/ADApp/Db/pilatus.template @@ -99,6 +99,37 @@ record(ai, "$(P)$(R)ThresholdEnergy_RBV") field(SCAN, "I/O Intr") } +# Threshold apply command +record(busy, "$(P)$(R)ThresholdApply") +{ + field(DTYP, "asynInt32") + field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))THRESHOLD_APPLY") + field(ZNAM, "Done") + field(ONAM, "Apply") + field(VAL, "0") +} + +# Threshold auto apply flag +record(bo, "$(P)$(R)ThresholdAutoApply") +{ + field(PINI, "YES") + field(DTYP, "asynInt32") + field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))THRESHOLD_AUTO_APPLY") + field(ZNAM, "No") + field(ONAM, "Yes") + field(VAL, "1") +} + +# Threshold auto apply flag +record(bi, "$(P)$(R)ThresholdAutoApply_RBV") +{ + field(DTYP, "asynInt32") + field(INP, "@asyn($(PORT),$(ADDR),$(TIMEOUT))THRESHOLD_AUTO_APPLY") + field(ZNAM, "No") + field(ONAM, "Yes") + field(SCAN, "I/O Intr") +} + # Gain menu. This writes to the Gain PV in the base database. record(mbbo, "$(P)$(R)GainMenu") { @@ -187,6 +218,33 @@ record(bi, "$(P)$(R)FlatFieldValid") field(SCAN, "I/O Intr") } +record(mbbo, "$(P)$(R)GapFill") +{ + field(PINI, "YES") + field(DTYP, "asynInt32") + field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))GAP_FILL") + field(ZRST, "N.A.") + field(ZRVL, "2") + field(ONST, "0") + field(ONVL, "0") + field(TWST, "-1") + field(TWVL, "-1") + field(VAL, "0") +} + +record(mbbi, "$(P)$(R)GapFill_RBV") +{ + field(DTYP, "asynInt32") + field(INP, "@asyn($(PORT),$(ADDR),$(TIMEOUT))GAP_FILL") + field(ZRST, "N.A.") + field(ZRVL, "2") + field(ONST, "0") + field(ONVL, "0") + field(TWST, "-1") + field(TWVL, "-1") + field(SCAN, "I/O Intr") +} + # asyn record for interactive communication with camserver record(asyn, "$(P)$(R)CamserverAsyn")