LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to add elapse time to stop displaying chart in labview?

Isit possible to add in elapsed time function to  stop chart from displaying after 20seconds?

0 Kudos
Message 1 of 5
(3,329 Views)

I am not clear what you mean by your question, but if you want to have a chart stop updating (you said "displaying", but I'm assuming you don't want the chart, itself, to vanish).  All you need to do is to stop writing to its indicator.  There are a variety of techniques (including using Elapsed Time, though that is a function I have yet to use, myself) to do this.  

 

Write a little demo program where you generate random numbers 10 times a second, and see if you can display only the first 20 seconds, using Elapsed Time to "disconnect" the Chart from the random number generator.  If you are still having trouble, post your code (by attaching your VI, not a picture of it) and we'll help.

 

Bob Schor

0 Kudos
Message 2 of 5
(3,316 Views)

@JiaLuo08 wrote:

Isit possible to add in elapsed time function to  stop chart from displaying after 20seconds?


Do you have a fixed sample rate for your signal?

 

If so, you just need to set the history length of the chart to be 20 seconds worth of samples (20 second * F Samples/second).

 

If not, then you will need to change to an XY graph and keep your own history with shift register.  Any sampled older than 20 seconds should just be removed from the array.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,285 Views)

I've tried adding the elapse time, however have no clue how to link it to the chart. I will be displaying the chart remotely using iPad NI dashboard through NI myRIO, how do I just remotely run the program without having to on my labview and run the program?

0 Kudos
Message 4 of 5
(3,267 Views)

Hi Crossrulz, i'm new to labview and just started exploring the functions in it. The signal comes from a current sensor. How do i set the history wit shift register? I've attached the file.

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