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  <20212022  2023  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: SEQ Record Question
From: Ben Franksen via Tech-talk <tech-talk at aps.anl.gov>
To: "Manoussakis, Adamandios" <manoussakis1 at llnl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 15 Mar 2021 08:52:26 +0100
Am 14.03.21 um 21:56 schrieb Manoussakis, Adamandios:
> I was able to get it to compile and it seems to be working now.  I
> think there may have been another compilation error somewhere after
> retyping it out from scratch.  I still need to understand more about
> the section on when to use monitor vs.  explicit pvget().  

monitor is for when you want your program to automatically receive
updates about a PV and then act on that by re-evaluating the when
conditions (which may in turn cause a state change).

pvGet is for when you need a snapshot of some PV as input for a
calculation, but the result doesn't influence a state change decision.

There is a certain overlap in that most uses of pvGet can be replaced
with placing a monitor on the PV and then just using the variable. It's
partly a matter of taste and partly a matter of efficiency (monitors are
slightly more expensive).

> I assume
> the when() block only runs once when a state transition happens is
> that correct?

Yes.

Cheers
Ben
-- 
I would rather have questions that cannot be answered, than answers that
cannot be questioned.  -- Richard Feynman


Attachment: signature.asc
Description: OpenPGP digital signature


References:
SEQ Record Question Manoussakis, Adamandios via Tech-talk
RE: SEQ Record Question Layne (US), William C via Tech-talk
RE: SEQ Record Question Manoussakis, Adamandios via Tech-talk
Re: SEQ Record Question Ralph Lange via Tech-talk
Re: SEQ Record Question Ben Franksen via Tech-talk
Re: SEQ Record Question Ben Franksen via Tech-talk
RE: SEQ Record Question Manoussakis, Adamandios via Tech-talk

Navigate by Date:
Prev: RE: SEQ Record Question Manoussakis, Adamandios via Tech-talk
Next: Existing device support Sinclair, John 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  <20212022  2023  2024 
Navigate by Thread:
Prev: RE: SEQ Record Question Manoussakis, Adamandios via Tech-talk
Next: Looking for a device support for Keysight 53220/30 Frequency Counter Kim, Kukhee 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  <20212022  2023  2024 
ANJ, 15 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·