MATLAB: Image acquisition using multiple timers.

image acquisition

Hello,
I am working with MATLAB for continuous aquisition of images of a sedimentation system. As I need to capture the sedimentation rates, I need for the images to be captured at different time rates. I wondered whether I could use multiple timers in the same programme which work at different time rates to capture the images. How do I put successive timers in the same program? Any help in this regard will be appreciated. Thank you!!

Best Answer

Gerd's answer looks workable. I wonder, though, why you are using multiple timers for that case? If you only need one timer at a time, why not use a single timer and at each point set() its timeout as appropriate? There are various different ways you can keep track of which "state" you are in.