12-16-2011 10:34 AM
My program does the following: in the first sequence the ‘for loop’ is used to control a traverse, and data is being collected during each iteration (i.e. microphone data is taken at each location of the transverse).
The second sequence does “some manipulation” to the testing medium. In the third loop data is collected again while moving the traverse (different path than on the first loop).
I want to plot the data as its being collected (i.e. for each iteration of the ‘for loop/s’), but plot the data from the first and third sequence loops on the same chart. I couldn’t figure out how to do this plotting outside the ‘for loop/s’.
Thanks for the help!
12-16-2011 11:57 AM - edited 12-16-2011 12:01 PM
I think you're describing the Producer-Consumer design pattern.
The two producer loops enqueue data when they run and the consumer loop operates on it.