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
<2009>
2010
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
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|