Hi Yan Fen,
With the scan configuration you have described, the sscan record is
causing the 'mca' record to acquire data (and, thus, controlling
*when* this happens), but it is not causing the 'ADC' record to acquire
data. So the 'ADC' data might be acquired before or after the 'mca' data,
depending on when it was told to process. All the sscan record is doing
is reading the ADC's most recent acquisition.
The order of operations, in this case, is
move motor
trigger scanH
trigger mca (and wait for it to finish acquiring)
read mca
read motor, ADC, and DAC
You can get tighter coordination of the acquisition times by
setting the 'ADC' record's SCAN field to "Passive", and having the
scan1 record tell it when to process. You would do this by
setting, say, scan1.T2PV to ADC.PROC.
Tim
闫芬 wrote:
> Hi everyone,
>
> I set up a 2-D scan as follows:
>
> scan1 record: Drive is X motor VAL field, trigger is scanH.EXSC field. I
> set its detectors to be ADC.VAL, DAC.VAL and so on.
>
> scanH record: No positions. Detector trigger is the field for starting
> MCA. The detector is mca.VAL which is the array .
>
> Now, I want to save the ADC.VAL, DAC.VAL and mca.VAL at the same time.
> But I can't get it. I find the data of ADC is later than the data of mca
> evenif I set scan1.DDLY as 0. So please tell me how to gain the float
> data and the array data at the same time.
>
> Thank you!
>
> Best wishes.
>
> Yan Fen
> ===================================
> Yan Fen
> Shanghai Synchrotron Radiation Facility
> Shanghai Institute of Applied Physics
> Chinese Academy of Sciences
> Zhangheng Rd 239,Pudong Dist.,
> Shanghai 201204
> China
> Tel:+86-21-33933191
> ===================================
--
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.
- References:
- How to get array and float at the same time by sscan 闫芬
- Navigate by Date:
- Prev:
How to get array and float at the same time by sscan 闫芬
- Next:
where to download elog? Silver
- 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 get array and float at the same time by sscan 闫芬
- Next:
where to download elog? Silver
- 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
|