08-11-2011 10:40 AM
Hi All
I have multiple soundcards installed in my system and want to allow the user to select one of them by its name e.g. "Soundblaster Audio" rather than the genreic device ID number
that labview uses to identify each card.
There is an express sound vi called "Play Waveform that when clicked on gives you this functionality but it is not available at runtime as a front panel control, none of the other sound vi's provide this functionality.
How could I achieve this?
Thanks for your help.
08-16-2011 01:40 PM
The Express VI calls Configure Acquire Sound which is in \vi.lib\sound2\_SoundAcquireConfig.llb. Open it and you'll see a subVI called InitializeInputDeviceRing.vi. This gets the number of sounds cards and the names. Use at your own risk. They could change in future releases.
08-17-2011 02:37 AM
Thankyou Dennis for your help that works just fine!
Note to developers of LabVIEW. What is the purpose of being able to specify a Device ID on the Play sound file.vi when this vi will only ever play audio from the default soundcard, This is completely counter intuitive!!!