Experimental Physics and Industrial Control System
That's perfect! Thanks!
Xuan
> -----原始邮件-----
> 发件人: "Dirk Zimoch via Tech-talk" <[email protected]>
> 发送时间: 2019-04-11 20:17:00 (星期四)
> 收件人: [email protected]
> 抄送:
> 主题: Re: Stream device character parse
>
> [Previous mail had a typo (missing %)]
>
> On 11.04.19 14:07, Dirk Zimoch via Tech-talk wrote:
> > %m
>
>
> But you need to scale. %m reads 86-5 as 86e-5. To get to 8.6e-5 set
> field (ASLO, "0.1")
>
>
>
> Completely different approach: regsub
> This re-writes the input to something readable.
>
> "%#/([0-9])([0-9]*)([-+][0-9]+)/\1.\2e\3/%f"
>
>
>
> >
> > https://paulscherrerinstitute.github.io/StreamDevice/formats.html#mantexp
> >
> >
> > On 11.04.19 09:31, 吴煊 via Tech-talk wrote:
> >> Hi all,
> >>
> >> I use stream device to get vaccum degree, the response is like 86+3,
> >> means 8.6*10^3; 86-5, means 8.6*10^-5. What is the best way to get the
> >> value by using protocol or record?
> >>
> >> Thanks,
> >>
> >> Xuan
> >>
- References:
- Stream device character parse 吴煊 via Tech-talk
- Re: Stream device character parse Dirk Zimoch via Tech-talk
- Re: Stream device character parse Dirk Zimoch via Tech-talk
- Navigate by Date:
- Prev:
Callback error from pyepics and python with GUI development Tong Zhang via Tech-talk
- Next:
Re: Callback error from pyepics and python with GUI development Matt Newville via Tech-talk
- 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: Stream device character parse Dirk Zimoch via Tech-talk
- Next:
CS-Studio SVG Image Usage in Vishnu Patel via Tech-talk
- 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