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  2020  2021  2022  2023  2024  <20252026  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  2020  2021  2022  2023  2024  <20252026 
<== Date ==> <== Thread ==>

Subject: Re: writing a value of a string PV to a waveform PV in another IOC
From: "Johnson, Andrew N. via Tech-talk" <[email protected]>
To: "Gregory, Ray" <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 28 Oct 2025 22:28:58 +0000
record(stringout, "source") {
    field(VAL, "String to copy")
}

record(aao, "str-copy") {
    field(FTVL, "CHAR")
    field(NELM, 100)
    field(DOL, "source.$")
    field(OMSL, "closed_loop")
    field(OUT, "dest")
}

record(waveform, "dest") {
    field(FTVL, "CHAR")
    field(NELM, 100)
}

This uses an aao record to grab the source value as an array of chars, and then copy that array to the waveform. Process the str-copy record to perform the copy. Note that the DOL and OMSL fields were only added to the aao record type in EPICS version 7.0.7.

- Andrew


-- 

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


On 10/28/25, 5:07 PM, "Tech-talk" <[email protected]> wrote:

Hi,

What is the best way (without having to write anything more than EPICS database code) to copy the value of a string PV (stringout) hosted in one IOC to a waveform PV (char type) hosted by another PC?

I'm having problems trying to set the output link to a waveform PV name.

Thank you,

Ray

Ray Gregory

DAS Software Group

NTD Division

NScD Directorate

Oak Ridge National Laboratory 



Replies:
Re: writing a value of a string PV to a waveform PV in another IOC Gregory, Ray via Tech-talk
References:
areadetector PV for pilatus3 retrigger and count-rate correction Keith Surrena via Tech-talk
RE: areadetector PV for pilatus3 retrigger and count-rate correction Mark Rivers via Tech-talk
RE: areadetector PV for pilatus3 retrigger and count-rate correction Keith Surrena via Tech-talk
writing a value of a string PV to a waveform PV in another IOC Gregory, Ray via Tech-talk
writing a value of a string PV to a waveform PV in another IOC Gregory, Ray via Tech-talk

Navigate by Date:
Prev: writing a value of a string PV to a waveform PV in another IOC Gregory, Ray via Tech-talk
Next: PVAccess UDP/TCP connections failing - no more data in UDP packet Kacper Kłys DMCS 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  2020  2021  2022  2023  2024  <20252026 
Navigate by Thread:
Prev: writing a value of a string PV to a waveform PV in another IOC Gregory, Ray via Tech-talk
Next: Re: writing a value of a string PV to a waveform PV in another IOC Gregory, Ray 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  2020  2021  2022  2023  2024  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·