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: record to record ... |
From: | "Kasemir, Kay" <[email protected]> |
To: | Stefen Paul <[email protected]>, EPICS Tech Talk <[email protected]> |
Date: | Mon, 13 Jul 2015 14:35:49 +0000 |
Hi:
In principle, you can read include/link.h to get the 'record' pointer of a link, cast that to the appropriate type, ... But that's a bad idea because you'd directly access the memory of that other record without it being locked. Unless you really know what you're doing, it's much safer to use the standard `asub` (ex `genSub`) record and have its output links handle writing to other records.
-Kay
From: [email protected] <[email protected]> on behalf of Stefen Paul <[email protected]>
Sent: Monday, July 13, 2015 10:14 AM To: EPICS Tech Talk Subject: record to record ... Hi
Just wanna know that if we have a 'sub' record then from its subroutine can we directly write into RVAL field of some other records say 'ai' records in the same database.
If the answer is yes then how does one get the address/pointer of other records (ai for example) in the subroutine of 'sub' record ?
Thanks,
Stefen.
|