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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: looking for aai/waveform example |
From: | "Hu, Yong via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "David A. Slimmer" <slimmer at fnal.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 30 Jul 2020 21:50:31 +0000 |
Hi Dave, For waveform record, I usually simply use “memcpy” in the device support routine, something like this: memcpy(precord->bptr, pointer-to-data-source, size-of-bytes-to-be-copied); precord->nelm = number-of-data-point; precord->nord = number-of-data-point; precord is a pointer to waveformRecord. Good luck! Yong 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, I’m looking for an example of setting the input of an aai or waveform record via a function call (device support?). The function call accesses shared memory on the system where the ioc would be running if that is relevant. Thanks Dave |