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: PVXS programmatically create pvalinks |
From: | "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Dave Bracey <dbracey at fnal.gov> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 10 Jun 2025 14:26:25 +0000 |
> Suppose I programmatically create two PV’s on a server: > … > Can I somehow make pv1 INP linked to pv2? PVXS is just the network protocol layer. “INP” links are an EPICS database concept. If you want to use records, and that’s the common thing to do, you create an EPICS database and execute that with `softIocPVX` or a custom IOC setup that includes PVXS. You can now access those records via PVAccess (or also channel access). In special cases, you might not be able to use records and instead implement some custom code which you then make network-accessible via PVAccess. You can use C++ and PVXS, or python and p4p. In any case, there won’t be “INP” links because
there are no records. Ther are also no “SCAN” fields. You need to start your own threads to periodically update the PVs you want to serve. You need to implement whatever you want to happen in your own code. Start out by trying to use the EPICS IOC. If you can’t handle the task at hand with plain ai, ao, calc, … records, maybe add some aSub records to call into bespoke C/C++ code. Writing your own custom PVAccess server should be your last choice. |