LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sound

Hi!
 
How can I put 2 sounds (in 2 different cases) (as I asked and it play well if it run alone) in while loop that it can play with my program? If I use Sn Play Wave file, I only use this to play the sound, if I choose TRUE for "Wait until finish" it can play, but only sound, after the sound turn of, my program wil run.  And if choosing FALSE, it can not play sound continously.
 
Another problem, the first sound (in first condition) can only be changed (if I change to the second condition) after it finished, it can not be changed immediately to the other sound. This is problem when I run this sound without other program run on the same time in one while loop. In this case, I choose TRUE at "Wait until finish" for both of cases (in Sn Play Wave File).
 
Thanks for your help. Hope to be replied soon.
 
Have a good day!
 
 
0 Kudos
Message 1 of 5
(3,187 Views)

Hi Tuong,

Can you post a simple VI demonstrating your issues...  that will help us help you better.

-Khalid

0 Kudos
Message 2 of 5
(3,174 Views)

Hi!

I attached my program in below! Thanks for your help!

0 Kudos
Message 3 of 5
(3,162 Views)

As you change other WAV source, you must use "SO stop.vi" to stop current playing WAV first, and load WAV source.

hope it helps

 

________________________________________________________


Try to make everything Automatic
0 Kudos
Message 4 of 5
(3,162 Views)

Thank you so much for your help!

How about the problem when I use TRUE or FALSE in pin "Wait until finish" in while loop? How can I play sound simultaneously with my program?

Thanks.

 

0 Kudos
Message 5 of 5
(3,158 Views)