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: calcout without update |
From: | Tim Mooney <[email protected]> |
To: | Emmanuel Mayssat <[email protected]> |
Cc: | epics <[email protected]> |
Date: | Wed, 01 Nov 2006 12:07:58 -0600 |
Hello all,
I have a calcout record that select the video multiplexer channel based on the combination of inserted screen. The calcout is being scanned at a rate of 10 sec. So every 10 sec, my mux receive the command to set a channel at a given value. Obviously this is true, even if the channel is already selected.
Q: How can I tell the calcout not to send any value on its out field ? (i.e. if channelSelector NPP is already at given value, then do nothing. ) ( field(CALC, "A=0?:1") ? if INPA is set at 0 then do nothing otherwise put 1 on OUT field record)
I tried playing with the PROC field, but it seems that whatever value you put in this field trigger processing of the associated record.
Thank you for your help,
The calcout record can also handle more complicated cases, in which the value to be sent cannot also be used as the switch that determines whether or not a value should be sent. See www.aps.anl.gov/epics/wiki/index.php/RRM_3-13_Calcout and check out the OCAL and DOPT fields
-- Tim Mooney ([email protected]) (630)252-5417 Beamline Controls & Data Acquisition Group Advanced Photon Source, Argonne National Lab