Hi YX Liang,
The easiest way to do this the first time is to use the sscan record - the documentation for this is here http://www.aps.anl.gov/bcda/synApps/sscan/sscanDoc.html.
In more detail you need to have a client that supports the Channel Access put_callback mechanism. This is the same as a normal channel access put, but only returns after all processing is finished (i.e. motor has finished moving or detector has finished exposing). If your detector is supported within areaDetector framework you have a bit more flexibility - if you use blocking callbacks to write the file the ca_put_callback will finish after the file is written, and if you use non-blocking callbacks ca_put_callback will finish at the end of the exposure, but before the file is written.
Cheers,
Nick Rees
Principal Software Engineer Phone: +44 (0)1235-778430
Diamond Light Source Fax: +44 (0)1235-446713
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of ???
Sent: 27 January 2015 08:18
To: tech-talk
Subject: how to control in sequence
Hi everyone,
I could independently control two devices (motor and detector), I intend to make them action in some sequence(just like: motor move 2 setps then detector 2 seconds,and then and then).
I don't know how to implement these and I get in touch with epics for a little time. Could you please offer me an example which I could study or some other help. Any advice would be helpful.
p.s. I use CSS as the OPI.
Thank you
YX Liang
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
- References:
- how to control in sequence 梁雅翔
- Navigate by Date:
- Prev:
caQtDM Mezger Anton Christian (PSI)
- Next:
Re: setting interpreter in EPICS Guy Jennings
- 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
- Navigate by Thread:
- Prev:
how to control in sequence 梁雅翔
- Next:
caQtDM Mezger Anton Christian (PSI)
- 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
|