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

Subject: RE: lcaGet maximum readout array size
From: "Ha, Kiman via Tech-talk" <tech-talk@aps.anl.gov>
To: "Hu, Yong" <yhu@bnl.gov>, Mark Rivers <rivers@cars.uchicago.edu>
Cc: "Podobedov, Boris" <boris@bnl.gov>, "sebek@slac.stanford.edu" <sebek@slac.stanford.edu>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 12 Sep 2019 01:00:25 +0000

 

Thank you all for your support.

 

I will change script that read A,B,C,D channel individual way, it works fine.

 

 adc_cha = lcaGet(tmp1, WLength);

 adc_chb = lcaGet(tmp2, WLength);

 adc_chc = lcaGet(tmp3, WLength);

 adc_chd = lcaGet(tmp4, WLength);

 

% align order     

 allADC=[adc_cha adc_chb adc_chc adc_chd];

 

Thanks,

Kiman

 

 

From: Ha, Kiman
Sent: Wednesday, September 11, 2019 7:18 PM
To: Hu, Yong <yhu@bnl.gov>; Mark Rivers <rivers@cars.uchicago.edu>
Cc: Podobedov, Boris <boris@bnl.gov>; sebek@slac.stanford.edu; tech-talk@aps.anl.gov
Subject: RE: lcaGet maximum readout array size

 

Yong,

 

Increased timeout value.

lcaSetTimeout(1.0);

lcaSetRetryCount(200);

 

 

total size is 180*4*1M*8byte(double) = 5.76 Gbyte

 

Reading waveforms...

Error using lcaGet

Out of memory. Type HELP MEMORY for your options.

 

Error in adcLongWfmRead_1m (line 276)

        allADC = lcaGet([tmp1; tmp2; tmp3; tmp4], WLength);

 

 

 

@matlab:~/epics/matlab/bpm/adc$ free -g

             total       used       free     shared    buffers     cached

Mem:           126         50         75          0          0         45

 

 

 

From: Hu, Yong <yhu@bnl.gov>
Sent: Wednesday, September 11, 2019 5:42 PM
To: Ha, Kiman <kha@bnl.gov>; Mark Rivers <rivers@cars.uchicago.edu>
Cc: Podobedov, Boris <boris@bnl.gov>; sebek@slac.stanford.edu; tech-talk@aps.anl.gov
Subject: Re: lcaGet maximum readout array size

 

Kiman:

 

Yes, the function is lcaSetTimeout, i.e. lcaSetTimeout(1.0) will set the timeout to 1 second. The default timeout is 0.1 second.

Other useful functions for your case:  lcaGetRetryCount, lcaSetRetryCount

 

BTW, you do not need to set EPICS_CA_MAX_ARRAY_BYTES to 5G.  A little bit greater than 1M*sizeof(data-type-of-ADC-raw-data) should be enough.

 

Yong

 

 

From: Tech-talk <tech-talk-bounces@aps.anl.gov> on behalf of "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Reply-To: Kiman Ha <kha@bnl.gov>
Date: Wednesday, September 11, 2019 at 5:12 PM
To: Mark Rivers <rivers@cars.uchicago.edu>
Cc: "Podobedov, Boris" <boris@bnl.gov>, "sebek@slac.stanford.edu" <sebek@slac.stanford.edu>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Subject: RE: lcaGet maximum readout array size

 

How to increase the timeout?

At the Matlab lcaLAB function or other ...?

Kiman

 

-----Original Message-----

From: Mark Rivers <rivers@cars.uchicago.edu>

Sent: Wednesday, September 11, 2019 4:56 PM

To: Ha, Kiman <kha@bnl.gov>

Subject: Re: lcaGet maximum readout array size

 

I think you need to increase the timeout or retries in ezca.

 

Mark

 

 

Sent from my iPhone

 

On Sep 11, 2019, at 3:20 PM, Ha, Kiman via Tech-talk <tech-talk@aps.anl.gov<mailto:tech-talk@aps.anl.gov>> wrote:

 

Hi all,

 

I am trying to readout  (180 * 4 PVs) * 1 M point BPM ADC raw data using the lcalab.

But, I found errors at waveform size > (180*4*100K) point.

Any solutions for readout 180*4*1M array size?

 

 

% BPM [180x1]

tmp1=strcat(BPM, 'Ampl:ARaw-I');

tmp2=strcat(BPM, 'Ampl:BRaw-I');

tmp3=strcat(BPM, 'Ampl:CRaw-I');

tmp4=strcat(BPM, 'Ampl:DRaw-I');

 

Reading waveforms...

Error using lcaGet

multi_ezca_get -  ezcaGetWithStatus(): no response in time

 

Error in adcLongWfmRead_1m (line 276)

        allADC = lcaGet([tmp1; tmp2; tmp3; tmp4], WLength);

 

 

Thanks,

Kiman

 


References:
lcaGet maximum readout array size Ha, Kiman via Tech-talk
Re: lcaGet maximum readout array size Mark Rivers via Tech-talk
RE: lcaGet maximum readout array size Ha, Kiman via Tech-talk
Re: lcaGet maximum readout array size Hu, Yong via Tech-talk
RE: lcaGet maximum readout array size Ha, Kiman via Tech-talk

Navigate by Date:
Prev: RE: lcaGet maximum readout array size Ha, Kiman via Tech-talk
Next: Re: Image display on ImageJ not showing up. [AravisGigE, areaDetector, ADViewer] 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  <20192020 
Navigate by Thread:
Prev: RE: lcaGet maximum readout array size Ha, Kiman via Tech-talk
Next: Problems compiling base-3.15.6 with RTEMS Michael Westfall 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  <20192020 
ANJ, 13 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·