(Modify) Logic to #StopAfterCycles for cont. mode
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ APPCMDS := $(APP)/cmds
|
||||
#
|
||||
############################################################################
|
||||
|
||||
TEMPLATES += $(wildcard $(APPDB)/*.db)
|
||||
# TEMPLATES += $(wildcard $(APPDB)/*.db)
|
||||
TEMPLATES += $(wildcard $(ADCORE_DIR)/*.db)
|
||||
|
||||
# USR_INCLUDES += -I$(where_am_I)$(APPSRC)
|
||||
|
||||
@@ -217,10 +217,11 @@ record(ai, "$(P)$(R)#NCyclesPartial") {
|
||||
## Stop sequence after N cycles
|
||||
record(calcout, "$(P)$(R)#StopAfterCycles") {
|
||||
field(DESC, "StopAfterCycles")
|
||||
field(CALC, "C < (A + B)")
|
||||
field(CALC, "(C < (A + B)) || (D=2)")
|
||||
field(INPA, "$(P)$(R)#NCyclesPartial NPP")
|
||||
field(INPB, "$(P)$(R)NumImages_RBV NPP")
|
||||
field(INPC, "$(P)$(R)Cycle-Cnt CPP")
|
||||
field(INPD, "$(P)$(R)ImageMode_RBV NPP")
|
||||
field(OOPT, "When Zero")
|
||||
field(OUT, "$(P)$(R)#SoftSeqDisable PP")
|
||||
}
|
||||
|
||||
@@ -929,9 +929,10 @@ void Orca::imageTask(){
|
||||
|
||||
|
||||
getDoubleParam(ADAcquirePeriod, &acqusitionRate);
|
||||
maxAcqusitionTime = acqusitionRate * 2;
|
||||
maxAcqusitionTime = acqusitionRate * 2;
|
||||
epicsTimeGetCurrent(¤tAcqTime);
|
||||
if (epicsTimeDiffInSeconds(¤tAcqTime, &prevAcqTime) > maxAcqusitionTime) {
|
||||
printf("[DEBUG]::maxAcqusitionTime %f\n", maxAcqusitionTime);
|
||||
setShutter(0);
|
||||
stopAcquire();
|
||||
setIntegerParam(ADAcquire, 0);
|
||||
|
||||
Reference in New Issue
Block a user