Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 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
<== Date ==> <== Thread ==>

Subject: Re: Streamdevice waveform - binary data stream with no separator
From: "Zimoch Dirk (PSI)" <dirk.zimoch@psi.ch>
To: "Paduan Donadio, Marcio" <marcio@slac.stanford.edu>
Cc: "Tech-talk@aps.anl.gov" <Tech-talk@aps.anl.gov>
Date: Thu, 18 May 2017 21:23:17 +0000
Yes, Stream reads NELM elements or stops when the input is exhausted, whatever happens first.

Dirk

Am 18.05.2017 um 21:33 schrieb Paduan Donadio, Marcio <marcio@slac.stanford.edu>:

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 <Iain.Marcuson@sydorinstruments.com>
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: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Paduan Donadio, Marcio
Sent: Thursday, May 18, 2017 1:25 PM
To: EPICS tech talk <Tech-talk@aps.anl.gov>
Subject: Streamdevice waveform - binary data stream with no separator

 

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
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
ANJ, 18 May 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·