LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display array data on xy graph slowly

Solved!
Go to solution

hello

 

I am simulating a stress/strain curve running on an xy graph.

 

I have an 2d array of data to display on a xy graph. When i hit the play button, i would like it to first show nothing on the graph and slowly you can see the curve move upwards first starting from the XYpoints and running all the way to the end over a time of roughly 10 seconds. How do I do this?

 

I have attached a vi of what i have done so far. It will straight away plot immediately the whole curve. But i would like to see it curve move slowly upwards instead. I've tried adding a time delay in the loop but it just waits the duration of the delay and straight away the entire curve is displayed. 

 

Also and if i need to have the display XY graph empty first as i noted that if i rerun it, it still showing the curve from previous run.

 

 

thanks,

BP

0 Kudos
Message 1 of 5
(3,371 Views)
Solution
Accepted by topic author BPBP

Try screenshot

Download All
Message 2 of 5
(3,351 Views)

that works great. Thanks KateB!

0 Kudos
Message 3 of 5
(3,320 Views)

You can keep things much simpler if you use complex numbers. Here's a quick example (8.6).

 

 

 

 

Download All
0 Kudos
Message 4 of 5
(3,309 Views)

And if you want to avoid memory thrashing due to the constant dataset resizing, Here's another possibility.

 

Modify as needed.

 

 

 

Download All
Message 5 of 5
(3,298 Views)