01-04-2009 08:29 AM
The attached vi is trying to collect signal from DAQ 9229(USB Casing).
4CH simutaneously, 10 seconds, 50k/s/CH
The data volumn seems not large, but the program runs and seems almost hanging there.
I wonder if any thing wrong in programming. Thanks.
Solved! Go to Solution.
01-04-2009 10:13 AM
01-04-2009 04:40 PM
Don't know why but I had some trouble openning up the VIs.
could you post a ZIP file of the file folder it and it's sub VIs are located in?
01-04-2009 11:12 PM
Actually the program can run, but the performance not good, will slow down the whole windows and hang there.
And I will cost 1.3G memory. How to improve it?
Zip files attached again.
01-05-2009 12:53 AM
Turbot,
I have removed all the DAQmx stuff, and replaced the acquisition step with the attached simulation VI, that generates the same amout of data at the same rate. I don't see any problem with your application (apart the fact that the diagram is terribly large ! ;)). The memory foot print is perfect, and correspond to the amount of data generated.
So there is apparently nothing wrong with your program. You'll have to concentrate on the acquisition step...
Hope that helps.
01-05-2009 01:26 AM
FIrst your plain data is 12 MB.
Then you split the data from the analog read (2*12 MB)
You store 4 queues with data.
Inside the lower while loops you have data in the shift register. You use a build array from the queue data, there the data duplicates again, I would try to rewrite the software trigger for 1D data.
I would remove the Express VIs with signal analyzing VIs.
Express VIs are not made to be memory efficient, they just work.
Try converting them to normal VIs and optimize them.
What's the use of the shift register with the boolean?
You don't need any of the wait xx ms functions.
Ton
01-05-2009 07:45 AM
turbot wrote:Actually the program can run, but the performance not good, will slow down the whole windows and hang there.
And I will cost 1.3G memory. How to improve it?
Zip files attached again.
If you have less physical memory than you have virtual memory in use, the perfomance will suck.
Do you have more physical than virtual memory? If not add memmory as the simplest solution.
Ben
01-05-2009 08:59 AM
01-05-2009 07:54 PM