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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Streamdevice waveform - binary data stream with no separator |
From: | "Paduan Donadio, Marcio" <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Thu, 18 May 2017 19:33:12 +0000 |
Thank you, Iain.
How do you let stream device know that you want exactly 140 numbers? Only setting NELM is sufficient?
Best regards,
Software Engineer - TID-AIR-ACS - SLAC
De: Iain Marcuson <[email protected]>
Enviado: quinta-feira, 18 de maio de 2017 12:19 Para: Paduan Donadio, Marcio Assunto: RE: Streamdevice waveform - binary data stream with no separator I have used something similar. You would use the %r format specifier, in I believe something like: In “%2.2r” You may need to add the “#” flag to account for endianness. For this you would set the separator to be blank.
Iain.
From: [email protected] [mailto:[email protected]]
On Behalf Of Paduan Donadio, Marcio
Good morning to all!
I have an equipment that sends 140 16-bit words in sequence. I want to put the 140 numbers in a waveform using Streamdevice.
The manual says: Separator = "";
and gives this protocol example: array_out {separator=", "; out "an array: (%.2f)";}
How can I address my case using something like the separator idea, when I don't have a separator, but a fixed byte size for each number?
Thank you for all help!
Márcio Paduan Donadio Software Engineer - TID-AIR-ACS - SLAC |