Experimental Physics and Industrial Control System
|
Yes, Stream reads NELM elements or stops when the input is exhausted, whatever happens first.
Dirk
Thank you, Iain.
How do you let stream device know that you want exactly 140 numbers? Only setting NELM is sufficient?
Best regards,
Márcio Paduan Donadio
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.
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 = "";
String. Affects out and in commands.
When formatting or parsing array values in a format converter (see formats and waveform record), what string to write or to expect between values?
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
|
- References:
- Streamdevice waveform - binary data stream with no separator Paduan Donadio, Marcio
- Re: Streamdevice waveform - binary data stream with no separator Paduan Donadio, Marcio
- Navigate by Date:
- Prev:
RE: EDM questions Zelazny, Michael Stanley
- Next:
Re: string fanout or stringout after conditional check? Zimoch Dirk (PSI)
- 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
- Navigate by Thread:
- Prev:
Re: Streamdevice waveform - binary data stream with no separator Paduan Donadio, Marcio
- Next:
Micronix MMC-10 Kevin Peterson
- 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
|
ANJ, 21 Dec 2017 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|