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  <20132014  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: how to issue a shell command from EPICS record ?
From: "Konrad, Martin" <[email protected]>
To: Christian Pauly <[email protected]>, EPICS Tech Talk <[email protected]>
Date: Wed, 2 Oct 2013 01:00:23 +0000
Hi Christian,
> Now i want to add one more thing: Before the scan starts, i have to
> start the DAQ system with a certain BASH shell-script, after the scan i 
> have to stop the DAQ with another shell script.
Hmm, this does not really seem to be the cleanest way to do this. But
here are some ideas:

1. Use subroutine record [1] to execute a short C function including a
system() call running bash.
2. Use sequencer [2]. You can use C code in state notation language.
Again a system() call should do the job.
3. Modify the other end (your DAQ) to add a Channel Access server. This
way you can switch your DAQ on/off as well.

Cheers,

Martin

[1] https://wiki-ext.aps.anl.gov/epics/index.php/RRM_3-14_Subroutine
[2] http://www-csr.bessy.de/control/SoftDist/sequencer/

-- 
Martin Konrad
Control System Engineer
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]


Replies:
Re: how to issue a shell command from EPICS record ? Pavel Maslov
Re: how to issue a shell command from EPICS record ? Dirk Zimoch

Navigate by Date:
Prev: Re: A question regarding sequencer compatibility Benjamin Franksen
Next: RE: agenda for the EPICS users' meeting Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: how to issue a shell command from EPICS record ? Johnson, Andrew N.
Next: Re: how to issue a shell command from EPICS record ? Pavel Maslov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·