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: Setting RECORD value to another RECORD |
From: | Dirk Zimoch <[email protected]> |
To: | <[email protected]> |
Date: | Fri, 11 Dec 2015 13:59:21 +0100 |
What is wrong:FLNK does not pass any data. You need an OUT link to pass data. ai does not have an OUT link. You need ao to do that. ao does not have an INP link. Use DOL the link. To read the DOL you must set OMSL to closed_loop. Make all the OUT links PP to process the offset record.
record(ao, "$(dev):calcoffset") { field(DTYP, "Soft Channel") field(OMSL, "closed_loop") field(DOL, "$(dev):rawval") field(OUT, "$(dev):offset PP") } record(ai, "$(dev):offset") { field(DTYP, "Soft Channel") } record(ao, "$(dev):zeroOffset") { field(OUT, "$(dev):offset PP") field(VAL, "0") } On 11.12.2015 10:16, Mogamad Amien Crombie wrote:
Hi I have 3 records like this: ############################################# record(ai, "$(dev):calcoffset") { field(DTYP, "Soft Channel") field(INP, "$(dev):rawval") field(FLNK, "$(dev):offset PP") } record(ai, "$(dev):offset") { field(DTYP, "Soft Channel") } record(ao, "$(dev):zeroOffset") { field(OUT, "$(dev):offset") field(VAL, "0") } ############################################## All I want to do is to get a value from my Asyn INP (input) called $(dev):rawval and assign the value to $(dev):offset. Also I use $(dev):zeroOffset to set this to 0. But somehow when I do a PUT to $(dev):calcoffset, my #(dev):offset is not set to this INP value. What I'm I doing wrong Thanks Amien Crombie Cape Town iThemba-LABS