EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Question on supporting GPIB waveform acquisition from a variety of scopes
From: Luedeke Andreas <[email protected]>
To: "Chestnut, Ronald P." <[email protected]>, [email protected]
Date: Wed, 21 Jun 2006 19:18:34 +0200
Use StreamDevice: http://epics.web.psi.ch/software/streamdevice/
The documentation improved a lot recently.

You can send out the command by one record and have several other records on "I/O Intr", parsing the input stream.
Each record just catches one bit of information.
(see example at http://epics.web.psi.ch/software/streamdevice/doc/processing.html#iointr)



Andreas



Chestnut, Ronald P. wrote:


We are moving our legacy VMS-based GPIB control and acquistion to EPICS. SLAC uses a number of different scopes from different vendors. The more modern scopes, like the Tektronix TDS3000 support GPIB commands which return a "preamble" with the waveform data. This preamble contains, among other things, scaling information needed for proper display. Other, older scopes, require that each tidbit of information be requested individually.

The TDS3000 "WAVFrm?" command returns:

Write returned 0 and wrote 7 bytes
Read returned 0 and stopped for 1 read 1024 bytes
Buffer: 2;16;BIN;RI;MSB;10000;"Ch2, AC coupling, 5.0E-2 V/div, 4.0E-7 s/div, 10000 points, Sample mode";Y;4.0E-10;0;-2.08E-6;"s";7.8125E-6; 0.0E0;1.5744E4;"V";#520000

Has someone addressed the problem of a generic method to receive these interesting strings and parse the information out?

I can see a few ways to do each device with GENSUB or driver code or even (my favorite hammer) some SEQ program, but am hoping someone has a clever solution already.

Ron Chestnut




--
Dr. Andreas Luedeke, SLS Operations Manager, Tel:+41-56-3104002
mailto:[email protected], http://people.web.psi.ch/luedeke



References:
Question on supporting GPIB waveform acquisition from a variety of scopes Chestnut, Ronald P.

Navigate by Date:
Prev: [Fwd: Re: Question on supporting GPIB waveform acquisition from a variety of scopes] Ned Arnold
Next: RE: Question on supporting GPIB waveform acquisition from a variety of scopes Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Question on supporting GPIB waveform acquisition from a variety of scopes Chestnut, Ronald P.
Next: RE: Question on supporting GPIB waveform acquisition from a variety of scopes Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024