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

Subject: RE: question about state notation language logic for when() with delay
From: Jay Steele <jsteele@xradia.com>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 12 Aug 2011 09:59:51 -0700
Hi all,
  Thanks for the quick response to my question about state notation language. And thanks to BESSY and others for updating the user's guides.

  I had a problem just now accessing the bessy link, but was able to get the user's guide release 2.0.99 from this link at Stanford.

www.slac.stanford.edu/grp/ssrl/spear/epics/site/seq/...

Cheers,
Jay Steele
Xradia Corporation

-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Benjamin Franksen
Sent: Wednesday, August 10, 2011 11:07 AM
To: tech-talk@aps.anl.gov
Subject: Re: question about state notation language logic for when() with delay

Hi Jay

Ron answered your question correctly, so let me just add that this is
documented in the (new) manual; quoting from http://www-
csr.bessy.de/control/SoftDist/sequencer/Reference.html#delay:

 boolean delay(double delay_in_seconds)

 Returns whether the specified time has elapsed since entering the state. It
 should be used only within a when expression.

Am Mittwoch, 10. August 2011, um 19:00:51 schrieb Chestnut, Ronald P.:
> The timer starts when the state containing the when clause is entered.
> There are some flags which determine if it restarts when the state loops
> back to itself or not.
>
> So the order of elements in the when expression is irrelevant.

With respect to the position of  delay()  calls this is true, but in general
the order may of course be relevant, for instance in

  when(a > 0 && 1/a > b)

Evaluation of expressions proceeds exactly as in C, including the order of
side-effects. (It is, however, recommended to use only effect-free expressions
in  when()  clauses.)

Cheers
Ben

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführer: Prof. Dr. Anke Rita Kaysser-Pyzalla, Dr. Ulrich Breuer

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


 The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed.  Any use of this email for any other purpose is prohibited.  If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.


References:
question about state notation language logic for when() with delay Jay Steele
Re: question about state notation language logic for when() with delay Chestnut, Ronald P.
Re: question about state notation language logic for when() with delay Benjamin Franksen

Navigate by Date:
Prev: Re: EDM start window position, from command line Scott Baily
Next: Can vmic3123 use triggers to start and stop the acquisition? Ma Xiaoyuan
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 
Navigate by Thread:
Prev: Re: question about state notation language logic for when() with delay Benjamin Franksen
Next: EDM start window position, from command line Kathryn Spiers
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 
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 ·