10-17-2005 12:23 PM
10-17-2005 12:54 PM
10-17-2005 01:13 PM
10-18-2005 09:19 AM
10-18-2005 12:25 PM
10-18-2005 01:57 PM
10-18-2005 02:41 PM
10-19-2005 11:12 AM
10-19-2005 11:33 AM
10-25-2005 10:18 AM
Hi,
The Snd Play Wave File VI was created to play short wav file so when you try to play a long file, the VI times out and this is why only part of the file is played.
So if you are just interested in playing a wav file even if the VI doesn't wait for the file to finish playing, you can set the ‘wait until done’ input to false. On the other hand if you want the VI to finish playing and then keep running the rest of the code, I recommend using one of the examples in the LabVIEW example finder when you look for ‘Sound Control’.
This
function has been rewritten in LabVIEW 8.0 and it allows you to specify a
timeout input that if you set to -1, it allows you to play the whole song and waits until the
file is completed to continue executing the rest of the code.
Tica T
Applications Engineer
National Instruments