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  2020  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Help creating IOC for Lakeshore 336
From: Brandon Gunn via Tech-talk <tech-talk at aps.anl.gov>
To: "Lang, Keenan C." <klang at anl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 22 Jun 2023 14:58:51 -0700
Hi Keenan,

Thank you very much for the clarification, that certainly makes a lot more sense! 

I have been attempting to work through it and here is what I've done so far, attempting to follow the EPICS documentation:
  1. mkdir lakeshoreIOC && cd lakeshoreIOC
  2. makeBaseApp.pl -t ioc lakeshoreIOC
  3. makeBaseApp.pl -i -t ioc lakeshoreIOC
  4. make
  5. appended to lakeshoreIOCApp/src/Makefile:
    1. lakeshoreIOC_LIBS += stream
    2. lakeshoreIOC_LIBS += asyn
    3. lakeshoreIOC_LIBS += lakeshore336
  6. touch lakeshoreIOCApp/src/xxxSupport.dbd (it did not already exist)
  7. appended to xxxSupport.dbd
    1. include "stream.dbd"
    2.  include "asyn.dbd"
    3. include "lakeshore336.template"
  8. added to configure/RELEASE
    1. ASYN=/home/specadm/EPICS/support/asyn
    2. STREAM=/home/specadm/EPICS/support/stream/StreamDevice
    3. LAKESHORE336=/home/specadm/EPICS/support/lakeshore/lakeshore336
  9. (from ...EPICS/IOCs/lakeshoreIOC) make distclean; make
The next step regards the st.cmd file, however make fails, so I am sure I've done something wrong above. Should I use "example" instead of "ioc" when calling makeBaseApp.pl? Is the lakeshore module information even supposed to be entered at this stage, or just the asyn/StreamDevice libraries and all of the lakeshore-specific references are only contained within st.cmd?

Thank you,
Brandon


On Wed, Jun 21, 2023 at 3:55 PM Lang, Keenan C. <klang at anl.gov> wrote:
Brandon,

The -t flag with makeBaseApp refers to application templates that are listed in epics-base/templates/makeBaseApp/top . These are entire directories that get copied and structured by the makeBaseApp script.

The template file that you are referring to is a Database Template File (https://urldefense.com/v3/__https://docs.epics-controls.org/en/latest/appdevguide/databaseDefinition.html*dbloadtemplate__;Iw!!Mih3wA!F3VYOcbOWJDcx8SKiZcVvWpnBgFgPZIAOjcz7FKfYkeJTBMhDkBmr0l68J89Tbs4gX9qnwPZP2Qf$  ) which is a file used at IOC startup to generate PV's using database definition files and macro replacement.

The lakeshore336.template file is meant to be loaded in your IOC's st.cmd file using the dbLoadTemplate command. That command will take in the path to the template file and a set of macros to apply to the template.


Keenan
________________________________
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Brandon Gunn via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, June 21, 2023 5:16 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Help creating IOC for Lakeshore 336

Hello,

Firstly, thank you to everyone who helped me with my EPICS installation last week!

I am now trying to create an IOC for our Lakeshore 336 using this, which I am very grateful someone has taken the time to create: https://urldefense.com/v3/__https://github.com/mp49/lakeshore__;!!Mih3wA!F3VYOcbOWJDcx8SKiZcVvWpnBgFgPZIAOjcz7FKfYkeJTBMhDkBmr0l68J89Tbs4gX9qn_r7NOWN$

Unfortunately, between the README and the EPICS documentation, I am a bit confused about how to set up this IOC.

So far, I cloned the repo into my ~/EPICS/support directory, edited the RELEASE file to include the appropriate paths, followed by make, which did not throw any errors.

I have now created a directory in ~/EPICS/IOCs and am attempting to call  makeBaseApp.pl to create a lakeshore336 IOC. I believe that I am supposed to link the lakeshore336.template file that I downloaded using the -t flag, but even using the full path does not seem to work.

Is this the correct way to link the Lakeshore336 module when creating the IOC? Am I supposed to create symlinks someplace for the downloaded template files so that makeAppBase.pl can find them?

Thank you,
Brandon

Replies:
Re: Help creating IOC for Lakeshore 336 montis via Tech-talk
References:
Help creating IOC for Lakeshore 336 Brandon Gunn via Tech-talk
Re: Help creating IOC for Lakeshore 336 Lang, Keenan C. via Tech-talk

Navigate by Date:
Prev: Re: sseq record Mooney, Tim M. via Tech-talk
Next: Re: Help creating IOC for Lakeshore 336 montis 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  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Re: Help creating IOC for Lakeshore 336 Lang, Keenan C. via Tech-talk
Next: Re: Help creating IOC for Lakeshore 336 montis 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  2020  2021  2022  <20232024 
ANJ, 23 Jun 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·