07-28-2009 01:47 PM
Saying I have A.vi and B.vi, A called B. I want to display a waveform in A and B is collecting data in a while loop.
The question is how the waveform is updated in real-time when B is running? I tried global variables but looks like A.vi is not in thread when calling B, so the data can't pass to A in real-time.
Any suggestions?
Solved! Go to Solution.
07-28-2009 02:04 PM
You will want to search for "Producer/Consumer" for info on that design pattern. It consists of a Producer that shares data using an Action Engine or a queue to pass the data between the threads.
Another approach could make use of a control reference to the waveform display (chart or graph) and use "the "Vlaue" property to write to the display in a manner SIMILAR to just writing to the terminal.
Ben
07-28-2009 04:25 PM