LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PC gets loaded when trying to display large data in graph

PC gets loaded when i try to display large data in the graph, the shift register holding the data eats up all my virtual memory ,so my pc gets hangs,any ways to refresh the virtual memory using labview. The chart also cannot be replaced.
0 Kudos
Message 1 of 7
(3,194 Views)

Depending on your system's hardware specs, assign the maximum possible size for the Virtual memory.

u can set this form:  My computer-> properties -> advanced-> performance options -> Virtual memory. and set it to an optimal value.

Bu, this again depends on your system's memory specs.

Also, see if you can do some data decimation or some effecient data reduction to reduce the number of points wihtout compromising on the characterstic of the graph you want to plot.

Hope this hepls

Regards

Dev

 

 

0 Kudos
Message 2 of 7
(3,185 Views)
For managing large data sets :

http://zone.ni.com/devzone/conceptd.nsf/webmain/6A56C174EABA7BBD86256E58005D9712






0 Kudos
Message 3 of 7
(3,180 Views)


@Bharani wrote:
PC gets loaded when i try to display large data in the graph, the shift register holding the data eats up all my virtual memory ,so my pc gets hangs,any ways to refresh the virtual memory using labview. The chart also cannot be replaced.


Could you explain your program in a bit more detail, maybe even attach some sample code?.
  1. How large is "large"?
  2. Where does the shift register get the data from? Are you growing an array in a loop? How fast does the loop run and how big does the array get?
  3. You want to replace the chart with what, exactly? What prevents you from replacing it?
  4. How big is the chart history buffer?
0 Kudos
Message 4 of 7
(3,181 Views)
The data size is appox 200 MB or more. The data is acquired in I32 format and store in file. During the playback , the file is read according to the sampling rate, converted to ascii ,send to Daqmx write and Graph simultaneously. In graph portion, the array holds(using shift register)  all the data in the graph.This holding the data loads the PC.Is there any way to refresh the virtual memory using labview.
0 Kudos
Message 5 of 7
(3,166 Views)


@Bharani wrote:
The data size is appox 200 MB or more. The data is acquired in I32 format and store in file. During the playback , the file is read according to the sampling rate, converted to ascii ,send to Daqmx write and Graph simultaneously. In graph portion, the array holds(using shift register)  all the data in the graph.This holding the data loads the PC.Is there any way to refresh the virtual memory using labview.

Is there really a good reason to send 200MB worth of I32 data to a graph? NO! Your graph most likely does not have more than about 1000 pixels across! 😉

Most likely, you have multiple copies if the data in memory. Do you convert the entire 200MB data to ASCII or each data point as needed? Have you done some profiling? What is the memory usage in "VI properties..Memor Usage"? Do you use local variables?

Your best bet would be to analyse you code to optimize memory usage, avoid data copies, etc. Please attach you code so we can give some advice.

0 Kudos
Message 6 of 7
(3,160 Views)
No , i am not using any local variables or indicators other than the graph in fornt panel.I am sending u block diagram and front panel jpg files.
Download All
0 Kudos
Message 7 of 7
(3,155 Views)