Re: not enough memory to plot wav. file



I did not mean you should down-sample the signal.
Here is what you can do,
1) Pick 250 points,
2) Find max and min of these 250 points, append them to a Max Array and a Min Array.
3) Pick next 250 points
4) Repeat steps 2) and 3) until the end of the signal is reached.
5) plot out the Max and Min arrays at a sample rate of 1kHz, which is the envelop of your signal.
Hope this helps
 
Ian
 
 
.



Relevant Pages

  • Re: Is this really a better way of optimizing memory?
    ... ArraysLabVIEW stores arrays as handles, or pointers to pointers, that contain the size of each dimension of the array in 32-bit integers followed by the data. ... But that is only talking about how the data is organized in memory and does take into concideration what LV is doing with that data and also draws a very fine line between THE CLUSTER adn the DATA IN THE CLUSTER. ...
    (comp.lang.labview)
  • Re: Reference to array element
    ... You are passing the reference of that array to the readXMLValue.vi. ... You're then passing one element to the vi.  But you have access to all the elements within the vi because of the reference. ... If I understand correctly, you want to extract an element from the string array, change it and then replace the original one in the array. ...
    (comp.lang.labview)
  • Re: General Advice on my Labview project
    ... I'm not really into DAQ, so I'll just make some notes about the style. ... You can try reducing your SRs by using an array to hold the data, replacing the proper element each time and passing that array through the SR. ... Proper error handling is important in order to know how to pinpoint an error when it occurs, although I'm not sure if any is needed in your program. ...
    (comp.lang.labview)
  • Re: memory full
    ... In my opinion, Waveforms are just arrays with extra information, but the VIs to handle them are not optimized in memory. ... If you need that big array, you can reserve that memory from the beginning. ... And the result (waveform) can be converted to a part of the initialiy reserveded array. ...
    (comp.lang.labview)
  • Re: Number of Events in Event Structure...limitations?
    ... The attached example illustrates how to determine which boolean of a 2-d array changed value. ... The index of the changed boolean can be used to act on the physical devices as your application dicatates. ...
    (comp.lang.labview)