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  2016  2017  2018  2019  2020  <20212022  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  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: StreamDevice with waveforms
From: Randall Cayford via Tech-talk <tech-talk at aps.anl.gov>
To: "Engbretson, Mark S. via Tech-talk" <tech-talk at aps.anl.gov>
Date: Wed, 10 Mar 2021 14:19:45 -0800
I’m trying to use StreamDevice to pass a long string to a controller.  Since it’s much longer than 40 characters, I’m using a waveform.  Here’s the protocol entry (though I’ve tried many other variants of the format specifier):

sety {
#  separator = " ";
  out “Y(%s)";
  in "YOKAY (%s)";
}

Here’s the db entry:
record (waveform, "$(PREFIX):ydata")
{
    field (DTYP, "stream")
    field (INP, "@mems.proto sety $(BUS)")
    field (NELM, 100)
    field (FTVL, "CHAR")
    field (SCAN, Passive)
}

Using an example:
caput -s  mems:ydata “68 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25”

I’ve tried a number of other variants , of course.

What gets sent in this case is “YD”.  So it’s pulling the first number, doing a string to integer conversion, then sending that ascii character (D) and ignoring the rest of the string.

Any ideas?

Thanks.

Randall



Replies:
Re: StreamDevice with waveforms Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: RE: Mistaken code problem of file path in plugin NDFileTIFF shenzb--- via Tech-talk
Next: Writing/Reading PVs from/to a DB Question Manoussakis, Adamandios via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: STS hiring an IT System Architect-Engineer Hartman, Steven via Tech-talk
Next: Re: StreamDevice with waveforms Johnson, Andrew N. via Tech-talk
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  <20212022  2023  2024 
ANJ, 10 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·