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: "Gregory, Ray via Tech-talk" <[email protected]>
To: "Johnson, Andrew N." <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 29 Oct 2025 15:16:38 +0000
Thank you, Andrew. Works great!

Ray

Ray Gregory

DAS Software Group

NTD Division

NScD Directorate

Oak Ridge National Laboratory 


From: Johnson, Andrew N. <[email protected]>
Sent: Tuesday, October 28, 2025 6:28 PM
To: Gregory, Ray <[email protected]>; [email protected] <[email protected]>
Subject: [EXTERNAL] Re: writing a value of a string PV to a waveform PV in another IOC
 
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,
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 



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
Re: writing a value of a string PV to a waveform PV in another IOC Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: PVAccess UDP/TCP connections failing - no more data in UDP packet Kacper Kłys DMCS via Tech-talk
Next: Ubuntu 25.10 EPICS modules will not compile Graeme Elliner 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: Re: writing a value of a string PV to a waveform PV in another IOC Johnson, Andrew N. via Tech-talk
Next: Re: Tech-talk Digest, Vol 19, Issue 478 Hong, Ran 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 ·