EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: waveform changes using subArray
From: Tim Mooney <[email protected]>
To: Hinko Kocevar <[email protected]>
Cc: Tech Talk <[email protected]>
Date: Thu, 13 Sep 2012 11:33:45 -0500 (CDT)
Hinko,

You could do this with the acalcout (array calcout) record in the calc module. (http://www.aps.anl.gov/bcda/synApps/calc/aCalcoutRecord.html)
If .BB is the M-element replacement array, you can read the waveform into the .AA field, overwrite with M elements from .BB, beginning at index N, and write the result back to the waveform record, by configuring the record like this:

.A = M
.B = N
.INAA = "waveform.VAL NPP"
.CALC = "AA[0,B-1]+(BB[0,A-1]>>B)+(AA[A+B,-1]>>A+B)"
.OUT = "waveform.VAL PP"

Tim

----- Original Message -----
From: "Hinko Kocevar" <[email protected]>
To: "Tech Talk" <[email protected]>
Sent: Thursday, September 13, 2012 6:59:05 AM
Subject: waveform changes using subArray

Hi,

We are trying to support a modification of long array (i.e. more than 
500 integer values) seen as a waveform in EPICS IOC. Lets say that it is 
possible and valid for user to change only one or two values from this 
array. By using waveform user needs to get all 500 integers locate the 
one she wants to change, do the modification, store complete array back.
Using subArray to make a "window" into waveform sounded like a good 
solution, but as I just read in the docs, subArray does not support 
value writing back to the waveform.

Can this be done in some other manner? The goal here would be to allow 
user to get/see/change/set only the part of waveform, that shes 
interested in.

Thank you!

Hinko
-- 
Hinko Kocevar
Software development engineer
Instrumentation Technologies d.d.
Velika pot 22, SI-5250 Solkan - Slovenia
T:+386 5 3352600, F:+386 5 3352601
E-mail: [email protected]
http://www.i-tech.si

The information transmitted is intended solely for the
addressee and may contain confidential and/or privileged
information. Any review, retention, disclosure or other use
by persons other than the intended recipient is prohibited.
If you received this in error, please notify the sender and
delete all copies.

-- 
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab

Replies:
Re: waveform changes using subArray Hinko Kocevar
References:
waveform changes using subArray Hinko Kocevar

Navigate by Date:
Prev: gpu integration into epics Sean Murray
Next: BPM screens Isadoro Carlino
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: waveform changes using subArray Ned Arnold
Next: Re: waveform changes using subArray Hinko Kocevar
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·