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: how to use the motorApp in synApps |
From: | Ron Sluiter <[email protected]> |
To: | 梁雅翔 <[email protected]>, <[email protected]> |
Date: | Mon, 23 Mar 2015 09:25:18 -0500 |
On 3/23/2015 8:53 AM, 梁雅翔 wrote:
Now, I am using the synApp following the documentation. I want to use KohzuSrc( in motorApps of motor module), but I found the motorApps only has *.cc, not the *.db. So I didn't know how to add the record file( *.db) when I modify the st.cmd. Could you tell me how to use it?
I suspect you may be confusing database files (*.db) with database definition files (*.dbd). In order for an IOC to use a specific EPICS record type (e.g., the motor record), the IOC has to load the database definition for that record. For the motor module, this can be accomplished by adding the motorSupport.dbd file to the IOC's database definition file. motorSupport.dbd includes both the motorRecord.dbd and "asyn motor" support that you will need to communicate with the Kohzu motor controller.
The motor module has an IOC example that includes Kohzu support in the motor-6-7/motorExApp/WithAsyn directory. motorExApp is not built by default; you have to uncomment some lines from motor_6_7/Makefile to build it. I suggest you look at the motor-6-7/motorExApp/WithAsyn/Makefile as an aid.
Hope this helps, Ron