If no one has done this, there might be some hints from asynNDArrayDriver in areaDetector. That implements the writeOctet function, so that when a file path is written (via the NDAttributesFile parameter) the function triggers a read of that file, which you could then extract information from and populate other parameters. The line number could be another parameter set at runtime.
Or, another way of doing it would be to read the file periodically in a polling thread, perhaps enabled and disabled by another parameter.
Cheers,
Matt
On Jun 17, 2014, at 8:26 AM, Ralph Lange <[email protected]> wrote:
> All,
>
> I was wondering if anyone has written an ASYN port driver for file read access.
> Something that on every read returns a (run-time) configurable line of a (start-up) configurable file, for example.
>
> Intended use: Read stuff from the /proc file system using StreamDevice.
>
> Thanks for any hints,
> ~Ralph
>
- Replies:
- RE: ASYN port driver for file IO? Mark Rivers
- References:
- ASYN port driver for file IO? Ralph Lange
- Navigate by Date:
- Prev:
Re: Parameter library in asynportdriver /areadetector Pearson, Matthew R.
- Next:
Re: ASYN port driver for file IO? Stephen Beckwith
- 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:
ASYN port driver for file IO? Ralph Lange
- Next:
RE: ASYN port driver for file IO? Mark Rivers
- 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
|