EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: puzzle running softIocPVA
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: "Johnson, Andrew N." <anj at anl.gov>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Mon, 21 Dec 2020 17:44:50 +0000
Actually forget that, the filename we pass in has an absolute path so I don’t think it will ever use that search path. We should probably make use of the dbPath() feature of dbStaticLib to improve the flexibility so it does search more than one directory by default. Maybe we should set a default path of
    ../../dbd:.:$ORIGIN/../../dbd
for -D (dbd) files (maybe add $(FINAL_LOCATION) too) and a similar set for -d (db) files. The help text would have to change too, and should show both DBD and DB search paths.

- Andrew


On Dec 20, 2020, at 11:41 PM, Johnson, Andrew N. via Tech-talk <tech-talk at aps.anl.gov> wrote:

Another possibility I’ve just thought of would be to try setting the environment variable EPICS_DB_INCLUDE_PATH which if set is added to the list of directories searched by the dbStatic parser. If you put “.” in that before starting the IOC it ought to search for the .dbd file in the CWD.

- Andrew

-- 
Complicity is easy, Simplexity takes real work

On Dec 20, 2020, at 1:35 PM, Rolf Keitel <rolf at triumf.ca> wrote:



Thanks Michael,

I had tried the -D option as I saw it when I did   softIocPVA -h. 
It worked if I start the softIocPVA from the command line, but it did not work in the #!  line of st.cmd.

I did not know that it works without the white space, but just tried and it does. One always learns.

I was foreseeing problems for the IOC boot configuration system at TRIUMF as our system is based on each IOC having a boot directory, which contains all the files for the current configuration, including the IOC image and dbd file(s), so that no special tools are necessary for reverting back to a previous configuration.

As long as the -D option works in st.cmd (with or without white space) we will be ok.

- rolf -

On 2020-12-20 11:26 a.m., Michael Davidsaver wrote:
On 12/20/20 11:12 AM, Johnson, Andrew N. wrote:
IIRC the original softIoc had an option to specify the DBD file path on the command line (-D perhaps), and I don’t think Michael removed that so you might be able to get it to work by adding that option, possibly to your st.cmd’s #! line.
'-D' is recognized in 7.0.4.1, I didn't mention this since

#!./softIoc -D softIoc.dbd
won't work.

However, maybe you knew that

#!./softIoc -DsoftIoc.dbd
is recognized?  I hadn't until now.
--
signature text Rolf Keitel, Ph.D.
Researcher Emeritus
TRIUMF, 4004 Wesbrook Mall
Vancouver, BC, V6T 2A3
Office: 604 222 7453
Home: 604 228 0594
e-mail: rolf at triumf.ca

-- 
Complexity comes for free, simplicity you have to work for.


References:
puzzle running softIocPVA Rolf Keitel via Tech-talk
Re: puzzle running softIocPVA Michael Davidsaver via Tech-talk
Re: puzzle running softIocPVA Johnson, Andrew N. via Tech-talk
Re: puzzle running softIocPVA Michael Davidsaver via Tech-talk
Re: puzzle running softIocPVA Rolf Keitel via Tech-talk
Re: puzzle running softIocPVA Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: puzzle running softIocPVA Johnson, Andrew N. via Tech-talk
Next: EPICS for Building a SCADA System for Energy Grids; Interface to NI VeriStand Markus Huber via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: puzzle running softIocPVA Johnson, Andrew N. via Tech-talk
Next: EPICS for Building a SCADA System for Energy Grids; Interface to NI VeriStand Markus Huber via Tech-talk
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  <20202021  2022  2023  2024 
ANJ, 23 Dec 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·