Index: padTest-R1-2-3_new_with_added_features_for_nlcta/RELEASE_NOTES =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/ioc/padTest/RELEASE_NOTES,v retrieving revision 1.7 diff -r1.7 RELEASE_NOTES 38a39 > # Release padTest-R1-2-3 41a43,50 > # 11-Aug-2011, Shantha Condamoor (SCONDAM) > # Release padTest-R1-2-4 > # 1. Added padResetFaultingPulses() to reset the total number of faults since reboot > # and the number of faulting pulses for each channel per NLCTA's request. > # A new RST button next to 'Total Sys Faults' will now reset all of the above. > # 2. padSimpReadSignal() changed: Per NLCTA's request modified the logic that compares > # the running average of pulses against the pedestal value > # instead of a single pulse against the pedestal value. 73a83,85 > > padTest-R1-2-4: Per NLCTA's request, added a PV display the total number of system faults since boot. > Also added a reset button to reset the total number of faulting pulses for all 4 channels and the above PV. Index: padTest-R1-2-3_new_with_added_features_for_nlcta/padApp/Db/Makefile =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/ioc/padTest/padApp/Db/Makefile,v retrieving revision 1.9 diff -r1.9 Makefile 24c24 < --- > DB += padB44033.kly_template Index: padTest-R1-2-3_new_with_added_features_for_nlcta/padApp/Db/pad.kly_template =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/ioc/padTest/padApp/Db/pad.kly_template,v retrieving revision 1.5 diff -r1.5 pad.kly_template 112,113c112 < < --- > { $(PRIM), $(LOCA), $(UNIT), $(PAD)_TOTALFLT, "Total number of sys faults", PAD, "1 second","#@26 0 0", "", "0", "0", "0", "0", "0", "0", "NO_ALARM", "NO_ALARM", "NO_ALARM", "NO_ALARM", "", "" } 188a188 > { $(PRIM), $(LOCA), $(UNIT), $(PAD)_RST_FAULTS,"Reset System Faults", "PAD", "#@6", "Passive" } Index: padTest-R1-2-3_new_with_added_features_for_nlcta/padApp/src/devBoPad.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/ioc/padTest/padApp/src/devBoPad.c,v retrieving revision 1.5 diff -r1.5 devBoPad.c 217c217,232 < break; --- > break; > case 6: > rc = padResetFaultingPulses(); > #ifdef DEBUG_PRINT > DEBUGPRINT(DP_INFO, devBoPadFlag, > ("write_bo: %s: Resetting Faulting pulses for all channels and total Faults to 0\n", pbo->name)); > #endif > #ifdef DEBUG_PRINT > if (rc == ERROR) { > DEBUGPRINT(DP_ERROR, devBoPadFlag, > ("write_bo: %s: unable to reset State to NORMAL\n", pbo->name)); > } > #endif > /*pbo->sevr = INVALID; or something */ > break; > Index: padTest-R1-2-3_new_with_added_features_for_nlcta/padApp/src/devLonginPad.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/ioc/padTest/padApp/src/devLonginPad.c,v retrieving revision 1.7 diff -r1.7 devLonginPad.c 225a226,228 > case 26: > plongin->val = padGetFaultCount(); > break; Index: padTest-R1-2-3_new_with_added_features_for_nlcta/padApp/src/drvPad.c =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/ioc/padTest/padApp/src/drvPad.c,v retrieving revision 1.12 diff -r1.12 drvPad.c 16c16,26 < Mod: 03-may-2011, Shantha Condamoor (scondam): --- > Mod: 11-Aug-11, Shantha Condamoor (scondam): > 1. Added padResetFaultingPulses() to reset the total number of faults since reboot > and the number of faulting pulses for each channel per NLCTA's request. > A new RST button next to 'Total Sys Faults' will now reset all of the above. > 2. padSimpReadSignal() changed: Per NLCTA's request modified the logic that compares > the running average of pulses against the pedestal value > instead of a single pulse against the pedestal value. > 15-Jul-11, Shantha Condamoor (scondam): > 1. Change 'chan->avgS not within accepted range' to 'chan->avgOut not within accepted range' > in the function padSimpReadSignal() > 03-may-2011, Shantha Condamoor (scondam): 838a849,870 > > /*============================================================================= > > Name: padResetFaultingPulses > > Abs: Reset the number of faulting pulses for all 4 channels and > the total number of system faults since boot. > > =============================================================================*/ > int padResetFaultingPulses(void) { > int channel; > > for (channel=0; channel<4; channel++) { > fail_state* fSt; > fSt = fst[channel]; > fSt->faults = 0; > } > faultCount = 0; > DEBUGPRINT(DP_ERROR, drvPadFlag, > (" padResetFaultingPulses: Resetting number of fault pulses for all channels and the total number of system faults\n")); > return 0; > } 1433c1465 < /* chan->avgS not within accepted range */ --- > /* scondam: 15-Jul-11 Change 'chan->avgS not within accepted range' to chan->avgOut not within accepted range */ 1435c1467 < if (chan->avgS > chan->avgOut_ped) { /* fault state only if avg is above a user-settable pedestal value */ --- > if (chan->avgOut > chan->avgOut_ped) { /* fault state only if avg is above a user-settable pedestal value */ 1477a1510,1513 > /* scondam: 11-Aug-2011: Keep track of total number of system faults since boot per NLCTA's request */ > else { > ++faultCount; > } Index: padTest-R1-2-3_new_with_added_features_for_nlcta/padApp/srcDisplay/pad_esbpad033.sh =================================================================== RCS file: /afs/slac/g/lcls/cvs/epics/ioc/padTest/padApp/srcDisplay/pad_esbpad033.sh,v retrieving revision 1.2 diff -r1.2 pad_esbpad033.sh 1c1 < edm -x -m "TITLE=EIOC:ESB:PAD033,acsw=ACSW:B44:NW01,plug=4,PAD_PRIM=EIOC,PAD_LOCA=ESB,PAD_UNIT=PAD033,PAD=TST,CH0NAME=CH0,CH1NAME=CH1,CH2NAME=CH2,CH3NAME=CH3" $EPICS_IOC_TOP/padTest/padTest_nlcta/padApp/srcDisplay/nlcta.edl & --- > edm -x -m "TITLE=EIOC:ESB:PAD033,acsw=ACSW:B44:NW01,plug=4,PAD_PRIM=EIOC,PAD_LOCA=ESB,PAD_UNIT=PAD033,PAD=TST,CH0NAME=CH0,CH1NAME=CH1,CH2NAME=CH2,CH3NAME=CH3" /afs/slac/g/testfac/rhel4/epics/R3.14.8.2-lcls6/iocTop/stn3Pad/padTest_nlcta/padApp/srcDisplay/nlcta.edl &