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  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Synchronization and saving frame rate
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Matteo C. <matteo603 at hotmail.it>
Cc: tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 29 Apr 2020 14:39:00 +0000
Hi Matteo,

I cannot tell you how to do this for the Picoscope, but for the areaDetector camera you can do the following:

- Set the NDPluginProcess to get its data from the camera.
- Enable the Process plugin and set the recursive filter to Average, Auto reset=Yes, N filter=10,  Filter callbacks "Array N only", as shown in the attached screen shot.
- Set your file plugin to get its data from the process plugin.

Now you will be saving the average of every 10 frames. There is not really a way to set it to do the averaging for 1 second rather than N frames.  You could approximate that logic by having a calc record compute N from the current camera frame rate.

Mark




________________________________
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Matteo C. via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, April 29, 2020 9:20 AM
To: tech-talk
Subject: Synchronization and saving frame rate

Hi everyone,
hope you are all safe and sound.
I need some help to solve a synchronization problem using Areadetector and its Plug-ins.
We would need to get different pieces of data from a camera and a Picoscope (Oscilloscope). The idea is to get data from the Picoscope and the average of the image at a certain rate, and the image itself at a 10th of this rate. I was wondering if there's an option to save via JPEG or HDF5 (which take care also of the time synchronization of the two) at different rates than the rate acquisition of the StdArray: for example if the frame rates of the camera and the Picoscope are at 10frames/s (we want an image for every second, and we want 10 sample of picoscope/average image per image), the image is saved every second and the picoscope/average of image 10 times per second. The reason is that we do not need that many images but mainly we are interested in the Picoscope and image average and we want to save some space.
Thank you,

Kind regards,
Matteo Ciarchi

Attachment: NDPluginProcess.png
Description: NDPluginProcess.png


References:
Synchronization and saving frame rate Matteo C. via Tech-talk

Navigate by Date:
Prev: Synchronization and saving frame rate Matteo C. via Tech-talk
Next: Re: Synchronization and saving frame rate Bruno Martins via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Synchronization and saving frame rate Matteo C. via Tech-talk
Next: Re: Synchronization and saving frame rate Bruno Martins via Tech-talk
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  <20202021  2022  2023  2024 
ANJ, 29 Apr 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·