LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting waveform chart outside for loop

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!Untitled.jpg

0 Kudos
Message 1 of 2
(2,604 Views)

I think you're describing the Producer-Consumer design pattern.


PC.png

 

The two producer loops enqueue data when they run and the consumer loop operates on it.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 2
(2,594 Views)