06-09-2006 03:43 PM
06-09-2006 04:08 PM - edited 06-09-2006 04:08 PM
Watch your memory usage!
That data has to be somewhere.
Ben
PS NIOSH
Did you by any chance attend any of my presentations?
Message Edited by Ben on 06-09-2006 04:10 PM
06-09-2006 06:44 PM
06-12-2006 08:56 AM
06-12-2006 10:05 AM
I'll refer you to the diagram screen shot I posted earlier in this thread as to how the daq loop is running.
To do what I explained above, stream data to a chart (using waveform data) and set the chart history length to give you, say 10 seconds. With autoscale ON for the x-axis you will get a 10 second window. If you turn autoscale OFF and manually edit the x scale minimum value you can create a window longer than 10 seconds and it seems to plot fine.
I note it more as a curiosity than an issue becuase I'm not retrieving any data from the chart history.
Cheers,
06-12-2006 10:49 AM
I am curious about your experience as well. When I try to reproduce your issue, autoscaling does act as you explained. I can view ten waveforms of data and the waveform chart automatically resizes to fit all ten waveforms. When I turn off the x autoscaling and decrease the x scale minimum value I see only blank space. So the waveform chart acts as predicted and only stores ten waveforms at a time.
I have also tried to reproduce the issue running the VI several times with different t0 values each time. Still, it appears to me as if each time the VI runs the waveform chart is displaying only information from the last 10 waveforms passed to it.
Let me know if you have any more information that might enable me to reproduce what you are observing.
Casey Weltzin, National Instruments
06-12-2006 01:24 PM
Ok, I worked up a quick VI. Doing what I said above, works on this VI on my machine. Hopefully you can replicate it.
Cheers,
06-12-2006 02:17 PM
Thank you for the example code, I was able to reproduce your issue exactly. Here is what I think is happening:
The waveform chart can only store 10 waveforms in it's data buffer, but the chart front panel display itself does not refresh when the data buffer begins to erase waveforms and store new ones. As you said earlier, the waveform chart will show more than ten waveforms with your example. However, if you make the x scrollbar visible and attempt to scroll (forcing the chart to refresh), you will only be able to see the ten waveforms stored in memory.
I hope this helps.
Casey Weltzin, National Instruments
09-16-2011 11:15 AM
See the attached picuture (it's chart history length is set to 1)
If one of the knights would finish this with their synopsis of the problem or issue. I set my chart history length to one, and can see no difference from when its set to any other number. I'm addressing this issue because I was setting my chart length to 1M and it was banging out 700MB of memory when it populated the chart with the data.
Does 2011 have an issue with waveform charts?