Hi Mark,
I'm trying to use the new stats and time series plugins. It got it to work, with two comments.
a)
I get only two distinct timestamps displayed in NDPluginTimeseries plugin window. The Unique ID also toggles between two values. I have a test case with the following startup script:
NDStatsConfigure("ST.LCR.CH$(C)", $(QSIZE), 0, "$(PORT)", $(C), 0, 0, 0, 0, $(MAX_THREADS=5))
dbLoadRecords("NDStats.template", "P=$(PREFIX),R=STLCRCH$(N):, PORT=ST.LCR.CH$(C),ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=$(XSIZE),YSIZE=$(YSIZE),NCHANS=$(NCHANS),NDARRAY_PORT=$(PORT),NDARRAY_ADDR=$(C),TS_PORT=STTS.LCR.CH$(C)")
NDTimeSeriesConfigure("STTS.LCR.CH$(C)", $(QSIZE), 0, "ST.LCR.CH$(C)", 1, 23)
dbLoadRecords("NDTimeSeries.template", "P=$(PREFIX),R=STLCRCH$(N):TS:, PORT=STTS.LCR.CH$(C),ADDR=0,TIMEOUT=1,NDARRAY_PORT=ST.LCR.CH$(C),NDARRAY_ADDR=1,NCHANS=$(NCHANS),TIME_LINK=$(PREFIX)TickValueR,ENABLED=1")
dbLoadRecords("NDTimeSeriesN.template", "P=$(PREFIX),R=STLCRCH$(N):TS:Min:, PORT=STTS.LCR.CH$(C),ADDR=0,TIMEOUT=1,NCHANS=$(NCHANS),ENABLED=1,NAME=Min")
dbLoadRecords("NDTimeSeriesN.template", "P=$(PREFIX),R=STLCRCH$(N):TS:Max:, PORT=STTS.LCR.CH$(C),ADDR=3,TIMEOUT=1,NCHANS=$(NCHANS),ENABLED=1,NAME=Max")
dbLoadRecords("NDTimeSeriesN.template", "P=$(PREFIX),R=STLCRCH$(N):TS:Ave:, PORT=STTS.LCR.CH$(C),ADDR=6,TIMEOUT=1,NCHANS=$(NCHANS),ENABLED=1,NAME=Average")
The stats plugin shows the proper Uniques ID and timestamp, same as the driver.
b)
When changing the Time link field value (sets DOL), the Time/point RBV does not update. I have to use caput $(P)$(R):TSTimePerPointLink.PROC 1 to have it process.
Thanks,
Hinko