![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
I use the following an database to tell me when 1 minute has elapsed ... not sure that this will help with what you need but it might give you another idea. record(stringin,"S:SRsecsPastEpochSI") { field(DESC,"Seconds Past Epoch") field(DTYP,"Soft Timestamp") field(SCAN,"1 second") field(FLNK,"S:SRsecsPastEpoch PP NMS") field(PINI,"YES") field(INP,"@%s") } record(scalcout,"S:SRsecsPastEpoch") { field(DESC,"Sec Past Epoch") field(DTYP,"Soft Channel") field(CALC,"INT(A)-INT(B)") field(INPA,"S:SRsecsPastEpochSI.VAL NPP NMS") field(INPB,"631152000") field(OOPT,"Never") field(FLNK,"XFD:IntervalMinute PP NMS") field(PREC,"0") field(EGU,"Sec") } record(calcout,"XFD:IntervalMinute") { field(CALC,"A%B = 0? 1:0") field(INPA,"S:SRsecsPastEpoch.VAL NPP NMS") field(INPB,"60") field(OUT,"XFD:FillArrays.PROC PP NMS") field(OOPT,"Transition To Non-zero") } Marty Andrew Wagner wrote: Hey guys,
| ||||||||||||||||
ANJ, 02 Sep 2010 |
![]() · Download · Search · IRMIS · Talk · Documents · Links · Licensing · |