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: RE: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "Copping, Oliver (DLSLtd, RAL, LSCI)" <oliver.copping at diamond.ac.uk>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 7 Dec 2023 17:52:49 +0000

Hi Oliver,

 

I think this is similar to the issue discussed recently in this tech-talk thread: https://epics.anl.gov/tech-talk/2023/msg01867.php

 

  • The records stay INVALID even if the user attempts to change the values in the input fields.

 

The record status is INVALID because it has not processed yet.

 

Your records have SCAN=EVENT.  Because SCAN is not PASSIVE then when the user changes the VAL field the record will not process, and hence the status remains INVALID.

 

  • However, the values still do not update when a new one is entered until APPLY is pressed.

 

The record only sends monitor events for the VAL field when the record processes.  Because the record does not process when the user changes the VAL field, it does not send monitors, and hence the OPI screen does not update.

 

Mark

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Copping, Oliver (DLSLtd, RAL, LSCI) via Tech-talk
Sent: Thursday, December 7, 2023 9:48 AM
To: tech-talk at aps.anl.gov
Subject: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget

 

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 Johnson, Andrew N. via Tech-talk
References:
EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Copping, Oliver (DLSLtd, RAL, LSCI) via Tech-talk

Navigate by Date:
Prev: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Copping, Oliver (DLSLtd, RAL, LSCI) via Tech-talk
Next: Re: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Johnson, Andrew N. 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: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Copping, Oliver (DLSLtd, RAL, LSCI) via Tech-talk
Next: Re: EPICS Event Scan Field causes EDM PV readback to not update in Text Entry widget Johnson, Andrew N. 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 ·