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: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Madden, Timothy J." <tmadden at anl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 1 Apr 2025 22:43:53 +0000 |
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 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 |