From f2525c538bc3d348fab0094491998dfe526d3008 Mon Sep 17 00:00:00 2001 From: rivers Date: Mon, 1 Oct 2012 19:32:11 +0000 Subject: [PATCH] Add AutoOffsetScale git-svn-id: https://subversion.xor.aps.anl.gov/synApps/areaDetector/trunk@15334 dc6c5ff5-0b8b-c028-a01f-ffb33f00fc8b --- documentation/NDPluginProcess.html | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/documentation/NDPluginProcess.html b/documentation/NDPluginProcess.html index 7499b12..8b56c51 100755 --- a/documentation/NDPluginProcess.html +++ b/documentation/NDPluginProcess.html @@ -10,7 +10,7 @@

areaDetector Plugin NDPluginProcess

- December 3, 2011

+ October 1, 2012

Mark Rivers

@@ -269,7 +269,7 @@
Array = Array * Scale + Offset - ENABLE_SCALE_OFFSET + ENABLE_OFFSET_SCALE $(P)$(R)EnableOffsetScale
$(P)$(R)EnableOffsetScale_RBV @@ -277,6 +277,29 @@ bo
bi + + + NDPluginProcess
+ AutoOffsetScale + + asynInt32 + + r/w + + Processing this record will enable Offset and Scale calculations, and set the Offset=-min(Array) + and Scale=MaxScale/(max(Array)-min(Array)), where MaxScale is the maximum value + of the output data type. The output array will thus be scaled to completely fill + the range of the output data type. Note that the calculation of the offset and scale + factors is only done once when this record is processed, and these values are used + for subsequent array callbacks, i.e. it does not autoscale on each array callback. + Thanks to Tom Cobb for this addition. + + AUTO_OFFSET_SCALE + + $(P)$(R)AutoOffsetScale + + busy + NDPluginProcess