EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: initializing a waveform record
From: "Liyu, Andrei" <[email protected]>
To: [email protected]
Date: Tue, 06 Jul 2004 09:22:14 -0400
Hello,

	I see my name here.
	My goal was a little another. I checked performance of record
processing in my problem. It is like that record processing is slow.

Thanks, Andrei.

-----Original Message-----
From: Gasper Pajor [mailto:[email protected]] 
Sent: Tuesday, July 06, 2004 8:42 AM
To: '[email protected]'
Subject: Re: initializing a waveform record

Hello Mark, Steve

We came across the same problem - filling the waveform with static data 
- and  the best solution we found so far is the use of state notation 
language.

Here is an example code for what we do :

double arr[100];
assign arr to "CURVES:SINE";
%% int i;

........
........
       state init
       {
          when()
          
{


            %%  for(i=0;i<100;i++) arr[i] = sin(0.1*i);
            %%  j=0;
            pvPut(arr);
          } state somethingelse
       }

........
........

We use sequencer and 2.0.8 and epics base 3.14.x.
Hope this helps,

Gasper Pajor,
Cosylab


Singleton, SJ (Steve) wrote:

> Hello Mark
>
> I use EPICS subroutine (SUB) records to initialise waveform records,
with
> the attached code.  Because of the limitation on the number of 
> arguments to
> a SUB record it is only possible to initialise up to nine elements of
the
> array from one SUB record.  The arguments of the SUB record are as 
> follows:
>
> INPA - the waveform record
> INPB - the index number of the first waveform element to be set up by 
> this
> SUB record.
> INPC - the number of elements to be initialised by the SUB record, in
the
> range 1 - 9.
> INPD to INPL - the values to which the elements are to be set.
>
> Hope this helps.
>
> Regards
> Steve Singleton
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Mark M. Ito
> Sent: 04 July 2004 02:14
> To: [email protected]
> Subject: initializing a waveform record
>
>
> What is there a standard way to initialize the values of a waveform 
> record?
>
> I saw Andrei Liyu's post from this past Apr. 8. He seems to imply that

> the standard is to call dbPutField. Does one write a VxWorks 
> subroutine to make this call and load the array?
>
> The array is of floats, and will be about 100 elements long. The 
> values are static; they never change.
>
> I also looked at the waveform record description in the Record 
> Reference Manual. That did not help me given my lack of basic 
> understanding of this stuff.
>
> I also skimmed the contents of the Application Developer's Guide. No 
> help for me there either.
>
>  
>



Navigate by Date:
Prev: Re: initializing a waveform record Ned Arnold
Next: Re: initializing a waveform record Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Array save/restore Tim Mooney
Next: EDM Help File problems Steven . Banks
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  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 ·