06-27-2018 11:27 AM
I want to collect the data at 1000 samples/sec for at least 6 minutes using DAQ assistant and writing the data to a .lvm file or .txt file which I am able to do correctly. Then later on using another code on LabVIEW I am reading the 6 minutes of data to process it further and play it on front panel while collecting the real-time data. I am storing the 6 minutes read data and the current data to .lvm file or .txt file. When I am trying to do this the display of the data is becoming really slow. But the data is correctly written to the file. How to avoid this problem. I know that if I compromise on sampling rate I can get over this problem. But is there any way to get over the problem without changing the sampling rate.
Thank you in advance.
07-02-2018 09:42 AM
How quickly does your graphics card and monitor update? You are experiencing buffering on your screen. Also, if your code reads back and builds the array on-the-fly, then it will take longer as each data point added to the array requires a new memory location to be established. Try to allocate the necessary memory size prior to reading the file (1000 samples/second * 6 minutes * 60 seconds/minute) then using a loop, place the data in the proper spot in that array.
07-02-2018 11:55 AM
Hi,
Thank you for your reply.
How would I find out the speed of the graphics or the monitor speed?
In my program I am sequentially doing the following. In first sequence loading the data from .lvm file and copying that to an initialized array of the size of the data to be transferred. Then I using the initialized array for plotting the points. But after that only the display is being slow.
07-05-2018 12:56 PM
Previously I was displaying 10000 data points on the graph and collecting the data at 1000 samples/sec. But when I displayed 6000 data points on the graph while collecting the data at 1000 samples/sec the speed did not get affected for longer time but not 6 minutes. Does any one have any idea on how to improve it further. I can not go less than 6000 data points on the graph.
Thanks in advance.
07-06-2018 09:03 AM
How about attaching your vi?
07-06-2018 11:48 AM
My program reads the already recorded data at 1000 samples/sec and reads it. Then it displays the already recorded data with realtime data and stores it in a .lvm file. My vi works fine for 500 Sample/sec but doesn't for 1000 Samples/sec.