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  2025  2026  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  2025  2026 
<== Date ==> <== Thread ==>

Subject: Re: Device support of asyn port driver for system commands.
From: "Hu, Yong via Tech-talk" <[email protected]>
To: Mark Rivers <[email protected]>, "Phillip A. Sorensen" <[email protected]>
Cc: "[email protected]" <[email protected]>
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 <[email protected]> on behalf of "[email protected]" <[email protected]>
Reply-To: Mark Rivers <[email protected]>
Date: Monday, May 9, 2022 at 10:35 AM
To: "Phillip A. Sorensen" <[email protected]>
Cc: "[email protected]" <[email protected]>
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 <[email protected]> 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  2025  2026 
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  2025  2026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·