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: Sequencer handling of waveforms with dynamic size
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Fri, 29 Sep 2023 15:42:21 +0000

Unfortunately in version 2.2.9 at least, the current element count value that gets provided by the CA event handler arg's isn't actually saved anywhere by the sequencer code. Looking at the related code I suspect this wouldn't be trivial to fix because when it was written the CA protocol didn't tell clients what the active length of the array was.

 

- Andrew

 

-- 

Complexity comes for free, Simplicity you have to work for.

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
Date: Friday, September 29, 2023 at 7:52 AM
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Subject: Re: Sequencer handling of waveforms with dynamic size

On Fri, 29 Sept 2023 at 14:46, Ralph Lange <ralph.lange at gmx.de> wrote:

On Fri, 29 Sept 2023 at 13:53, Jure Varlec via Tech-talk <tech-talk at aps.anl.gov> wrote:


Encountering this issue, I'm having a feeling of deja vu, so this might have been discussed before. But I can't find anything.

I found that a sequencer variable assigned to a waveform doesn't seem to know its current size. The pvCount() function always returns the value of NELM (or the array size of the sequencer variable, if smaller), not NORD. Is there some way to obtain the current size of the waveform that I missed? I'm not too keen on creating a separate variable assigned to the NORD field because there's no guarantee that the two variables will be in sync.

 

 

I mean:

So the pvCount() is just returning the number of elements from the CA metadata? I see.

 

~Ralph


References:
Sequencer handling of waveforms with dynamic size Jure Varlec via Tech-talk
Re: Sequencer handling of waveforms with dynamic size Ralph Lange via Tech-talk
Re: Sequencer handling of waveforms with dynamic size Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] Phoebus EDM autoconvert issue with a button widget Kasemir, Kay via Tech-talk
Next: Re: [EXTERNAL] Phoebus EDM autoconvert issue with a button widget Lucas Russo 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: Sequencer handling of waveforms with dynamic size Ralph Lange via Tech-talk
Next: EPICS Support for Microfocus X-ray tubes from X-RAY WorX Sintschuk, Michael 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, 29 Sep 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·