g+
g+ Communities
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  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
<== Date ==> <== Thread ==>

Subject: Displaying waveforms
From: jspring@csg.lbl.gov (John Spring)
To: tech-talk@aps.anl.gov
Date: Fri, 26 Jan 96 01:51:27 PST
Hi guys:

If you have the time could you answer a question?

Why would the following code fragment not work?



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(SCAN, "Passive")
        field(PINI, "NO")
        field(PHAS, "0")
        field(EVNT, "0")
        field(DTYP, "Soft Channel")
        field(DISV, "1")
        field(SDIS, "0")
        field(DISS, "NO_ALARM")
        field(PRIO, "LOW")
        field(FLNK, "0")
        field(RARM, "0")
        field(PREC, "4")
        field(INP, "0")
        field(EGU, "nm")
        field(HOPR, "1.0e-08")
        field(LOPR, "-1.0e-08")
        field(NELM, "16384")
        field(FTVL, "DOUBLE")
        field(SIOL, "0")
        field(SIML, "0")
        field(SIMS, "NO_ALARM")
    }
    
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!

John Spring


Navigate by Date:
Prev: Re: request to modify db_name_to_addr for USHORT mapping Marty Kraimer
Next: EPICS Master Tree Developers Marty Kraimer
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
Navigate by Thread:
Prev: Re: request to modify db_name_to_addr for USHORT mapping Marty Kraimer
Next: Re: Displaying waveforms Marty Kraimer
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·