 sdkpark
		
			sdkpark
		
		
		
		
		
		
		
		
	
			08-03-2011 03:00 PM
hey all,
i was just wondering if there is a way to update graph while allocating space for the array so it will be more efficient computing.
the method i always used was build array in a while/for loop and a build array that concatenates and have a graph attached inside the loop. it seems to be slugging my the computer because it takes a long time for labview to open any other programs afterwards.
my question is, is there a way to allocate space AND have the graph update every time? i know i can initialize an array and replace elements in the array, but then my graph is padded with zeros. any help is appreciated. thanks in advance!
Solved! Go to Solution.
 taper
		
			taper
		
		
		
		
		
		
		
		
	
			08-03-2011 03:19 PM
If you initialize your array with NaN instead of 0 you won't have visible padding in your graph.
You might also want to look to see if a Chart fits your needs better than a Graph. Charts have built in buffers and display the x most recent values. You can change the buffer size.
08-03-2011 04:56 PM
wow thank you very much. i didn't know you can allocate with NaN. works perfectly, thank you!