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: Disable output record using asynInt32 interface automatic read from the hardware |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | Yann Mandza <yann.mandza at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 22 Apr 2024 18:42:10 +0000 |
Hi Yann,
That does not seem correct to me. The asynFloat64 device support for the ao record does do an initial read from the driver in this line: What is your evidence that the readFloat64 method is not being called?
Both of those records should make an initial call to readInt32. The longout record is done in this line: The bo record is done in this line: The initial value read from the driver is only used in the record if the readFloat64 or readInt32 methods return asynSuccess. Is your driver returning asynSuccess? Mark From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Yann Mandza via Tech-talk Hi all, I have an asyn port driver using the asynInt32 and asynFloat64 interfaces for different output record types. Am using the asynDrvUser to create the driver parameters. I noticed that for asynFloat64 interface, there is no auto call to the ‘readFloat64’ method when DB load at ioc boot which is the behaviour am expecting. However, for asynInt32 interface, Ao records tend to make a call
to the ‘readInt32’ method somehow automatically. I tried longout and bo on that interface and there are no initial calls to ‘readInt32’. Tried to follow this thread.
https://epics.anl.gov/tech-talk/2019/msg01402.php, but am still puzzled on how to control this feature on AO records. My DB looks somehow like this, am my driver has these asynflags: ASYN_CANBLOCK | ASYN_MULTIDEVICE record( ao, "$(P)$(R):DelayedTripAction-O") { field(DTYP,"asynInt32") field(OUT,"@asyn($(PORT))INT_PARAM1($(ADDR))") } record(mbbo,"$(P)$(R):R2") { field(DTYP,"asynInt32") field(OUT,"@asyn($(PORT)) INT_PARAM2($(ADDR))") } Best Regards Yann |