EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  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  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: subArray / waveform problem
From: "Rodney R. Porter" <[email protected]>
To: "Shepherd, EL (Emma)" <[email protected]>, <[email protected]>
Date: Wed, 23 Jan 2008 16:14:19 -0600
I haven't tried using the subArray record, but have done similar
manipulations using a genSub record.
Rodney Porter


On 1/23/08 9:07 AM, "Shepherd, EL (Emma)" <[email protected]>
wrote:

> I have a waveform record with FTVL set to String, but some of the
> elements are actually floating point numbers and I would like to
> separate them all out into individual records.
> 
> Has anyone ever tried using multiple subArray records with different
> FTVL settings for this purpose?  I've tried to do this but can't get it
> to work properly, here's my problem:
> 
> Using the following database, I can do 'caput -a ARRAY 1 2 3 4' - no
> problem, P1=1, P2=2, P3=3 and P4=4.  If I do 'caput -a ARRAY 3 4 "any
> string" 5' - P4 does not get updated, so I get P1=3, P2=4, P3="any
> string", P4=4.  In fact it seems that any numbers appearing after the
> string element in the array do not get updated.
> 
> Any ideas? Would you expect this to work?
> 
> 
> record(waveform, "ARRAY") {
>   field(NELM, "4")
>   field(FTVL, "STRING")
> }
> 
> record(subArray, "P1") {
>   field(FTVL, "FLOAT")
>   field(INP, "ARRAY CP")
>   field(NELM, "1")
>   field(MALM, "4")
>   field(INDX, "0")
> }
> 
> record(subArray, "P2") {
>   field(FTVL, "FLOAT")
>   field(INP, "ARRAY CP")
>   field(NELM, "1")
>   field(MALM, "4")
>   field(INDX, "1")
> }
> 
> record(subArray, "P3") {
>   field(FTVL, "STRING")
>   field(INP, "ARRAY CP")
>   field(NELM, "1")
>   field(MALM, "4")
>   field(INDX, "2")
> }
> 
> record(subArray, "P4") {
>   field(FTVL, "FLOAT")
>   field(INP, "ARRAY CP")
>   field(NELM, "1")
>   field(MALM, "4")
>   field(INDX, "3")
> }
> 
> 
> Thanks,
> 
> Emma
> <DIV><FONT size="1" color="gray">This e-mail and any attachments may contain
> confidential, copyright and or privileged material, and are for the use of the
> intended addressee only. If you are not the intended addressee or an
> authorised recipient of the addressee please notify us of receipt by returning
> the e-mail and do not use, copy, retain, distribute or disclose the
> information in or attached to the e-mail.
> Any opinions expressed within this e-mail are those of the individual and not
> necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments
> are free from viruses and we cannot accept liability for any damage which you
> may sustain as a result of software viruses which may be transmitted in or
> with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England and
> Wales with its registered office at Diamond House, Harwell Science and
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
> </FONT></DIV> 
> 


References:
subArray / waveform problem Shepherd, EL (Emma)

Navigate by Date:
Prev: RE: asynRecord immutable fields Mark Rivers
Next: asyn/stream reconnect problems Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: subArray / waveform problem Shepherd, EL (Emma)
Next: asyn/stream reconnect problems Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·