Experimental Physics and Industrial Control System
|
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: - mkdir lakeshoreIOC && cd lakeshoreIOC
- makeBaseApp.pl -t ioc lakeshoreIOC
- makeBaseApp.pl -i -t ioc lakeshoreIOC
- make
- appended to lakeshoreIOCApp/src/Makefile:
- lakeshoreIOC_LIBS += stream
- lakeshoreIOC_LIBS += asyn
- lakeshoreIOC_LIBS += lakeshore336
- touch lakeshoreIOCApp/src/xxxSupport.dbd (it did not already exist)
- appended to xxxSupport.dbd
- include "stream.dbd"
- include "asyn.dbd"
- include "lakeshore336.template"
- added to configure/RELEASE
- ASYN=/home/specadm/EPICS/support/asyn
- STREAM=/home/specadm/EPICS/support/stream/StreamDevice
- LAKESHORE336=/home/specadm/EPICS/support/lakeshore/lakeshore336
- (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
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
<2023>
2024
- 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
<2023>
2024
|
ANJ, 23 Jun 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|