LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Periodic writing to graph

Dennis,

The problem is that everything I have done and all the examples I have found do the acquisition only then they plot the information to the screen.  I want to do a 10:30 (10.5 minute) capture at half second intervals and I want the data points to show on the graph as they are recorded.  The first data point should be near the left most origin (00:00) and the second one would appear in the pixel column to its right, so on and so forth.  The graph should not scroll because the scrollin plot is too hard to follow - what has already been plotted does not move new points extend the plot line to the right..

I have written more of the description to David.

Raymond
0 Kudos
Message 11 of 18
(1,527 Views)
Thanks, I appreciate your more detailed description.
 
You have described the vi that I have given to you. The XY graph needs to be a cluster of x-array and y-array. I am appending a single (X,Y) point to the previous data plotted then presenting the overall data set to the XY graph indicator. The XY graph indicator is refreshed every 0.5 seconds.
 
David
Message 12 of 18
(1,525 Views)
David,

Something is not setup right on my computer because that VI acts like this;
Number of Measurements was set to 50
Delay is 1 second
Nothing happens for 49 seconds then all the information is plotted.

I want it to plot each number the random number generator produces every second on the second.

Raymond
0 Kudos
Message 13 of 18
(1,518 Views)
The example called XY Chart does exactly what you want if I understand correctly. You just need to change the data that is being written.
 

Message Edited by Dennis Knutson on 10-23-2006 10:54 AM

0 Kudos
Message 14 of 18
(1,514 Views)

Whoops, wrong vi Smiley Mad  I based this on an example and fell into the File -> Save As trap and modified the one in the examples folder.

Here is the right one

Sorry about that

David

Message 15 of 18
(1,510 Views)
Thank you David,

I will build around that.

Dennis, I will study your example but I require a cursor to measure elapsed time which apparently is not possible to use in charts.

Raymond
0 Kudos
Message 16 of 18
(1,502 Views)
The example I mentioned doesn't use a chart. It uses an XY graph. Open the example I mentioned and take a look.
0 Kudos
Message 17 of 18
(1,498 Views)
David,

Sorry that should have been 5 stars.  I'll rate another message.

Raymond
Message 18 of 18
(1,481 Views)