EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Device support of asyn port driver for system commands.
From: "Hu, Yong via Tech-talk" <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>, "Phillip A. Sorensen" <pas37 at cornell.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 10 May 2022 14:16:06 +0000

Hi Phil,

Another way: you can try this https://github.com/NSLS-II/elauncher .
“Device support for easy script launcher: one can run a Python (or shell, or anything you can use in a Linux terminal) script inside an IOC through a bo record.”.
A simple bo record looks like this:
record(bo, "elauncherTestCommand") {
    field(DTYP, "Launcher")
    field(OUT,  "@ps -ef | grep -i elauncher")
    field(SCAN, "5 second")
    field(VAL,  "0")
    field(ZNAM, "Name for zero")
    field(ONAM, "Name for one")
}


A more advanced module: http://mdavidsaver.github.io/pyDevSup/

Cheers,
Yong

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Reply-To: Mark Rivers <rivers at cars.uchicago.edu>
Date: Monday, May 9, 2022 at 10:35 AM
To: "Phillip A. Sorensen" <pas37 at cornell.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: RE: Device support of asyn port driver for system commands.

 

That sounds like something that would be pretty straightforward to do with an SNL program or an asub record.

 

Mark

 

 

-----Original Message-----

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Phillip A. Sorensen via Tech-talk

Sent: Monday, May 9, 2022 9:17 AM

Subject: Device support of asyn port driver for system commands.

 

I would like to be able to call a system binary from an IOC record.

Something like execute a command when a BO record is set to one, or read the result of a command into a AI record, etc.  Does any one have device support or asyn port driver that might do something like this?

 

The other option I am looking at is writing something with like PCASpy or caproto.

 

Thanks,

 

Phil Sorensen

CHESS

 


References:
Device support of asyn port driver for system commands. Phillip A. Sorensen via Tech-talk
RE: Device support of asyn port driver for system commands. Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Can't create mutex semaphore: too many Till Straumann via Tech-talk
Next: ADEiger R3-3 released Mark 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  <20222023  2024 
Navigate by Thread:
Prev: RE: Device support of asyn port driver for system commands. Mark Rivers via Tech-talk
Next: INFICON Transpector MPH Residual Gas Analyzer (RGA) - http GET requests. Govednik, Janez 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·