Hi Andrew,
I see the problem.
motor/motorExApp/WithAsyn/Makefile contains these lines:
COMMONDBDS += drvAsynSerialPort.dbd
COMMONDBDS += drvAsynIPPort.dbd
asyn R4-22 had this change, from the Release Notes:
**************************************************
Changes to work with EPICS base 3.15
Removed include of asyn.dbd, from drvAsynSerialPort.dbd, drvAsynIPPort.dbd, drvVxi11.dbd, and drvGsIP488.dbd.
**************************************************
So previously including devAsynSerialPort.dbd or drvAsynIPPort.dbd caused asyn.dbd to also be included. That was never a good idea, and does not work in EPICS R3-15, so now asyn.dbd needs to be explicitly included.
I have modified /motorExApp/WithAsyn/Makefile to add asyn.dbd and committed to SVN.
Mark
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Gomella, Andrew (NIH/NHLBI) [F]
Sent: Tuesday, February 18, 2014 1:58 PM
To: Eric Norum
Cc: [email protected]
Subject: RE: Asyn commands not found in Motor record WithAsyn example?
Hi Eric,
You are right. When I add COMMONDBDS += asyn.dbd to the makefile in motorR6-8/motorExApp/WithAsyn, I no longer receive those errors. It is strange, I have never had to make this modification to the Makefile before when compiling WithAsyn. I imagine something else also went wrong on this particular system to cause this error.
Thanks!
Andrew
________________________________________
From: Eric Norum [[email protected]]
Sent: Tuesday, February 18, 2014 2:41 PM
To: Gomella, Andrew (NIH/NHLBI) [F]
Subject: Re: Asyn commands not found in Motor record WithAsyn example?
Are you sure that you've included asyn.dbd in your application?
Also, just to make sure that everything really has been rebuilt, try running
make distclean
make
from the application top directory and then see if things work.
On Feb 18, 2014, at 11:32 AM, Gomella, Andrew (NIH/NHLBI) [F] <[email protected]> wrote:
> Hi Everyone,
>
> I am having trouble figuring out whats causing this strange error I am encountering on one of my EPICS servers. (another server with similar versions of everything does not have this error). I am using the latest versions of asyn (4-22) and motor (6-8). I have made all modifications listed such that motor record builds its example application, including WithAsyn which is what I really need.
>
> Now when I try and run an IOC with an included st.cmd file (with all relevant substitions made such as variable names made and the location of my motor) I receive errors that the commands are not found-
>
> ../../bin/linux-x86_64/WithAsyn st.cmd.AG_CONEX
> #errlogInit(5000)
> < envPaths
> epicsEnvSet("ARCH","linux-x86_64")
> epicsEnvSet("IOC","iocWithAsyn")
> epicsEnvSet("TOP","/home/ipsuser/epics/support/motorR6-8")
> epicsEnvSet("MOTOR","/home/ipsuser/epics/support/motorR6-8")
> epicsEnvSet("SSCAN","/home/ipsuser/epics/support/sscan-2-9")
> epicsEnvSet("ASYN","/home/ipsuser/epics/support/asyn4-22")
> # Tell EPICS all about the record types, device-support modules, drivers,
> # etc.
> dbLoadDatabase("../../dbd/WithAsyn.dbd")
> WithAsyn_registerRecordDeviceDriver(pdbbase)
> ### Motors
> dbLoadTemplate "motor.substitutions.AG_CONEX"
> # For Windows
> #drvAsynSerialPortConfigure("serial1", "COM3", 0, 0, 0)
> # For Linux
> drvAsynSerialPortConfigure("serial1", "/dev/stages/cc", 0, 0, 0)
> asynSetOption("serial1",0,"baud","921600")
> st.cmd.AG_CONEX -- Line 15 -- Command asynSetOption not found.
> asynSetOption("serial1",0,"bits","8")
> st.cmd.AG_CONEX -- Line 16 -- Command asynSetOption not found.
> asynSetOption("serial1",0,"stop","1")
> st.cmd.AG_CONEX -- Line 17 -- Command asynSetOption not found.
> asynSetOption("serial1",0,"parity","none")
> st.cmd.AG_CONEX -- Line 18 -- Command asynSetOption not found.
> asynSetOption("serial1",0,"clocal","Y")
> st.cmd.AG_CONEX -- Line 19 -- Command asynSetOption not found.
> asynSetOption("serial1",0,"crtscts","N")
> st.cmd.AG_CONEX -- Line 20 -- Command asynSetOption not found.
> asynOctetSetInputEos("serial1",0,"\r\n")
> st.cmd.AG_CONEX -- Line 22 -- Command asynOctetSetInputEos not found.
> asynOctetSetOutputEos("serial1",0,"\r\n")
> st.cmd.AG_CONEX -- Line 23 -- Command asynOctetSetOutputEos not found.
> asynSetTraceIOMask("serial1", 0, 2)
> st.cmd.AG_CONEX -- Line 25 -- Command asynSetTraceIOMask not found.
> #asynSetTraceMask("serial1", 0, 9)
> # Load asyn record
> dbLoadRecords("/home/ipsuser/epics/support/asyn4-22/db/asynRecord.db", "P=dell:,R=serial1,PORT=serial1, ADDR=0,OMAX=256,IMAX=256")
> Record "dell:serial1" is of unknown type "asyn" - Error at or before ")" in file "/home/ipsuser/epics/support/asyn4-22/db/asynRecord.db" line 1
>
> I feel like I have exhausted any ideas I have about what may be causing this, so any help will be appreciated.
>
> Thanks,
> Andrew Gomella
>
>
--
Eric Norum
[email protected]
- References:
- Asyn commands not found in Motor record WithAsyn example? Gomella, Andrew (NIH/NHLBI) [F]
- RE: Asyn commands not found in Motor record WithAsyn example? Gomella, Andrew (NIH/NHLBI) [F]
- Navigate by Date:
- Prev:
RE: Asyn commands not found in Motor record WithAsyn example? Gomella, Andrew (NIH/NHLBI) [F]
- Next:
Re: Bayer vs RGB1 performance for Prosilica cameras Bruce Hill
- 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: Asyn commands not found in Motor record WithAsyn example? Gomella, Andrew (NIH/NHLBI) [F]
- Next:
CSS BOY - EDL to OPI Converter development progress? Ian Gillingham
- 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
|