01-05-2011 09:01 AM
how do I play a wav file just once using the play sound file.vi. i keep getting it to repeat over and over
thanks
01-05-2011 09:03 AM
Can you post your vi?
01-05-2011 09:05 AM
here is my vi
01-05-2011 09:10 AM
I tried it and it played a wav only once. Can you try a different file or does it repeat for every file?
01-05-2011 09:16 AM
i can get it to run once using the run button but i am creating a GUI and it has to be ran continuously so need to find a way to stop it once it has played once thanks
01-05-2011 09:26 AM
First may I recommend some reading here. This is not meant to be cocky just to help you.
Second I have included sort of template. Notice the wire that ends in the while loop. This will ensure that the wav is played before the loop starts.
Good luck with your Labview labwork
01-05-2011 09:28 AM
Got it. You have the play vi inside of a loop right? So the question could be "How can I do anything once" and is not specific to playing a wav file.
The answer depends but it will generally mean you put whatever you want to execute once in a case structure.
01-14-2013 02:46 PM - edited 01-14-2013 02:53 PM
that good feedback, you learn here too, it is very true that the WAV format is important that I leave a example can provide
01-14-2013 05:59 PM
10-07-2017 08:16 AM
sir,
for the same file i am not able to play the sound file as it is showing me an error- Error 4805 occurred at Play Sound File.vi->playsound.vi
"LabVIEW: (Hex 0x12C5) Could not find the sound file."
can you provide me with some solution