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  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CSS spinner and text box instant write
From: "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov>
To: EPICS tech-talk <tech-talk at aps.anl.gov>, "Wang, Andrew" <wang126 at llnl.gov>
Date: Mon, 15 Aug 2022 12:34:11 +0000
> .. when I input a number into a spinner .. if I press enter .. the number shows up correctly ..

The text field of the spinner behaves just like text entry field.

Text Entry widgets display the current value of a PV. When you click the widget or type anything into the widget, it enters an 'active' state, indicated by a different background color. It will now stop displaying received PV updates so you can edit without interruptions. Press 'Enter' to confirm. Press 'Escape', 'Tab', or click elsewhere to abort.

Imagine you want to change the value from "98" to "101".
So you have to type "1", "0", "1", "<Enter>", and the value will change from 98 to 101.

If we instead sent everything that's typed right away, the value of the PV would be
  • 98 (initial value)
  • 1 (you entered "1")
  • 10 (you added the "0" to the "1")
  • 101
Moving a motor from 98 to 101 mm is what you wanted.
Instead it hunted from 98 to 1, then 10, then 101.
Or worse in case you managed to "append" the first "1" to 98, so now we jerk the device from 98 to 981, ..

The spinner does right away send the value update when clicking the up/down arrows because they are presumably configured to result in just about the right step size change.

-Kay


References:
CSS spinner and text box instant write Wang, Andrew via Tech-talk

Navigate by Date:
Prev: How to input TIME field values in aSub record types? Amin Hosseini Nejad via Tech-talk
Next: Re: How to input TIME field values in aSub record types? Andrew Johnson via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: CSS spinner and text box instant write Wang, Andrew via Tech-talk
Next: How to input TIME field values in aSub record types? Amin Hosseini Nejad via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·