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  <20082009  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  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: GPIB - asyn - streamdevice
From: Eric Norum <[email protected]>
To: EPICS Techtalk <[email protected]>
Date: Mon, 3 Nov 2008 08:32:13 -0600
On Nov 3, 2008, at 3:39 AM, Dirk Zimoch wrote:

Hi Zen,
.

.
.
ASCII is usually a quite inefficient encoding for huge waveforms. Often devices offer a "raw" format, (e.g. 2 byte integer). This format is not terminated because raw input may consist of CR LF bytes. However, it has a fixed input length. Often is is prefixed by a header that defines the input length. Unfortunately StreamDevice cannot interpret this header. (This would be something for a asyn interpose layer, I guess). But you can easily calculate the size yourself. If the header looks like this "#800001000" the total input size is 1010 (10+2*500). And you can use a format like this:

This format is an IEEE-488.2 standard. For an example of reading this see the readArbitraryBlockProgramData() function in the ASYN devGpib support (modules/soft/asyn/asyn/devGpib/devSupportGpib.c).
For an example of this function's use see the Tektronix TDS3000/5000 support (modules/instrument/tds3000/TDS3000/src/devTDS.c).
--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793




References:
GPIB - asyn - streamdevice Szalata, Zenon M.
Re: GPIB - asyn - streamdevice Dirk Zimoch

Navigate by Date:
Prev: Re: GPIB - asyn - streamdevice Dirk Zimoch
Next: EDM cursors GOURNAY Jean-Francois
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: GPIB - asyn - streamdevice Dirk Zimoch
Next: how to load several same devices in stream marco_hair
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·