05-20-2016 01:31 PM
In labview,i want to make VI that show data after specific interval(1 min) and again data become zero and after 1 min show sum of data on chart.
05-20-2016 01:41 PM
05-20-2016 01:54 PM
I try this,but i face a problem that,during comaprison the time dont get increment.
05-23-2016 11:06 AM
I would use tick counts and sequence structures to calculate the elapased time. You can then use this elapsed time for the comparision. Other than that I am not really sure what you are trying to ask for.
05-24-2016 02:53 AM
you have to code like this vi
05-24-2016 07:53 AM
@dgriffin91 wrote:I would use tick counts and sequence structures to calculate the elapased time. You can then use this elapsed time for the comparision. Other than that I am not really sure what you are trying to ask for.
This is a particularly bad idea when you consider the time we are looking at here. If we use your option, the sequence structure is going to run once started. If you add your minute wait to the sequence structure, you can't stop your program for the minute. That's poor development.
You want to take a look at something along the lines of state machines. You can build up the data for a minute through states and then display the data in another. This also provides you the ability to clear out the chart to 0 (for whatever reason the original poster has).
You'll probably have more success with the graph than the chart. Charts take single points at a time adding it to the data you already have. Graphs will display the array of data you give them. This sounds easier to work with. If you're really stuck on using charts, take a look at deferring front panel updates. Everything will be updating in the background but the front panel won't be redrawn. This also has the same problem as above. The front panel won't update to respond to you for the minute. You're really better off moving to the graph.