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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: linux file search from Asyn |
From: | <[email protected]> |
To: | <[email protected]> |
Cc: | [email protected] |
Date: | Wed, 10 Apr 2013 10:32:55 +0000 |
Hi Vishnu, Hi Vishnu, It sounds like you need an asynPortDriver driver that has a writeOctet method that basically calls system(“string”) or execl( “path”, “arg”, ... ) and catches
the response from stdout in the readOctet method. I don’t think such a beast exists but if you took the asynPortDriver documentation (http://www.aps.anl.gov/epics/modules/soft/asyn/R4-21/asynPortDriver.html)
and the example I don’t think it would take long to write. You could then use StreamDevice or an asyn record to work out what to do with the reply. I am posting this to techtalk in case anyone has done this as an exercise and not published it yet. Cheers, Nick Rees Principal Software Engineer Phone: +44 (0)1235-778430 Diamond Light Source Fax: +44 (0)1235-446713 From: [email protected] [mailto:[email protected]]
Hi Nick, Actually i want to develop asyn based device support, so that EPICS PV have status of particular board is present or not in the system.
In my linux layer for each board one file is generated in /dev/XXX at boot time. so if i can read the XXX file is present or not in /dev directory, EPICS PV can display the status of perticular board. Thanks With regards Vishnu Get your own
FREE website and domain with business email solutions,
click here |