Hello dear colleagues!
Thanks for your support, I ask you still to help to understand the following:
How correctly to supervise on/off of Fetch function? (An example of that what I did already, please see the enclosed file).
I.e. I explain conditions: it is necessary for me start/abort Fetch cycle on boolean control, i.e. then when it is necessary.
And one more condition I wish to adhere Fetch cycle at least approximately by 1st second (in my example and it turns out).
Further, it agree my example, I consider quantity of second cycles and accordingly I understand, that Fetch have accepted so much that data for so much that seconds. Boolean control is in position true a certain interval, from 1st till 100 seconds.
The postprocessing cycle (detecting of peaks) lags behind a fetch cycle for 1 second approximately.
My example works, but it is not always correct (as it seems to me), i.e. sometimes fetch works once again than it is necessary, or on the contrary it is less.
I consider, that where that in a code I have broken sequence Fetch and Abort.
I ask you to correct a code as consider it necessary (there it very little).
In other words, I need somehow programmatically to distinguish, that postprocessing of a current interval of gathering (from 1st till 100 seconds) stopped and to make by this criterion some actions.
I don't want to use any timers, there can be a turn/semaphores or new queue, etc. will help??
Sorry for my English. Please, advise me.
Message Edited by Current 93 on 11-17-2009 06:04 PM