LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems sampling at a high rate

Hi!I am using a PCIMIO16E1 board and the continuousacq to spreadsheet file vi. I am sampling 7 channels. The 7th channel requires a high sampling rate of around 10,000. I am processing my data vis matrix multiplication in a for loop. I am reading data twice, before and after processing in two different files. When sampling rate is set at 10,000 my program hangs. When i decrease it to 5000 it seems to work fine. However at times when i run, it has problem reading the spreadsheet file and gives me AI Read error. When i ignore it and press the run again, it executes it smoothly. Anyone can help me with this bug? I still can't get it to sample at 10,000.
Thanks!
0 Kudos
Message 1 of 2
(2,527 Views)
It sounds like the analysis and writing to file is bogging down the CPU. Do you ever receive the AI Read Error when acquiring at lower sampling rates?

Whenever you are performing other tasks (analysis, writing to file, etc...) while acquiring data, you are likely to overwork the processor and run into errors. You are probably going to need to eliminate some of the analysis you are doing or decrease the amount of file I/O you are performing to acquire at a higher rate.

There are also high-speed datalogging examples that you might want to take a look at. I've included a link to an example program below that shows how to make file I/O more efficient with data acquisition.

High-Speed Data-Logging VIs
http://sine.ni.com/apps/we/niepd_web_display.display_epd4
?p_guid=B45EACE3EE4756A4E034080020E74861&p_node=DZ52303&p_source=External

Regards,

Todd D.
NI Applications Engineer
0 Kudos
Message 2 of 2
(2,527 Views)