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 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
<== Date ==> <== Thread ==>

Subject: RE: Question about build StreamDevice application
From: Mark Rivers <rivers@cars.uchicago.edu>
To: lzf neu <lzfneu@live.com>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 4 May 2017 13:10:22 +0000
You should do the following instead of what the streamDevice manual says.  Change your Makefile to add the following lines:

top_DBD += drvAsynIPPort.dbd
top_DBD += drvAsynSerialPort.dbd
top_DBD += drvVxi11.dbd

Those files are installed in asyn/dbd and they contain the the lines that streamDevice manual is asking for.

Note that your application may not need all 3 of these.  If you will only communicate with TCP devices your don't need drvAsynSerialPort.dbd or drvVxi11.dbd.  On the other hand it only adds a small memory overhead to keep them.

Mark


From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on behalf of lzf neu [lzfneu@live.com]
Sent: Wednesday, May 03, 2017 10:04 PM
To: tech-talk@aps.anl.gov
Subject: Question about build StreamDevice application


hi,


In order to build an StreamDevice application,

I use the following commands to build softioc:


makeBaseApp.pl -t example top

makeBaseApp.pl -i -t example top

make

and add the following lines to /top/topApp/src/makefile:
top_LIBS += stream
top_LIBS += asyn
top_DBD += asyn.dbd
top_DBD += stream.dbd

according to the streamDevice manual page 3, the following three lines should be included in my xxxAppInclude.dbd:
registrar(drvAsynIPPortRegisterCommands)
registrar(drvAsynSerialPortRegisterCommands)
registrar(vxi11RegisterCommands)

It seems in my case I should find topInclude.dbd file to add the above three lines.

My problem is toplnclude.dbd does not exist before execute "make" command in the top directory of my softioc and "make clean" command can delete it from /top/topApp/src/O.Common folder.

I have no idea do I miss somthing or anyother method to cope with my problem.

Any help will be appreciated and thanks in advance !


Zhefu



References:
Question about build StreamDevice application lzf neu

Navigate by Date:
Prev: RE: EPICS PV for data in Area Detector Mark Rivers
Next: Re: Archiver Appliance scripted alias record Shankar, Murali
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
Navigate by Thread:
Prev: Question about build StreamDevice application lzf neu
Next: need to monitor the subArray record field NORD Lussignol Yves
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
ANJ, 04 May 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·