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 2023 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 2022 2023 2024 2025 |
<== 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 |
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: