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  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget
From: "Copping, Oliver \(DLSLtd, RAL, LSCI\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 7 Dec 2023 15:47:36 +0000
Hi Tech Talkers,

I have a Menu button widget linked to an MBBO record, that in turn triggers Event records corresponding to whichever option is selected and the APPLYed.
These options are specific motor position configurations for different experiments.


I have a series of AO records that take these position values for various motor positions, each with the SCAN fields set to EVENT.
When their corresponding EVENT is triggered, these AO records are processed, writing their VAL field to the motor demand position.

However, until the APPLY button is pressed, causing the EVENT to trigger, all the records are shown as INVALID.
The records stay INVALID even if the user attempts to change the values in the input fields.
The values do change in record VAL fields, just not on the screen.
Once the APPLY button is pressed, the records no longer show as INVALID, and show the new values.
However, the values still do not update when a new one is entered until APPLY is pressed.


Is there a way of making it so the records can be processed, showing the new VALs, without triggering the Events and writing to the motors?
I know I could just separate out the writing to motors to separate records, but then I would be doubling the number of records which isn't ideal.
This is using EPICS R3.14.12.7.


Some examples of the records associated with this:
<records.ao DOL="<PV>:CONFIG" DTYP="Soft Channel" FLNK="<PV>:CONFIG:APPLY:30UM:CALC" OMSL="closed_loop" SCAN="Passive" record="<PV>:CONFIG:APPLY"/>
<records.event EVNT="1" record="<PV>:CONFIG:30UM:APPLY"/>
<records.ao EVNT="1" OUT="<MOTOR_PV>:Y PP" SCAN="Event" VAL="38.6839" record="<PV>:CONFIG:30UM:MAPTY"/>
<records.calcout CALC="A = 0 ? 1 : 0" INPA="<PV>:CONFIG:APPLY" OEVT="1" OOPT="When Non-zero" record="<PV>:CONFIG:APPLY:30UM:CALC"/>


Thanks,
Ollie Copping
Software Systems Engineer
Diamond Light Source
OX11 0DE
Tel: 01235 395375

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 


Replies:
RE: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: CaSnooper Update? Murray, Doug via Tech-talk
Next: RE: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Mark Rivers 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  2022  <20232024 
Navigate by Thread:
Prev: Re: Pezca documentation, installation Rong Huang via Tech-talk
Next: RE: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Mark Rivers 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  2022  <20232024 
ANJ, 07 Dec 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·