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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: epics dbpf problem
From: Benjamin Franksen <[email protected]>
To: [email protected]
Date: Wed, 15 Oct 2008 09:17:22 +0200
On Wednesday 15 October 2008 04:24, Shi HaoLi wrote:
>    Now I've built an EPICS (version 3.14.6) application using
> RTEMS(4.6.0), IOC is MVME5500. The peripheral hardware I/O module is PSC.
> The device support(devPSC.c) and the driver support(drvPSC.c) have been
> successfully compiled and can run on RTEMS. Database downloading related
> to PSC is OK, but when I execute dbpf, something wrong happens as
> follows:
>
> Cexp>dbpf ("R4IBT04:CISet", "3.0")
> 0xffffffff (-1)
> filename="../dbTest.c" line number=365
> dbPutField error
> Cexp>dbgf ("R4IBT04:CISet")
> DBR_DOUBLE          3
> Cexp>dbl()
> R4IBT04:CISet
> R4IBT04:I
> R4IBT04:ISet
> ......
>
> any help is appreciated, thanks a lot!

It would help us to help you if you could post the source code of the driver 
and device support (as attachments, please) and also the record instance 
definition (i.e. the relevant part of the db file you loaded into the IOC).

In general, debugging stuff like this amounts to sprinkling your sources 
with printfs to see where things go wrong. It also helps to put assertions 
into the code (which has the nice side-effect of documenting your 
assumptions).

Cheers
Ben
-- 
"Programming = Mathematics + Murphy's Law" (E.W.Dijkstra)

References:
epics dbpf problem Shi HaoLi

Navigate by Date:
Prev: Re: How have folks been dealing with the Channel Archiver's 2GB index file limit? Thomas Birke
Next: Re: LvEPICS on USB Key pre-release Umashankar Panda
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: epics dbpf problem Thomas Birke
Next: a question about mbbiDirect and fanout Silver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·