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  2008  2009  2010  2011  <20122013  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  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: odd behavior of 'dbpf' on windows softioc
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Thu, 26 Jan 2012 18:16:42 -0600
Hi Josh,

On 2012-01-25 Josh Stein wrote:
> This does not seem to function properly on my 3.14.11 Windows softIOC:
> 
> epics>dbpf "wst:v13C","1"
> Illegal choice PV: wst:v13C  1
> 
> filename="../dbTest.c" line number=333
> Illegal choice - dbPutField error

> Is this a feature, flaw, or user error on my part?

This is a combination of a minor bug in dbpf that I introduced into R3.14.10 
and a problem with sscanf() from the MinGW C run-time library which you were 
using.  Mark does not see the issue because he's probably using a win32-x86 
target while you're using win32-x86-mingw. The dbpf bug gets masked by the IOC 
performing the conversion elsewhere, except this particular sscanf() bug 
caused that conversion to fail as well.

I've added a patch to the R3.14.12 Known Problems page which fixes both of 
these.  The patch can also be applied to fix this problem in earlier versions 
of Base back to R3.14.10, although I haven't tried that and you might have to 
make the changes manually in some cases.

- Andrew
-- 
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham

References:
odd behavior of 'dbpf' on windows softioc Josh Stein

Navigate by Date:
Prev: RE: Struck SIS3302 device driver Hu, Yong
Next: Re: [CSS] 'Epics' menu in Preferences disappeared!!! Pavel Masloff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: odd behavior of 'dbpf' on windows softioc Mark Rivers
Next: Struck SIS3302 device driver Chengcheng Xu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·