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: how to put value to other record in subroutine record |
From: | Andrew Johnson <[email protected]> |
To: | "Steiner, Mathias" <[email protected]> |
Cc: | tech-talk <[email protected]> |
Date: | Wed, 16 Oct 2013 10:57:16 -0500 |
On 10/16/2013 08:04 AM, Steiner, Mathias wrote:
static long copyopt(psub) struct subRecord *psub; { [..] kk = 1; dbPutLink(&psub->inpd,DBR_SHORT,&kk,1); } /* end of copyopt(psub) */ where psub-> inpd refers to [..] field(INPD, "some_WF_record.PROC") [..]
Note that this code is using an input link INPD for doing output operations. This apparently works in current versions of EPICS Base, but is not guaranteed to continue to work in the future. We don't have specific plans to break it, but since we don't test or support this usage it could stop working in any future release with no notice.
If you want to do puts from a subroutine record, take a look at the aSub record type, which has output as well as input links.
- Andrew -- Advertising may be described as the science of arresting the human intelligence long enough to get money from it. -- Stephen Leacock