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  2009  2010  <20112012  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  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: epicsQt
From: "Szalata, Zenon M." <[email protected]>
To: Andrew Rhyder <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Fri, 15 Apr 2011 13:03:43 -0700

Hi Andrew,

I am using epicsQt 1.1.2 and QT 4.7.0.

I am trying to understand the following problem:

 

I have a simple soft IOC, with two records, see below.

I have a QT mainwindow GUI with only one widget, QCaPushButton.

 

record( ao, "TEST:AO:TEST"){

  field( DESC, "ao test")

  field( SCAN, "Passive")

  field( OUT,  "TEST:AI:TEST PP")

  field( PREC, "3")

  field( MDEL, "-1")

  field( VAL,  "1.75")

}

record( ai, "TEST:AI:TEST"){

  field( DESC, "ai test")

  field( PREC, "3")

  field( MDEL, "-1")

}

 

The push button connects to TEST:AO:TEST.PROC and sends 1 when clicked.

 

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.

 

Notice that restarting the GUI while IOC is running, does not process the ao record.

 

I observed this behavior in an application which controls motors via motor record and this behavior is highly undesirable. 

 

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.

 

Thanks for any insight into this,

Zen


Replies:
Re: epicsQt Andrew Johnson

Navigate by Date:
Prev: EPICS Device Support for the Sis3302 Ernest L. Williams Jr.
Next: Re: epicsQt Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: epicsQt Szalata, Zenon M.
Next: Re: epicsQt Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·