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

Subject: Re: sub routine record doesn't get value via INPD
From: Matthieu Bec <[email protected]>
To: "Dr. Peter Zumbruch" <[email protected]>
Cc: Epics Questions <[email protected]>
Date: Mon, 13 Jul 2009 21:26:56 -0400
I'll retract my previous post (..)
Setting up your example gets me a different result though, the one you expect - The only part I miss is field(INAM, "mySubInit"), maybe something there? This is the outpout I got

epics> dbgf HAD:RPC:S1:M0:C9:ToTL
DBR_DOUBLE:         0
epics>
epics>  dbpf HAD:RPC:S1:M0:C9:ToTL 200
Record HAD:RPC:S1:M0:C9:stToTL called myStoreFcn(0x8415b58), thr 200, precord->d 200.000000
DBR_DOUBLE:         200
epics> dbpr HAD:RPC:S1:M0:C9:stToTL
A: 0 ASG: B: 0 C: 2 D: 200 DESC: store 0 0 0 2 DISA: 0 DISP: 0 DISV: 1 E: 0 F: 0 G: 0 H: 0 I: 0 J: 0 K: 0 L: 0 NAME: HAD:RPC:S1:M0:C9:stToTL SEVR: NO_ALARM
STAT: NO_ALARM      TPRO: 0             VAL: 200

Matthieu

On 07/13/09 20:40, Matthieu Bec wrote:
doubles need %lf to printf.
Could that be your problem ??

#include <stdio.h>
int main (int argc, char *argv[]) {
    double f=200.;
    float *pf = (float*)&f;
    printf ("%f\n",*pf);
    printf ("%lf\n",*(double*)pf);
    return 0;
}


--
Matthieu Bec              Gemini Observatory
Tel: +56 51 205785        c/o AURA, Casilla 603
Fax: +56 51 205650        La Serena, Chile

References:
sub routine record doesn't get value via INPD Dr. Peter Zumbruch
Re: sub routine record doesn't get value via INPD Andy Foster
RE: sub routine record doesn't get value via INPD Allison, Stephanie
Re: sub routine record doesn't get value via INPD Matthieu Bec

Navigate by Date:
Prev: Re: sub routine record doesn't get value via INPD Matthieu Bec
Next: Re: sub routine record doesn't get value via INPD Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: sub routine record doesn't get value via INPD Matthieu Bec
Next: Re: sub routine record doesn't get value via INPD Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·