#----- Soft Channel records for house keeping ------ record( calc, "$(P):CALC_1PER_SECOND"){ field( DESC, "count per second") field( SCAN, "1 second") field( CALC, "A+B") field( INPA, "$(P):CALC_1PER_SECOND.VAL NPP NMS") field( INPB, "1") field( EGU, "Counts") field( VAL, "1") } record( bi, "$(P):BI_COUNT_GETS"){ field( DESC, "Count Waveforms") field( SCAN, "I/O Intr") field( DTYP, "asynInt32") field( INP, "@asyn($(PORT),0,1)BI_CTGETS") field( ZNAM, "off") field( ONAM, "on") field( FLNK, "$(P):CALC_COUNT_GETS PP") } record( calc, "$(P):CALC_COUNT_GETS"){ field( DESC, "count histogram gets") field( SCAN, "Passive") field( CALC, "A+B") field( INPA, "$(P):CALC_COUNT_GETS.VAL NPP NMS") field( INPB, "1") field( EGU, "Counts") field( VAL, "1") } record( calc, "$(P):CALC_COUNT_RATE"){ field( DESC, "counting rate") field( SCAN, "5 second") field( CALC, "A/(B>0?B:1)") field( INPA, "$(P):CALC_COUNT_GETS.VAL NPP NMS") field( INPB, "$(P):CALC_1PER_SECOND.VAL NPP NMS") field( PREC, "1") field( EGU, "ct/s") } record( calc, "$(P):CALC_CLR_RATE"){ field( DESC, "reset rate counters") field( CALC, "1-A") field( INPA, "$(P):CALC_CLR_RATE.VAL NPP NMS") field( VAL, "0") field( FLNK, "$(P):DFO_CLR_RATE") } record( dfanout,"$(P):DFO_CLR_RATE"){ field( DESC, "reset rate:") field( DOL, "0.0") field( OUTA, "$(P):CALC_COUNT_GETS.VAL PP NMS") field( OUTB, "$(P):CALC_1PER_SECOND.VAL PP NMS") field( VAL, "0.0") } record( stringin, "$(P):SI_START_TIME"){ field( DESC, "start date and time") field( DTYP, "Soft Timestamp") field( PINI, "YES") field( INP, "@%m/%d/%Y %H:%M:%S") } record( stringin, "$(P):SI_CURR_TIME"){ field( DESC, "current date and time") field( DTYP, "Soft Timestamp") field( SCAN, "1 second") field( INP, "@%m/%d/%Y %H:%M:%S") } #--- records to control and perform analysis --------------------- record( mbbo, "$(P):MBBO_MARK_CHAN"){ field( DESC, "Set marker for channel:") field( DTYP, "asynInt32") field( OUT, "@asyn($(PORT),0,1)MBBO_MCHAN") field( ZRVL, "0") field( ONVL, "1") field( TWVL, "2") field( THVL, "3") field( ZRST, "Chan1") field( ONST, "Chan2") field( TWST, "Chan3") field( THST, "Chan4") info( asyn:READBACK, "1") } #----------------- scope commands ------------------------------------- record( calc, "$(P):CALC_COUNT"){ field( DESC, "Counter") field( SCAN, "$(SCAN)") field( CALC, "(A