04-27-2007 05:35 PM
04-27-2007 06:06 PM
04-30-2007 05:32 AM
Hi,
Teorically if you create the cahrt and set the history length to the number of samples u want to see that is enough.
Labview is able to manage those vectors and as much as u want so that should not be a problem.
If you ar using a chart that would be the best way (just introducing the histroy length). If you are using arrays you should create and initialize an array of that size and just change the values you want to. Otherwise you can get into memory problems due to the fact that the array size is not reserved and everytime you add a new position a new array should be created.
Then...
1. Using charts just define the history length.
2. Using arrays use the initilize array function to determine the size of your data array.
Hope that helps,
04-30-2007 06:18 AM
First of all, you can reduce the amount of memory needed by setting the chart history length to 17,280. That's because you are only writing every 5 seconds, so that would be the number of points you need to cover the last 24 hours. Set the Multiplier property to 5 and the chart will know that you are adding data every 5 seconds.
Second, your 4 charts put together should take less than 3 MB of memory. That should not hurt your computer that much.
My guess would be that you are trying to display too much data. You can't really display 17,000 or 86,000 on your screen because the display is usually only 1000 to 2000 pixels wide. You can either set the display itself to show only X points and use the scrollbar or only plot data once a minute or something similar and then set the history length to be even shorter.
04-30-2007 10:57 AM - edited 04-30-2007 10:57 AM
Message Edited by smercurio_fc on 04-30-2007 11:01 AM