LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph doesn't appear until cycle is complete

Hey everyone,

This is probably a bit of a daft question, but it's something that I can't seem to resolve.  Anyway, if I'm using a loop (say, a FOR loop) and building an array of resulting points (one column might be the iteration number, and the other could be the result of each iteration) I simply cannot get the graph to display anything until the END of the sequence.

I'd really like to view each data point as it is output from my loop - any ideas as to where I'm going wrong?

Thanks in advance!
0 Kudos
Message 1 of 3
(2,491 Views)
Your problem probably lies in the fact that your graph indicator is outside the loop.  Build the array inside the loop and wire it to the graph in there.  If you still want the data saved you can keep the indexing output of the loop and use the data after the sequence is complete.

However I can't say any of this for sure without seeing your vi.

Hope it helps!
0 Kudos
Message 2 of 3
(2,490 Views)
You could also just put a chart inside the for loop. The chart is designed for point by point updates. Also, you wouldn't need to do a build array inside the for loop. If you need the array of data later, just wire it out through the for loop and an array will be automatically created.
0 Kudos
Message 3 of 3
(2,482 Views)