Title: RE: [SOLVED] RE: subrecord INPx
Hi Stephanie,
Thanks for pointing out that. I was using the same EPICS base source that
we currently use, which is as I just found out a bit outdated.
We will probably go for 3.14.11 or even 3.14.12 since it is about to arrive..
Best regards,
Hinko
-----Original Message-----
From: Allison, Stephanie [mailto:[email protected]]
Sent: Wed 11/24/2010 8:11 PM
To: Hinko Kocevar; EPICS Tech Talk
Subject: RE: [SOLVED] RE: subrecord INPx
Hi Hinko,
You found the bug in the subRecord that is documented (with a patch) in the 3.14.10 known problems:
http://epics.aps.anl.gov/epics/base/R3-14/10-docs/KnownProblems.html
It's a good idea to check the known bugs and apply the patches before building! You might want to check the 3.14.11 known bugs now.
Stephanie
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> Hinko Kocevar
> Sent: Wednesday, November 24, 2010 11:02 AM
> To: Hinko Kocevar; Eric Norum; EPICS Tech Talk
> Subject: [SOLVED] RE: subrecord INPx
>
> Hi all,
>
> I've tried with base 3.14.11 and it worked:
>
> ## Start any sequence programs
> #seq sncExample, "user=hinkoHost"
> epics> precord->a 1.000000
> precord->b 123.000000
> precord->a 2.000000
> precord->b 123.000000
> precord->a 3.000000
> precord->b 123.000000
> precord->a 4.000000
> precord->b 123.000000
>
>
> I guess it is my time to move on with the EPICS base release ;).
>
> Thank you all!
>
> Best regards,
> Hinko
>
> -----Original Message-----
> From: [email protected] on behalf of Hinko Kocevar
> Sent: Wed 11/24/2010 7:44 PM
> To: Eric Norum; EPICS Tech Talk
> Subject: RE: subrecord INPx
>
> Hi Eric,
>
> On 11/24/10 19:16, Eric Norum wrote:
> > Are you sure that your EPICS base and test application are built properly?
>
> I did a make clean in base and removed my install folder. Remade the base
> and used makeBaseApp.pl to recreate the example IOC - result is the same!?
>
>
> > When I run this I see:
> >
> > epics> precord->a 1.000000
> > precord->b 123.000000
> > precord->a 2.000000
> > precord->b 123.000000
> > precord->a 3.000000
> > precord->b 123.000000
> > precord->a 4.000000
> > precord->b 123.000000
> >
> >
> > Looks right to me.
>
> To me too.
> I'm glad that code works.. I'll go and re-get the base sources from the web
> and give it another stab :S
>
> Thank you!
>
> Best regards,
> Hinko
> On Nov 24, 2010, at 6:49 AM, Hinko Kocevar wrote:
>
> > Hi,
> >
> > I'm poking around the example IOC I've created with:
> >
> > $ makeBaseApp.pl -t example app1
> > $ makeBaseApp.pl -i -t example app1
> >
> > Example runs fine and records are behaving as expected, but..
> >
> > I tried to experiment with subRecord, but the mySubProcess routine does not seem to get values
> on INPx fields if they are not constants. I've added following line to get INPA value inside the C
> function:
> >
> > static long mySubProcess(subRecord *precord)
> > {
> > if (mySubDebug)
> > printf("Record %s called mySubProcess(%p)\n",
> > precord->name, (void*) precord);
> >
> > printf("precord->a %lf\n", precord->a);
> > printf("precord->b %lf\n", precord->b);
> >
> > return 0;
> > }
> >
> >
> > Example:
> >
> > record(sub,"$(user):subExample")
> > {
> > field(INAM,"mySubInit")
> > field(SNAM,"mySubProcess")
> > field(INPA, "$(user):subInc")
> > field(INPB, "123")
> > }
> >
> > record(calc, "$(user):subInc") {
> > field(SCAN, "1 second")
> > field(VAL, "0")
> > field(CALC, "(A+1)")
> > field(INPA, "$(user):subInc.VAL NPP")
> > }
> >
> > Output from IOC:
> > Record hinkoHost:subcall called mySubProcess(0x9205998)
> > precord->a 0.000000
> > precord->b 123.000000
> > Record hinkoHost:subcall called mySubProcess(0x9205998)
> > precord->a 0.000000
> > precord->b 123.000000
> > Record hinkoHost:subcall called mySubProcess(0x9205998)
> > precord->a 0.000000
> > precord->b 123.000000
> >
> >
> > At the same time, if I monitor the $(user):subInc:
> > camonitor hinkoHost:subInc
> > hinkoHost:subInc 2010-11-24 15:45:57.346136 14
> > hinkoHost:subInc 2010-11-24 15:45:58.346438 15
> > hinkoHost:subInc 2010-11-24 15:45:59.346628 16
> >
> > What am I missing?
> >
> > Best regards,
> > Hinko
> >
> > --
> > Hinko Kocevar
> > Technical support software engineer
> > Instrumentation Technologies d.d.
> > Velika pot 22, SI-5250 Solkan - Slovenia
> > T:+386 5 3352600, F:+386 5 3352601
> > mailto: [email protected]
> >
> > http://www.i-tech.si - When your users demand stability
> >
> > The information transmitted is intended solely for the addressee and may
> > contain confidential and/or privileged information. Any review, retention,
> > disclosure or other use by persons other than the intended recipient is
> > prohibited. If you received this in error, please notify the sender and
> > delete all copies.
>
> --
> Eric Norum
> [email protected]
>
>
>
>
>
>
>
>
>
- References:
- subrecord INPx Hinko Kocevar
- Re: subrecord INPx Eric Norum
- RE: subrecord INPx Hinko Kocevar
- [SOLVED] RE: subrecord INPx Hinko Kocevar
- RE: [SOLVED] RE: subrecord INPx Allison, Stephanie
- Navigate by Date:
- Prev:
RE: [SOLVED] RE: subrecord INPx Allison, Stephanie
- Next:
RE: ca_put_callback once again Jeff Hill
- 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: [SOLVED] RE: subrecord INPx Allison, Stephanie
- Next:
EPICS Base 3.14.12 released. 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
|