01-12-2012 11:13 AM
I have a subvi that collects data in batches and displays the batch in a waveform graph. Then I make this waveform graph as output and call it in the main subvi to display the graph. The problem is that in the subvi the graph refreshed at each batch and plots the batch (which is how I want it to behave) while in the main vi it does not display anything.
01-12-2012 11:53 AM
01-13-2012 07:46 AM
But I call the subvi inside a while loop in the main vi which should have given me the output of each subvi each time the loop is executed. Instead I get nothing.
01-13-2012 07:56 AM
Post images of the sub-VI being called AND the sub-VI as well.
We should be able to help you once we see those screen shots.
But lacking those images, my money is on Christian's theory.
Ben
01-18-2012 08:38 AM
I am attaching sceenshots of the mani and sub VI.
01-18-2012 09:03 AM
Your indicator is outside the while loop, so you wont get anything until the while loop finishes!
Also your subVI is inside a case structure, the output of which is set to 'default if unwired' (which means empty array) so anytime your case structure is true, your values will be wiped. If this is intented, please excuse me.