07-06-2009 11:31 PM
Thanks smercurio_fc
I got it using ur idea and the above in the discussion. some what i wanted.
thanks again.
07-06-2009 11:59 PM - edited 07-07-2009 12:05 AM
07-07-2009 08:49 AM
Sorry about that. I thought the original question had been answered, but then I had happened to see a follow-up question that asked if there was a different method and just decided to look at it again.
Better late than never, I guess.
12-03-2009 12:39 AM
Hi,
I am bulding an apllication whos base req is to play and record.
This application has another req, user should be able to select a sound card for pla and rec.
I am able to c all the sound cards plugged in, but unable to select the different card since the device handle is an arbitrary number.
Pls let me know, how to enable the selected card and to disable the others.
Thanks,
Yogesh
12-03-2009 02:40 AM
12-03-2009 03:12 AM
Hi Shrekt,
Thanks for the reply.
What i understand from your post is, the device id is nothing but the index of the card number in Control Panel-> Sound and Audio Devices -> Audio.
For eg., 0.HD audio(device ID is 0)
1.Hammerfall (device ID is 1)
and so on.
Is my understanding correct. If wrong please correct.
12-03-2009 03:20 AM
Hi,
ya if that works out.
Regards
12-03-2009 03:28 AM
Hi Shrekt
ok, i shall try the samething and will get back to soon.
thanks,
Yogesh
12-03-2009 04:59 AM
NAKeel wrote:
I am afraid the Express VI is the only VI that will give you the actual name. The lower level VI's give you the option to address different VI's, if you have more than one. What are you trying to accomplish? Are you having problems getting the Express VI to work?
First of all I will point out that the Express Vi system is a nuisance. It will only make beginners struggle more. And by using using Express VIs a beginner is more likely to pick up bad programming styles. And write less efficient code.
Also the tip from smercurio_fc is valid. The Express VI sound system use the function that smercurio_fc pointed to. And it is a standard and open part of the Labview sound system. It is actually strange that NI has so many undocumented functions in the sound lib, as they are really helpful then it comes to programming for sound card
Just my 2 cents 😉

12-03-2009 05:06 AM
If any struggle to make it working just open one this VI
...\National Instruments\LabVIEW 8.6\vi.lib\sound2\_SoundAcquireConfig.llb\Configure SoundAcquire.vi Then take away all Express VI functionality and save it as your own modified VI (bit not in the same llb)
