Hi,
Thank you for your help.
I was able to get the correct result using ESLO. I miss understood the
"=" operator in StreamDevices.
Regards,
---
Donny Domagoj Cosic
Laboratory for Ion Beam Interactions
Ruđer Bošković Institute
Bijenička cesta 54 | HR-10 000 Zagreb | CROATIA
T: +385 1 4561 041 | @: dcosic at irb.hr | www.irb.hr
Dana 12.11.2021 17:25, Eric Norum je napisao(la):
Could you read it into an ai record RVAL using %d and then use ESLO to
scale the result?
On Nov 12, 2021, at 2:18 AM, Donny Domagoj Cosic via Tech-talk
<tech-talk at aps.anl.gov> wrote:
Hi,
I receive a string from a device containing the current draw as a 6
character number. ie. for 2.45 A, the string would be 000245. Using
the format converter %6f in the proto file, I am able to read the
value into a ai record as 245. However when I try to convert the
input string using %=6.2f, I always read in 0 as the current.
Am I understanding the = operator properly? How can I convert the
string 000245 input into 2.45 in the ai record?
Thank you in advance,
--
Donny Domagoj Cosic
Laboratory for Ion Beam Interactions
Ruđer Bošković Institute
Bijenička cesta 54 | HR-10 000 Zagreb | CROATIA
T: +385 1 4561 041 | @: dcosic at irb.hr | www.irb.hr [1]
—
Eric Norum
eric at norum.ca
Links:
------
[1] http://www.irb.hr
- References:
- StreamDevice Format Converters Donny Domagoj Cosic via Tech-talk
- Navigate by Date:
- Prev:
R3-3 of ADSpinnaker Mark L Rivers via Tech-talk
- Next:
Re: Access motor controller target positions of other axes in asynMotorAxis::move Laurenz Rettig 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:
Fwd: StreamDevice Format Converters Zimoch Dirk (PSI) via Tech-talk
- Next:
R3-3 of ADSpinnaker Mark L Rivers 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
|