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: Accessing waveform record values in C |
From: | "Dudley, David via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Fri, 19 Feb 2021 21:25:40 +0000 |
If all you’re trying to do is to read elements of the waveform, couldn’t you also use the “Channel Filters” functions that allow access to the elements directly? I use those all the time in cs-studio displays. They’re outlined here: <filters (anl.gov)>.
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Hu, Yong via Tech-talk [EXTERNAL] This email originated from outside of FRIB
Another way without any C codes: use “subArray” record(s) to extract individual element(s) from a waveform record. record(subArray, "second_element") { field(INP, "waveform_record CP") field(FTVL, "CHAR") field(MALM, "250") field(NELM, 1) field(INDX, 1) } See this for details (or search other website):
https://wiki-ext.aps.anl.gov/epics/index.php/RRM_3-14_SubArray HTH, Yong Hu From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "tech-talk at aps.anl.gov"
<tech-talk at aps.anl.gov> Hi Andy, Have you set the field type of field "A" in the aSub record to CHAR? FTA set to CHAR. Cheers, Andy On Thu, 18 Feb 2021, 05:23 Wang, Andrew via Tech-talk, <tech-talk at aps.anl.gov> wrote:
|