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: dbGetField AI.DPVT |
From: | "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Dave Bracey <dbracey at fnal.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 22 Jul 2024 21:27:20 +0000 |
When you do a put to an ai.VAL field of a record that has device support connected to it, you're mostly just triggering the record to process. That will call the device support, which should perform an I/O operation that will update the
VAL field. Many IOC applications use ai (and ao) records just as places to hold a double value that can be written to and read from by other local records or over the network. In that case they're relying on being able to write to the VAL field. As John Sinclair replied, the DPVT field normally holds a pointer to an internal structure that is defined by the specific device support being used for that record; you would only be able to store stuff in it if you wrote that device support
code, and in that case you wouldn't use dbGetField() to access it anyway. - Andrew |