09-14-2015 05:48 AM
I have some wav files that i want to generate waveforms for. The files are rather large (1GB-25GB).
I was thinking about having labview reading them in small chunks of about 100mb each and then plotting the data to the end of a waveform graph.
If anyone has got around the memory limit or can show an example of splitting a wav file into chunks, i would like to see.
09-14-2015 05:58 AM
09-14-2015 06:04 AM
I am trying to display a full .wav file in a waveform graph (or chart).
32bit os (4GB RAM), Labview 14.0f1.
Created the wave file using python wave modual. and saved as a standard .wav file.
09-14-2015 07:28 AM
Hi Ace,
in a 32bit environment you can only use upto 2GB of RAM (most times even much less).
This will limit the number of samples you can store in a waveform.
Additionally a graph also creates a databuffer (for display) - using atleast the same amount of memory as your waveform…
And don't forget: it doesn't make sensoe to display thousands of samples in a graph with <= 1000 pixels width. You need to decimate your data!
09-14-2015 07:50 AM
yea thats what i was looking into doing, basically if i can spilt it up i can then import the data into the graph in real time.
I saw an example of this running a waveform generator to create noise. I used this example of streaming audio from a mic into labview which gives the result im looking for.
If i can stream the audio in rather then generate the whole graph in one go it would be a lot easier for me to process my data.
Unfortunately at the moment its not possible for me to stream the sound directly from the mic I'm using as that's being processed by a raspberry pi.
I would like to generate a graph 1 second long with the raw waveform, then clear the graph and repeat until the end of the file.
picture shows the example however I cant find the original post on the forums.
09-14-2015 08:09 AM
You can use the sound files VIs to read in the wave file in chunks.
They are on the pallette under Graphics and Sound>>Sound>>Files.
09-14-2015 09:03 AM
I have tried that a few times but i get Not enough memory error.
using the Sound file read simple.
i also tried it manually using i as the offset and colsing the file each time. (see picture)
the standard sound file read wont split the file.
09-14-2015 09:41 AM
There is an input on the Sound File Read for how many samples to read. You can read in chunks of the file at a time. It keeps track of your location, so in a while loop, just read say 1000 samples at a time, and deicmate it for your plot.
10-06-2016 03:46 AM
hello....sir i am trying to chank the audio file, but i cant get proper idea.so sir plz give me some suggestion.
10-06-2016 04:07 AM