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: Dirk Zimoch <[email protected]>
To: [email protected]
Date: Wed, 02 Oct 2013 13:43:23 +0200
StreamDevice. It has an exec command.


On 02.10.2013 03:00, Konrad, Martin wrote:
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/



References:
Re: how to issue a shell command from EPICS record ? Konrad, Martin

Navigate by Date:
Prev: Re: how to issue a shell command from EPICS record ? Pavel Maslov
Next: Modbus R2-5 available 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 ? Konrad, Martin
Next: Re: how to issue a shell command from EPICS record ? Konrad, Martin
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 ·