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: A db question about aiExample |
From: | Ned Arnold <[email protected]> |
To: | marco_hair <[email protected]> |
Cc: | tech-talk <[email protected]> |
Date: | Thu, 20 Nov 2008 08:49:37 -0600 |
Geyang - Changing the definition of the calc record to this (only the CALC and INPB field are different) will give you the desired result: record(calc, "$(user):calcExample") { field(DESC, "Counter") field(SCAN,"1 second") field(FLNK, "$(user):aiExample") field(CALC, "A-B>0?A=9?8:A+1:A=0?1:A-1") field(INPA, "$(user):calcExample.VAL NPP NMS") field(INPB, "$(user):calcExample.LA NPP NMS") field(EGU, "Counts") field(HOPR, "10") field(HIHI, "8") field(HIGH, "6") field(LOW, "4") field(LOLO, "2") field(HHSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(LLSV, "MAJOR") } Ned On Nov 20, 2008, at 4:57 AM, marco_hair wrote: Dear all: |