Experimental Physics and Industrial Control System
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 ([email protected]) (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
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024