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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: how to issue a shell command from EPICS record ? |
From: | Pavel Maslov <[email protected]> |
To: | "Konrad, Martin" <[email protected]> |
Cc: | Christian Pauly <[email protected]>, EPICS Tech Talk <[email protected]> |
Date: | Wed, 2 Oct 2013 12:00:50 +0200 |
Hi Christian,
> Now i want to add one more thing: Before the scan starts, i have toHmm, this does not really seem to be the cleanest way to do this. But
> start the DAQ system with a certain BASH shell-script, after the scan i
> have to stop the DAQ with another shell script.
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]