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  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Parse multiple waveforms in stream device
From: Abdalla Ahmad via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 6 Sep 2023 09:22:21 +0000

Hi

 

We have a device that performs data read-out as follows:

 

We send the command “ADC 10” that collects 10 ADC samples for each of the 4 channels, the response is as follows:

 

       1        2        3        4

      -5       -8       0        1

 

And so on until the 10th sample. The target is to read each channel individually in its own waveform record. Here are my questions:

1.       Is it possible to parse such output in stream device? I tried the “Separator” command as explained here https://paulscherrerinstitute.github.io/StreamDevice/tipsandtricks.html along with this input command (in “%d%*d%*d%*d”) but it always read one sample. This input command should choose the channel and then with the separator command should convert the output into the waveform but that is not what happening. I also tried using PCRE to skip or substitute parts of the input but it is still the same.

2.       Is it possible to use the stream device format converter API to create a custom parser for this case? If yes, is there a tutorial on how to do it?

3.       Can I write an asynPortDriver class that uses the same asyn port as the stream device?

 

Thanks!

Abdalla

 


Replies:
Re: Parse multiple waveforms in stream device Ralph Lange via Tech-talk
Re: Parse multiple waveforms in stream device Zimoch Dirk via Tech-talk

Navigate by Date:
Prev: Static Database Access 顾月良 via Tech-talk
Next: Re: Parse multiple waveforms in stream device Ralph Lange 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  2021  2022  <20232024 
Navigate by Thread:
Prev: Re: Static Database Access Michael Davidsaver via Tech-talk
Next: Re: Parse multiple waveforms in stream device Ralph Lange 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  2021  2022  <20232024 
ANJ, 07 Sep 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·