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  2019  <20202021  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  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: database method to copy string to char waveform
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 22 Jul 2020 15:30:20 +0000
You can also use a long string output (lso) record to copy a string into a waveform or vice versa. This works for me, and will similarly require 3.15 or later:

record(stringout, "so") {
  field(VAL, "This is another string")
}
record(waveform, "wf") {
  field(NELM, 100)
  field(FTVL, CHAR)
}
record(lso, "xerox") {
  field(DOL, "so")
  field(OMSL, "closed_loop")
  field(OUT, "wf")
}

You can swap the DOL and OUT links to copy in the other direction.

- Andrew


On Jul 22, 2020, at 9:19 AM, Ralph Lange via Tech-talk <tech-talk at aps.anl.gov> wrote:

Hi Malte,

Using current 3.15 or EPICS 7, this database:

record (waveform, "wf") {
  field(NELM, "100")
  field(FTVL, "CHAR")
  field(INP, "so.VAL$")
}
record (stringout, "so") {
  field(VAL, "this is a string")
}

does that job for me. Or did I get the problem wrong?

Cheers,
~Ralph


-- 
Complexity comes for free, simplicity you have to work for.


References:
database method to copy string to char waveform Malte Gotz via Tech-talk
Re: database method to copy string to char waveform Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: database method to copy string to char waveform Ralph Lange via Tech-talk
Next: Changing ioc logging. Should I use a modified iocLogServer? Tom Cumming 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  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: database method to copy string to char waveform Ralph Lange via Tech-talk
Next: Changing ioc logging. Should I use a modified iocLogServer? Tom Cumming 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  2019  <20202021  2022  2023  2024 
ANJ, 22 Jul 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·