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: | Dave Bracey via Tech-talk <tech-talk at aps.anl.gov> |
To: | Michael Davidsaver <mdavidsaver at gmail.com> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 10 Jun 2025 14:13:29 +0000 |
Thanks Michael – couple questions: Q1: Suppose I programmatically create two PV’s on a server: Value
val1 =
nt::NTScalar(TypeCode::Int32,
true).create(); server::SharedPV pv1 =
server::SharedPV::buildMailbox(); string
pv1name =
"PV1"; pv1.open(val1); ioc::server().addPV(pv1name,
pv1); Value
val2 =
nt::NTScalar(TypeCode::Int32,
true).create();
server::SharedPV pv2 =
server::SharedPV::buildMailbox(); string
pv2name =
"PV2";
pv2.open(val2);
ioc::server().addPV(pv2name,
pv2); Can I somehow make pv1 INP linked to pv2? Q(s)2: I notice if I try to use dbFindRecord on those names, they are not found. Is this because they have no database records? Are “Value”, “PV” and “Record” distinct concepts here? Can a record be attached to them programmatically? Q(s)3: Is doing these things programmatically a bad idea here? In other words, have I reached the extent of what it can do ATM, and I should go back to importing DBD’s? Thanks – Dave Bracey, Fermilab |