EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  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  Index 1994  1995  <19961997  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 
<== Date ==> <== Thread ==>

Subject: [Fwd: Bug in recSubArray.c (R3.12)]
From: Marty Kraimer <[email protected]>
To: [email protected]
Date: Mon, 25 Nov 1996 08:19:40 -0600
This will be fixed in next 3.13 release.

Marty Kraimer
--- Begin Message ---
Subject: Bug in recSubArray.c (R3.12)
From: "T.A.Coleman, ANL ECT 222" <[email protected]>
To: [email protected]
Date: Sun, 24 Nov 1996 19:43:09 -0600 (CST)
Marty,

There appears to be a bug in recSubArray.c (R3.12)
in the get_control_double routine.
    if(paddr->pfield==psa->bptr) {
appears three times. Two of these lines should probably be
    if(paddr->pfield==(void *)&psa->indx) {
    if(paddr->pfield==(void *)&psa->nelm) {

Tom
-------------------------------------------------------------------------------

static long get_graphic_double(paddr,pgd)
    struct dbAddr *paddr;
    struct dbr_grDouble *pgd;
{
    struct subArrayRecord     *psa=(struct subArrayRecord *)paddr->precord;

    if(paddr->pfield==psa->bptr) {
        pgd->upper_disp_limit = psa->hopr;
        pgd->lower_disp_limit = psa->lopr;
        return(0);
    } 
    if(paddr->pfield==(void *)&psa->indx) {
        pgd->upper_disp_limit = psa->malm - 1;
        pgd->lower_disp_limit = 0;
        return(0);
    } 
    if(paddr->pfield==(void *)&psa->nelm) {
        pgd->upper_disp_limit = psa->malm;
        pgd->lower_disp_limit = 1;
        return(0);
    } 
    recGblGetGraphicDouble(paddr,pgd);
    return(0);
}
static long get_control_double(paddr,pcd)
    struct dbAddr *paddr;
    struct dbr_ctrlDouble *pcd;
{
    struct subArrayRecord     *psa=(struct subArrayRecord *)paddr->precord;

    if(paddr->pfield==psa->bptr) {
        pcd->upper_ctrl_limit = psa->hopr;
        pcd->lower_ctrl_limit = psa->lopr;
        return(0);
    } 
    if(paddr->pfield==psa->bptr) {
        pcd->upper_ctrl_limit = psa->malm - 1;
        pcd->lower_ctrl_limit = 0;
        return(0);
    } 
    if(paddr->pfield==psa->bptr) {
        pcd->upper_ctrl_limit = psa->malm;
        pcd->lower_ctrl_limit = 1;
        return(0);
    } 
    recGblGetControlDouble(paddr,pcd);
    return(0);
}



--- End Message ---

Navigate by Date:
Prev: Re: Status of channel access server in R3.13.0.beta1 ? Kazuro FURUKAWA
Next: EPICS / Electronics Engineer Job at RGO, Cambridge (UK) Andrew Johnson
Index: 1994  1995  <19961997  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: Sequencer 1.9 documentation Jeff Hill
Next: EPICS / Electronics Engineer Job at RGO, Cambridge (UK) Andrew Johnson
Index: 1994  1995  <19961997  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·