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  <20222023  2024  2025  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  <20222023  2024  2025 
<== Date ==> <== Thread ==>

Subject: Re: StreamDevice protocol file to skip over the header string when get waveform
From: "Zimoch Dirk \(PSI\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "MuYuan.Wang at ess.eu" <MuYuan.Wang at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 25 May 2022 13:57:42 +0000
Simply read "#800001000" before your format. For example, it your format is %r, do:  in ""#800001000%r".

The waveform will repeat the format for each element, but read the header only once.

If you have changing numbers of elements, you could use "#8%*8d" to skip 8 decimals after the #8. You cannot skip a
variable number of digits though. (but that is normally not needed).

Dirk

On Wed, 2022-05-25 at 12:02 +0000, MuYuan Wang via Tech-talk wrote:
> Hello Everyone:
>  
>                 When I try to write the protocol file to get waveform data from Keysight DSOX1204A oscilloscope, I
> found the waveform data format is such like “<header><data><NL>” and the header is standard format like that
> #800001000, data followed by it after, so is it some good solution can skip over the header and directly to read
> waveform data? I check the stream device documents which says using “*” but I try some methods it looks like doesn’t
> work.
>  
>                 Thanks for your time and kind help.
>  
> Best Regards
>  
> MuYuan

References:
StreamDevice protocol file to skip over the header string when get waveform MuYuan Wang via Tech-talk

Navigate by Date:
Prev: StreamDevice protocol file to skip over the header string when get waveform MuYuan Wang via Tech-talk
Next: Re: Can't create mutex semaphore: too many Michael Davidsaver 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  <20222023  2024  2025 
Navigate by Thread:
Prev: StreamDevice protocol file to skip over the header string when get waveform MuYuan Wang via Tech-talk
Next: Scientific Software Positions at the Advanced Photon Source (APS) Schwarz, Nicholas 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  <20222023  2024  2025 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·