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  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: init a waveform
From: "Johnson, Andrew N. via Tech-talk" <[email protected]>
To: Alfio Rizzo <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 6 Nov 2019 16:30:09 +0000
Hi,

On 11/6/19 9:26 AM, Alfio Rizzo via Tech-talk wrote:
I was wondering if there is a way to fill with some initial values a waveform record in a db file,

I.e. something like

 

record (waveform,mywave){

  …

  field(VAL,”X Y Z”)

  …

}


Yes, if you are using a recent EPICS 7 then you can initialize it using an array constant link like this:

record(waveform, wf100:i16) {
  field(FTVL, "SHORT")
  field(NELM, "100")
  field(INP, [1, 2, 3, 4, 5])
}

I forget exactly which version you need to be on (maybe 7.0.2), it doesn't have to be the version that just came out though.

- Andrew
-- 
Complexity comes for free, Simplicity you have to work for.

References:
init a waveform Alfio Rizzo via Tech-talk

Navigate by Date:
Prev: init a waveform Alfio Rizzo via Tech-talk
Next: Re: Waveform record not sending monitor on .NORD field Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: init a waveform Alfio Rizzo via Tech-talk
Next: rmt CCExecInit problem Tasaddaq Khan via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 07 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·