Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: use of SUB record
From: Tim Mooney <mooney@aps.anl.gov>
To: "Bruins, Stefan" <brs@vonk-systems.nl>, "'tech-talk@aps.anl.gov'" <tech-talk@aps.anl.gov>
Date: Fri, 27 Jan 2006 10:01:49 -0600


Bruins, Stefan wrote:
After some advice about the use of the waveform record as an output record I
decided to use this record in combination with with a SUB record to write to
all the elements in the waveform record.

The sub record can't write. I'd use the genSub record.


... In my database I made the following
links between those records

waveform.VAL <=> sub.INPA
waveform.FTVL <=> sub.INPB
waveform.NELM <=> sub.INPC

In this database, the sub record is reading from the waveform record.


VAL is used as a reference for the start of the array, FTVL is an indication
for the increasement of the pointer to access the next element in the
waveform array. NELM will function as a limit to indicate the range of the
waveform array.

VAL is the waveform record's array. The sub record cannot read this because it doesn't support an array data type.

I've already created an .cpp source file but it's not clear for me which
steps to perform to import this file to my EPICS IOC.

Some trial and error only gives me failures during the make process of the
application or a "subroutine not found" error during IOC startup.

I think your best move would be to install the genSub module and read the documentation for this record. It's a little complicated, but very capable. You will be able to construct an array and write it to the waveform record. Separately, you can write device support that will write the waveform record's array to hardware.

Do you have any examples to work from?  If not, I could send you an example
of the genSub record doing some simple array stuff.  I have only one example
of a waveform record writing to hardware, and it's probably not a good example
for your application, because the hardware is complicated and obtuse.

--
Tim Mooney (mooney@aps.anl.gov) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.

Replies:
Re: use of genSub record Andy Foster
References:
use of SUB record Bruins, Stefan

Navigate by Date:
Prev: Re: use of SUB record Burkhard Kolb
Next: EPICS Meeting Date is in Flux - please hold Dalesio, Leo `Bob`
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: use of SUB record Bruins, Stefan
Next: Re: use of genSub record Andy Foster
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·