On 01/30/2018 08:20 AM, Simon Reiter wrote:
> Thanks so far.
>
> postEvent 2
> works fine.
>
> Up to now, my event record has an INP field, which links to a calc record.
> This calc record only provides the correct value under some conditions.
> How can I do this without using a state machine?
>
> record(calc,"$(BOARDNAME):ErrorFlags:calc")
> {
> field(INPA, "$(BOARDNAME):InitDone:S CPP")
> field(CALC, "A ? 2 : 0")
> }
>
> record(event, "$(BOARDNAME):ErrorFlags:trg")
> {
> field(INP, "$(BOARDNAME):ErrorFlags:calc CPP")
> }
>
> This is my current code. The value of event is now 2.000000 in the correct case.
Please have a look at the following example DB, which works as expected for me.
If this result doesn't make sense to you, then please post a complete example DB
which I can use to reproduce your problem.
> cat <<EOF > event.db
> record(event, "evt") {
> field(VAL , "2")
> field(TPRO, "1")
> }
>
> record(longout, "blah") {
> field(SCAN, "Event")
> field(EVNT, "2")
> field(TPRO, "1")
> }
> EOF
I run this with
> $ softIoc -d event.db
I then scan the "evt" record and see that the "blah" record is also processed.
> epics> dbpf evt.PROC 1
> _main_: Process evt
> DBF_UCHAR: 1 = 0x1
> cbLow: Process blah
- References:
- Scanning on event number fails with EPICS 3.16 Simon Reiter
- Re: Scanning on event number fails with EPICS 3.16 Benjamin Franksen
- Re: Scanning on event number fails with EPICS 3.16 Simon Reiter
- Navigate by Date:
- Prev:
Re: CAJ and JCA links on website point to SourceForge Andrew Johnson
- Next:
Re: pvPut error message by Sequencer 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: Scanning on event number fails with EPICS 3.16 Simon Reiter
- Next:
Re: Scanning on event number fails with EPICS 3.16 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
|