I would gladly receive the examples. The file gensubrecord.h was not
delivered with the downloaded file
http://www.observatorysciences.co.uk/images/genSubV1-6.tar.gz, could you
sent me a copy if this file or isn't it necessary?
Van: Tim Mooney [mailto:email@example.com]
Verzonden: vrijdag 27 januari 2006 17:02
Aan: Bruins, Stefan; 'firstname.lastname@example.org'
Onderwerp: Re: use of SUB record
Bruins, Stefan wrote:
> After some advice about the use of the waveform record as an output record
> decided to use this record in combination with with a SUB record to write
> 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
> 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
for your application, because the hardware is complicated and obtuse.
Tim Mooney (email@example.com) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.
- Re: FW: use of SUB record Andrew Johnson
- Navigate by Date:
Re: enhanced seq record Tim Mooney
Re: enhanced seq record Luedeke Andreas
- Navigate by Thread:
Re: use of SUB record Burkhard Kolb
Re: FW: use of SUB record Andrew Johnson