02-28-2019 10:30 PM
I am having trouble reading .wav files greater than 1 GB. It seems the position offset is not offsetting - I keep getting the same set of points even though the offset out is incrementing. This happens no matter how many samples are read - even a small number like 256. No problem for files less than 1 GB. I am running 64 bit labview with 32 GB ram.
03-01-2019 12:46 AM
03-01-2019 07:46 AM
@miklovicd wrote:
I am having trouble reading .wav files greater than 1 GB. ... No problem for files less than 1 GB. I am running 64 bit labview with 32 GB ram.
Look at the function you are using to read the data. While the low level file functions in LV do support files with offsets that can be described by an I32, the higher level file (Read Delimited Spreadsheet.vi for example) functions do not.
Ben
03-03-2019 02:35 PM
I did a Web search for Read large WAV files. There is some discussion of this, including a note that WAV files are limited to 4GB because they use a U32 for the File Size header, but if you are using LabVIEW 64, you (optimistically) should not have a problem.
But you also say you can't reliably "read in chunks", which seems to be the solution others have used successfully. So it's either Hardware, Bad Data, or Software. We can eliminate the first two -- can you "play" your sound file through your PC using Media Player or something similar alright? If so, that leaves Software -- for help with that, attach your VI (don't bother attaching a non-executable picture).
Bob Schor
10-28-2019 07:22 PM
Its none of this. Turns out labview just doesn't support wav files over 2 GB.
10-29-2019 02:34 PM
@miklovicd wrote:
Its none of this. Turns out labview just doesn't support wav files over 2 GB.
That's the first time I've heard of that. Are you sure it's not a case of what Ben discusses above? Anyone know of a 2 GB limit on a wav file (that doesn't involve a memory/file/OS issue)?
10-29-2019 02:51 PM
@miklovicd wrote:
Its none of this. Turns out labview just doesn't support wav files over 2 GB.
Wild guessing time!
Are you using he file functions found under the
Graphics & Sound >>> Sound >>> Files palette
that invokes a dll with input values that are an I32 ?
If so yes, an I32 is limited to a max of 2G.
Ben