12-12-2012 12:13 PM
12-12-2012 04:24 PM
How about the Sound Output Stop VI???
12-12-2012 11:28 PM
Ok so I see that option. My question then becomes how do you control when it stops the song. If I say wanted to stop the song when a loop finished and so I brought a true statement out and want that to tell the sound file to stop. The help for that icon is very sparse in its explanation of how it is used. Thanks!
12-13-2012 09:21 AM - edited 12-13-2012 09:24 AM
The help assumes you know basic LabVIEW. It can't provide much specific usage info since it doesn't know what the programmers intentions are. This is common in all languages.
This is a very easy "case" though. Use a case structure in a loop. Wire your boolean control to it and put the Play VI in one case and the Stop VI in the other. Toggling the boolean control will turn the sound on and off.
Check out the LabVIEW examples for some good, sound ideas. Help > Find Examples... Hardware IO > Sound. If the examples seem confusing look into some basic LabVIEW tutorials.
BTW: You could also control the sound output by using a volume control in your loop. That way you could fade in and out if you want to be fancy.