Hi Zen,
On Friday 15 April 2011 15:03:43 Szalata, Zenon M. wrote:
>
> I start camonitor TEST:AI:TEST, then the IOC, then the GUI. All seem well.
> camonitor reports value 0.
> I restart the IOC, camonitor reports PV disconnected, then it connects and
> shows value 0. So far so good.
> Now I click the push button, camonitor reports value 1.75 as it should.
> I restart the IOC, camonitor reports PV disconnected, then it connects and
> shows value 1.75!
>
> From now on, after restarting the IOC, the ai record ends up with
> value=1.75, even though I am not clicking the push button. Appears that
> the ao record is getting processed when the push button connects to the
> PV when the IOC starts up. This continues as long as the QT GUI is up.
> When I stop the QT GUI and restart the IOC, then restarting the IOC does
> not get the value transferred from the ao to the ai record.
This sounds like it has to be an epicsQt issue. Try setting the TPRO field of
your TEST:AO:TEST record in the .db file; that results in a message being
printed on the IOC console whenever the record processes, and it tells you
which thread is causing the processing on restarting the IOC. I'm going to
bet that you'll see it coming from the same CA thread as when you first push
the button.
> Am I doing something wrong configuring the epicsQt push button or is there
> a bug in the epicsQt CA part of the software? I am assuming that this
> behavior is not built in intentionally.
Does epicsQt have more than one kind of push button? I would like for
something like a momentary action button if there is an alternative you can
use. It sounds like the one you're using is designed to restore the last
value it sent when the IOC reconnects, which isn't what you actually want it
to do.
HTH,
- Andrew
--
An error is only a mistake if you don't learn from it.
When you learn something from it, it becomes a lesson.
- Replies:
- RE: epicsQt Szalata, Zenon M.
- References:
- epicsQt Szalata, Zenon M.
- Navigate by Date:
- Prev:
epicsQt Szalata, Zenon M.
- Next:
RE: epicsQt Szalata, Zenon M.
- 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:
epicsQt Szalata, Zenon M.
- Next:
RE: epicsQt Szalata, Zenon M.
- 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
|