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

Subject: Re: Array of strings with asyn?
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Tue, 8 Mar 2016 00:32:18 -0500
On 03/07/2016 11:25 PM, Ryan Pierce wrote:
> Ideally, I'd like it to be returned as an array of type stringin. But I don't know if such a thing exists in EPICS,

It does (waveformRecord w/ FTVL=STRING), but this isn't often used.  So cs-studio may not be able to do much with this, though I haven't tried.

> or if it does, how to pass it through asyn.

A quick look at devAsynOctet.dbd makes me think no.

> I can't return it as a single space or comma delineated string either, since I exceed the 40 character limit with 3 devices.

A string longer than 40 characters can be represented as a character array (waveform w/ FTVL=CHAR).  This is common and all OPI clients have some way to hint that this should be rendered as a string (cs-studio has a property Format=String).  You still have to pick a max length (NELM field), but this can be quite long.

> I considered trying to pass these in binary form and convert it as hex for operator display, but I don't know if a 64 bit datatype exists.

Unfortunately no 64 bit integers for Channel Access.

References:
Array of strings with asyn? Ryan Pierce

Navigate by Date:
Prev: Array of strings with asyn? Ryan Pierce
Next: Q: Are any tools using gui_group() properties? Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Array of strings with asyn? Ryan Pierce
Next: RE: Array of strings with asyn? Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·