From 0e9a5b3c0d6f35c2bcf2602c9831a40b8d23382c Mon Sep 17 00:00:00 2001 From: rivers Date: Sat, 3 Dec 2011 19:57:58 +0000 Subject: [PATCH] Documented AutoResetFilter, FilterCallbacks, new FilterType=Sum, renamed RecursiveSum to Average git-svn-id: https://subversion.xor.aps.anl.gov/synApps/areaDetector/trunk@14245 dc6c5ff5-0b8b-c028-a01f-ffb33f00fc8b --- documentation/NDPluginProcess.html | 78 +++++++++++++++++++++++++++--- 1 file changed, 71 insertions(+), 7 deletions(-) diff --git a/documentation/NDPluginProcess.html b/documentation/NDPluginProcess.html index e1e41b1..cbeda24 100755 --- a/documentation/NDPluginProcess.html +++ b/documentation/NDPluginProcess.html @@ -10,7 +10,7 @@

areaDetector Plugin NDPluginProcess

- August 9, 2011

+ December 3, 2011

Mark Rivers

@@ -469,6 +469,53 @@ bo
bi + + + NDPluginProcess
+ AutoResetFilter + + asynInt32 + + r/w + + If enabled then when NumFiltered=NumFilter the filter automatically resets. This + can be very useful when using the Average or Sum filter modes. As soon as N sums + or averages have been performed the filter resets, so the next sum or average is + computed. + + AUTO_RESET_FILTER + + $(P)$(R)AutoResetFilter
+ $(P)$(R)AutoResetFilter_RBV + + bo
+ bi + + + + NDPluginProcess
+ FilterCallbacks + + asynInt32 + + r/w + + Choices are "Every array" and "Array N only". If "Every array" is selected then + the plugin does callbacks for every incoming array it receives. If "Array N only" + is selected then the plugin only does callbacks when NumFiltered=NumFilter. This + can be very useful when using the Sum or Average filter modes. Callbacks are then + done only when N sums or averages have been performed. If used with AutoResetFilter + then as input arrays arrive the plugin will continually output one summed or averaged + array after every N incoming arrays. + + FILTER_CALLBACKS + + $(P)$(R)FilterCallbacks
+ $(P)$(R)FilterCallbacks_RBV + + bo
+ bi + NDPluginProcess
@@ -900,17 +947,34 @@ O[n] = F[n] = (1-1/N)*F[n-1] + 1/N*I[n] the output data type.

- Recursive Sum

+ Average

- The recursive average filter does input array summing. It is defined as:

+ The average filter does input array averaging. It is defined as:

 O[n] = F[n] = F[n-1] + 1/N*I[n]
 

- N is the characteristic number of arrays in the sum. For example, if N=100, then - each new array is weighted by 0.01. When this filter is reset the filter array is - initialized to 0. This filter typically cannot be run forever, because the output - grows monotonically and will lead to overflow. + N is the number of arrays in the average. For example, if N=100, then each new array + is weighted by 0.01. When this filter is reset the filter array is initialized to + 0. This filter typically cannot be run forever, because the output grows monotonically + and will lead to overflow. However, if AutoResetFilter is enabled then the filter + will be reset when NumFiltered=NumFilter. If ArrayCallbacks is "Array N only" then + callbacks will be done only with the final averaged value. +

+

+ Sum

+

+ The sum filter does input array summing. It is defined as:

+
+O[n] = F[n] = F[n-1] + I[n]
+
+

+ This filter simply computes the sum of input arrays. When this filter is reset the + filter array is initialized to 0. It is often necessary to set the output data type + to one with a larger maximum value than the input array to prevent overflow. If + AutoResetFilter is enabled then the filter will be reset when NumFiltered=NumFilter. + If ArrayCallbacks is "Array N only" then callbacks will be done only with the final + summed value.

Difference