Thank you Tim.
I'm interested in a string of fixed length (12 chars), but up to several hundred elements.
Does this work with the aSub record? I am actually using an aSub record to write the
arrays, strings and more. Ultimately, I would like to put these strings into an archiver.
My hope was to use the aSub to fill waveform records for the values, and some sort
of string array for the channel names.
Might you have sample code in which I can carry around the array of strings?
Thank you,
Pierrick
-----------------------------------------------------------------------------------------
Pierrick Hanlet
Fermilab, P.O. Box 500, M.S. 122
Batavia, IL 60510
[email protected]
(630)840-5555/8871/6039 office/lab/fax
http://www-d0.fnal.gov/~hanlet
"Whether you think you can or think you can't, either way, you are correct" -- Henry Ford
----- Original Message -----
From: Tim Mooney <[email protected]>
Date: Thursday, December 2, 2010 1:02 pm
Subject: Re: string array PV
To: Pierrick Hanlet <[email protected]>
Cc: [email protected]
> Pierrick,
>
> The sCalcout record has a very limited ability to do this. It can
> hold 12 strings of 39 or fewer characters, and provides a calc expression
> for selecting one of the strings with an index number.
>
> The aSub record can also be coerced into implementing something like a
> string
> array. It could hold 19 strings of arbitrary length, with fields left
> for an
> index and an output string. The aSub record could also be used to implement
> a very large array of fixed-length strings, with a character buffer,
> an index,
> and input/output character fields.
>
> Tim
>
>
> ----- Original Message -----
> From: "Pierrick Hanlet" <[email protected]>
> To: [email protected]
> Sent: Thursday, December 2, 2010 12:44:27 PM
> Subject: string array PV
>
>
> Hi,
> Is there any record type that can contain an array of strings?
> Thanks,
> Pierrick
>
> -----------------------------------------------------------------------------------------
> Pierrick Hanlet
> Fermilab, P.O. Box 500, M.S. 122
> Batavia, IL 60510
> [email protected]
> (630)840-5555/8871/6039 office/lab/fax
> http://www-d0.fnal.gov/~hanlet
>
> "Whether you think you can or think you can't, either way, you are
> correct" -- Henry Ford
>
>
> --
> Tim Mooney ([email protected]) (630)252-5417
> Software Services Group (www.aps.anl.gov)
> Advanced Photon Source, Argonne National Lab
>
- Replies:
- Re: string array PV Tim Mooney
- References:
- string array PV Pierrick Hanlet
- Re: string array PV Tim Mooney
- Navigate by Date:
- Prev:
Re: string array PV Andrew Johnson
- Next:
Re: Asyn VXI-11 Driver and VXI-11 Locking William Lu
- 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:
Re: string array PV Tim Mooney
- Next:
Re: string array PV Tim Mooney
- 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
|