On Tue, 13 Jul 1999, Luedeke Andreas wrote:
> Hi all,
> I need a waveform output record with variable array length.
> A pretty common requirement I think, so I hope someone has already done
> it.
> I'm writing device/driver support for the SLS power supply controller.
> The controller can download arbitrary reference current waveforms
> which will be started at an external trigger.
> As I understand, the 'aao' record does not support modification of the
> NELM field, to tell device support how long the current array is.
> I could send the data-length through the first value of the array or
> through an extra longout record to the device support, but maybe someone
>
> can tell me a more common way.
> Thanks in advance
> Andreas
The "general subroutine" (genSub) record can handle variable sized arrays.
The genSub record is similar to the subroutine record (in that it executes
a user defined function) but allows multiple input fields and multiple
output fields. Any of these fields can be a variable sized array (for
example the size and type of input field A can be defined using fields NOA
and FTA, and the size and type of output field VALA can be defined using
fields NOVA and FTVA).
You might be able to handle your waveforms using the genSub record.
Alternately, you could take the code from the waveform output record and
the code from the genSub record and merge them together to make your own
waveform output record which handles variable sized arrays (unless someone
else has already done this...).
Steven
==============================================================================
Steven Beard
UK Astronomy Technology Centre
Royal Observatory Tel. : +44 (0)131 668 8253 (direct)
Blackford Hill +44 (0)131 668 8100 (switchboard)
Edinburgh EH9 3HJ Fax. : +44 (0)131 668 1130
UK E-mail : [email protected] (Internet)
WWW : http://www.roe.ac.uk/smbwww/
- Replies:
- Re: writing waveform out Luedeke Andreas
- References:
- writing waveform out Luedeke Andreas
- Navigate by Date:
- Prev:
writing waveform out Luedeke Andreas
- Next:
Re: writing waveform out Ron Chestnut
- 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:
writing waveform out Luedeke Andreas
- Next:
Re: writing waveform out Luedeke Andreas
- 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
|