EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  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  2023  2024  Index 1994  1995  <19961997  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  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Displaying waveforms
From: [email protected] (Jeff Hill)
To: [email protected], [email protected]
Date: Fri, 26 Jan 96 07:54:04 MST
Hello all,

> 
> double waveform_array[16384];
> assign waveform_array to "WAVEFORM_ARRAY.VAL";
> 
> /****** Acquire data and stuff it into an array: this part  *****/
> /****** works because I can print out believable data using *****/
> /****** the printf statement below.                         *****/
> 
> /* write to waveform */
> %%	array1_ptr=lpanarray1;
> %%	for(count=0;count<lnumsamples;count++)
> %%	  {
> %%		waveform_array[count] = (double)(array1_ptr[count]*3.091e-10);
> %%		printf("%e\n",waveform_array[count]);
> %%	  }
> 	pvPut(waveform_array);
> 
> 
> My database file for this record looks like this:
>  
>     record(waveform, "WAVEFORM_ARRAY")
>     {
>         field(DESC, "Array for HP positions")
>         field(NELM, "16384")
>         field(FTVL, "DOUBLE")
>     }
>     
> Instead of putting this array into my waveform record, the dang computer 
> prints the error message: 
> 
> error from CA on WAVEFORM_ARRAY.VAL
> The array or data structure specified will not fit in CA message buffer
> 
> Any ideas what's wrong? Thank you very much!
> 


You are experiencing the infamous Channel Access array element count 
limit.  Channel Access limits network transfers to roughly 4k 4 byte 
elements (or 2k 8 byte elements). When the Channel Access client and 
the process variable are located within the same host then this limit 
does not apply. This is why your sequence program does not see the 
limit (the sequencer also uses channel access client library).

My priorities at this time are:
1) finish the new ca server
2) remove the ca array element count limit 


Jeff


______________________________________________________________________
Jeffrey O. Hill			Internet	[email protected]
LANL MS H820			Voice		505 665 1831
Los Alamos, NM 87545 USA 	FAX		505 665 5107


Navigate by Date:
Prev: Re: module_types.c Marty Kraimer
Next: Re: Displaying waveforms Andy Kozubal
Index: 1994  1995  <19961997  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  2023  2024 
Navigate by Thread:
Prev: Re: Displaying waveforms Marty Kraimer
Next: Re: Displaying waveforms Andy Kozubal
Index: 1994  1995  <19961997  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  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·