LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

optimizing array handling for analog output in Labview

I have acquired large amounts of data that have been saved as wav files. Now I must open these wav files and build a 2d array so that I can output these values to a pci-6733 analog output board. I've tried a couple of different methods, but neither produce the results I want. If I put my code is a loop, I end up with a signal that occasionally flat lines even though I am double-buffering. If I open the files and build the aray, and then output the data, the resultant output is continuous, but the time it takes to assemble the data into the array is unacceptable. I've heard that the build array function is slow, so I've also tried initializing my array then replacing an array subset, but this is still too slow. Does an
yone have any suggestions as to how I can handle this?
0 Kudos
Message 1 of 3
(2,583 Views)
Hello,
Unfortunately, what you are seeing is a limitation on the building arrays in combination with a limitation on the time it takes to build the array with the rate at which you are trying to output data. It doesn't sound like you are having problems having room compiling the data into an array which is a problem that could be alleviated with more RAM. Other than that, there really isn't a quicker way to compile that data into array other than what you are already trying.

Steven
0 Kudos
Message 2 of 3
(2,583 Views)
I'm sorry to hear that. My system has 256M RAM, and although I thought of increasing it, I thought that would only slightly improve my situation. Everything I've read on array handling and tried to implement to date hasn't worked the way I would have hoped. It seemed so inefficient, that I thought my implementation needed improvement. I guess I'll have to try something else. Thanks for the info.
0 Kudos
Message 3 of 3
(2,583 Views)