Tim,
On Freitag, 13. Juli 2007, you wrote:
> Stefan Heim wrote:
> > In the streamdevice protocol file I have (among others)
> >
> > getX {
> > out "Joe Crds ?";
> > in "Joe Crds %f %*f %*f %*f %*f %*f %*f ";
> > }
> >
> > setX {
> > out "Joe AxisAbs 1 %(VAL)f";
> > in "Joe started";
> > }
> > [...]
>
> I think you are *telling* the streamDevice to ignore ASLO and AOFF, by
> using the
> format "%(VAL)f".
That's indeed the case. It's a feature, not a bug ;-) If I use %f instead
of %(VAL)f, I get the desired ASLO/AOFF scaling with streamdevice and an ao
record.
> As I read the doc, it would do what you want if you
> used the
> format "%f". According to streamDevice/doc/ao.html, the streamDevice
> would, in this case, perform the calculation
>
> |OUTPUT_VALUE = (OVAL-AOFF)/ASLO
>
> without converting to integer. (I.e., the streamDevice would grab the
> required
> field values, and perform the calculation independently of the record.)
Can't believe this has slipped through my attention! Stupid mistake, thank you
for getting me back on track.
On a academic basis I still wonder whether to give the responsibility to
honour ASLO/AOFF to the device support is a good idea. Aren't ASLO/AOFF
supposed to be a property of _any_ ao record, regardless what device support
it might reside on?
Thanks again,
-Stefan
--
Stefan Heim, PhD Student X-ray microscopy
BESSY mbH, Albert-Einstein-StraÃe 15, D-12489 Berlin, Germany
voice: +49 30 6392 3177 fax: + 49 30 6392 4757 e-mail: [email protected]
BESSY mbH - Mitglied der Leibniz Gemeinschaft
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. h.c. mult. Joachim Treusch
GeschÃftsfÃhrer: Prof. Dr. Dr. h.c. Wolfgang Eberhardt, Prof. Dr. Eberhard
Jaeschke
Sitz Berlin, AG Charlottenburg, HRB 14635
- Replies:
- Re: ASLO / AOFF scaling for ai and ao record Tim Mooney
- References:
- ASLO / AOFF scaling for ai and ao record Stefan Heim
- Re: ASLO / AOFF scaling for ai and ao record Tim Mooney
- Navigate by Date:
- Prev:
Re: Scan question John Sinclair
- Next:
Re: ASLO / AOFF scaling for ai and ao record Tim Mooney
- 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: ASLO / AOFF scaling for ai and ao record Tim Mooney
- Next:
Re: ASLO / AOFF scaling for ai and ao record Tim Mooney
- 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
|