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  <2025 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  <2025
<== Date ==> <== Thread ==>

Subject: Re: SNL assign to field of PV
From: "Madden, Timothy J. via Tech-talk" <tech-talk at aps.anl.gov>
To: "Rivers, Mark L." <rivers at cars.uchicago.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "jwsincla at chartertn.net" <jwsincla at chartertn.net>
Date: Wed, 2 Apr 2025 15:35:09 +0000
Thanks Mark and John!
Tim M


From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Tuesday, April 1, 2025 5:43 PM
To: Madden, Timothy J. <tmadden at anl.gov>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: RE: SNL assign to field of PV
 
Hi Tim, Strictly speaking PVs don’t have fields, records have fields. PVs are basically record fields. So any place where you assign a PV to an SNL variable you can use an field name like .HIHI. Here is an example where the .PROC field
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd

Hi Tim,

 

Strictly speaking PVs don’t have fields, records have fields.  PVs are basically record fields.  So any place where you assign a PV to an SNL variable you can use an field name like .HIHI.

 

Here is an example where the .PROC field is used. https://github.com/epics-modules/ip/blob/1b39fea28d483e6ea008afafd96b0f471f169b42/ipApp/src/Keithley2kDMM_mf40.st#L142

 

Here is an example where the .RVAL field is used: https://github.com/epics-modules/ip/blob/1b39fea28d483e6ea008afafd96b0f471f169b42/ipApp/src/Oxford_CS800.st#L146

 

Mark

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Madden, Timothy J. via Tech-talk
Sent: Tuesday, April 1, 2025 5:00 PM
To: tech-talk at aps.anl.gov
Subject: SNL assign to field of PV

 

Tech Talk:

 

Is there a way to set or get specific fields of a PV from a SNL program? Example, say we want to pvPut

the HIHI field of a PV.  I see ways to get/put VAL by assign and pvGet()/pvPut(). But I don't see a way to get other fields of the PV.

 

Tim Madden

APS

 


References:
SNL assign to field of PV Madden, Timothy J. via Tech-talk
RE: SNL assign to field of PV Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: SNL assign to field of PV Mark Rivers via Tech-talk
Next: Stream2 support in ADEiger Mark Rivers 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  <2025
Navigate by Thread:
Prev: RE: SNL assign to field of PV Mark Rivers via Tech-talk
Next: Stream2 support in ADEiger Mark Rivers 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  <2025
ANJ, 02 Apr 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·