Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: Scaling a waveform record
From: Tim Mooney <mooney@aps.anl.gov>
To: Tech-Talk <tech-talk@aps.anl.gov>
Date: Mon, 05 Jun 2006 10:20:17 -0500
Oops, forgot to cc: tech-talk on this

-------- Original Message --------
Subject: Re: Scaling a waveform record
Date: Mon, 05 Jun 2006 09:36:28 -0500
From: Tim Mooney <mooney@aps.anl.gov>
To: Paul Joireman <joireman@fnal.gov>
References: <9454b70a7942.4483ebc7@fnal.gov>



Paul Joireman wrote:
> Hello,
>
> I am working with a VME digitizer board that writes its digitized samples to a
> block of A32 memory space on the board.  I can read these values into a
> waveform record using instrument I/O support, however, I would like to
> scale the raw values to engineering units.   What is the best way or a way
> to do this with a waveform record?

Here are some options:

1) Modify the device support software to do the conversion.  The waveform record
doesn't appear to have fields dedicated to holding values that would direct the
conversion from raw to engineering-unit values, so your device support should
also support another record type (ao, most likely), and instances of this record
could hold offset and scale values.

2) Use the array calc (aCalcout) record, a new addition to the synApps 'calc'
module (new in version 2.6). See
	http://www.aps.anl.gov/aod/bcda/synApps/calc/calc.html
In this case, offset and scale values would be scalar fields of the aCalcout
record (or simply constants in the expression).

3) Write a subroutine for the genSub record.  In this case as well, scalar
fields of the genSub record could hold offset and scale values.

I would go with option (1) if I didn't already have the calc module installed,
because installing the calc module also requires installing the sscan and
genSub modules (or modifying the calc module so it doesn't need those other
modules).

--
Tim Mooney (mooney@aps.anl.gov) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.

References:
Scaling a waveform record Paul Joireman

Navigate by Date:
Prev: Re: Scaling a waveform record Steven Hartman
Next: Re: Motor.h file broken for C Doug Murray
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: Scaling a waveform record Steven Hartman
Next: CA overload 32 * 9 waveforms etc. Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·