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: 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
Or you can use asynSSH module [1] from Observatory Sciences.



Regards,
Pavel Maslov, MS

oPAC fellow at Cosylab


On Wed, Oct 2, 2013 at 3:00 AM, Konrad, Martin <[email protected]> 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/

--
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 ? Christian Pauly
References:
Re: how to issue a shell command from EPICS record ? Konrad, Martin

Navigate by Date:
Prev: EPICS Device Support for PowerPMAC, Attocube and SSH Philip Taylor
Next: Re: how to issue a shell command from EPICS record ? Dirk Zimoch
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 ? Christian Pauly
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 ·