LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

show data on chart after specfic interval

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.

 

0 Kudos
Message 1 of 6
(3,444 Views)

Hi RaiH,

 

i want to make VI that show data…

Ok. And what hinders you from doing so?

 

This forum works best when you ask for specific problems. And even more when you supply a VI.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,440 Views)

I try this,but i face a problem that,during comaprison the time dont get increment.

0 Kudos
Message 3 of 6
(3,435 Views)

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.

0 Kudos
Message 4 of 6
(3,385 Views)

you have to code like this vi 

0 Kudos
Message 5 of 6
(3,367 Views)

@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.

0 Kudos
Message 6 of 6
(3,356 Views)