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: netDev "channels" record type problem |
From: | "Arnold, Ned D. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Владимир Сергейчик <vladimirsergeychik2002 at gmail.com> |
Date: | Mon, 7 Aug 2023 11:55:49 +0000 |
In your attached database, the first record is a custom record named "channels". My guess is that this custom record is not invoking the FLNK properly in its code.
Ned
record(channels,"IR:something:GM10:channels"){
field(SCAN,"1 second")
field(DTYP,"Darwin")
field(INP,"@192.168.11.101(34151)#001,002")
field(NELM,"2")
field(FLNK,"IR:something:T1.PROC CA")
}
record(ao,"IR:something:T1"){
field(SCAN,"Passive")
field(OMSL,"closed_loop")
field(EGU,"degree")
field(DOL,"IR:something:GM10:channels.CH01")
field(DESC, "something temp before HEX")
field(FLNK,"IR:something:T2.PROC CA")
}From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Владимир Сергейчик via Tech-talk <tech-talk at aps.anl.gov>
Sent: Monday, August 7, 2023 04:10 AM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: netDev "channels" record type problem Hello everyone! I want to read out data from GM10 data logger, using netDev "channels" record type (it turns the set of PVs into an array). However, I have encountered some problem: I need to use "Passive" SCAN mode for the elements of that array,
however, it would work only if I add .PROC CA to the FLNK line:
field(FLNK,"IR:something:T1.") -> field(FLNK,"IR:something:T1.PROC CA")
Only in this case it starts working properly. (By "working properly" I mean that while processing the data from datalogger both individual PV and the corresponding element of the array change simultaneously, while in other case the element of array changes
whereas the value of a particular PV remains unchanged). Meanwhile, while looking at scripts of other users, they do not use .PROC CA addition and everything works OK.
Could you explain why the field(FLNK,"IR:something:T1.") (without .PROC CA) doesn't work and how it can be fixed (because simple adding of .PROC CA doesn't seem to be a correct solution, otherwise other users would also add it).
For better understanding of the context, I attach the example db-file. The first record is "channels" record type (which is array), and two others are scalar PV.
Thanks,
Vladimir
|