Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying 1000 S/s data without affecting speed of display

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.

 

 

0 Kudos
Message 1 of 6
(2,639 Views)

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.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 6
(2,597 Views)

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. 

0 Kudos
Message 3 of 6
(2,589 Views)

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.

0 Kudos
Message 4 of 6
(2,566 Views)

How about attaching your vi?

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 6
(2,548 Views)

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.

0 Kudos
Message 6 of 6
(2,542 Views)