From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I display a constant 1 hour of data in my VI

I am currently designing a VI which reads data from a spreadsheet which is being updated from another source.

 

I currently have my VI reading the information and displaying it on waveform charts.

I have 13 sample points each of which has a chart of its own. I wish to plot the data and be able to review it whilst it is running which is not a problem as I have activated the scroll bar function within the chart.

 

Now the task I wish to achieve next is to only have a certain amount of history data to review eg 1 hour of data.

So if I have been running the VI for 8 hours there will still only be the previous 1 hours data to review.

 

Can anybody help with how to achieve this? Has anybody else needed to do anything like this?

 

Thanks in advance

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

Hi n_,

 

reduce the history length of the chart (at edit time)!

 

Or use your own data buffer and graphs. Display only the data you wish to display…

Best regards,
GerdW


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

Hi,

 

Would this not keep all of the data plotted stored in memory somewhere? I wish to use this to monitor a process constantly over years and so dont want to kill the computer which it is running on Smiley Happy

 

thanks

 

Nathan

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

Hi n_,

 

Would this not keep all of the data plotted stored in memory somewhere?

That depends on how you created/control those buffers…

 

I wish to use this to monitor a process constantly over years

So you need to limit the history length of your charts or use your own buffers…

(When it needs to run for "years" you should NOT use a Windows PC and you should stay away from any BuildArray function.)

Best regards,
GerdW


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

Im affraid I have to use a windows PC.

 

I dont know another way to produce the charts I want without arrays to collect the data from.

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

Use arrays, shift registers, and graphs (not charts).  Initialize the arrays to the proper size and use "replace array subset" this will help avoid windows memory errors which can occur when the build array function is used for a long period of time.

 

To simplify the process of deleting the oldest data point and inserting the newest, use Rotate 1D array in conjunction with Replace Array Subset.  

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