LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can you identify available sound card inputs?

Solved!
Go to solution

Thanks smercurio_fc

 

I got it using ur idea and the above in the discussion. some what i wanted.

 

thanks again.

0 Kudos
Message 11 of 24
(2,414 Views)
Smercurio - THANK YOU SO MUCH.  I started this thread 7 months ago, and I think this was the answer that everyone had been looking for from the beginning.  The DirectX thing sounds like a great idea, but it's a little out of my league technically as I'm not a programmer beyond LabVIEW, and it sounded like possibly it depended on which version was installed.  Anyway - I am going back to re-write a LOT of code but well worth it.
Message Edited by Jacer on 07-07-2009 12:05 AM
0 Kudos
Message 12 of 24
(2,411 Views)

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. Smiley Happy

Message 13 of 24
(2,396 Views)

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 

  

0 Kudos
Message 14 of 24
(2,301 Views)

Hi Yogesh,

 

Here is the simple VI attached to solve your purpose.

It is not optimised, you can do the required changes according to your requirement.

 

Let me know if you have some query.

 

You can search the forum for it, i think it is discussed before.

 

Regards

 

Shrek

 :smileyhappy:

Appriciate suitable answer.

0 Kudos
Message 15 of 24
(2,282 Views)

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.

0 Kudos
Message 16 of 24
(2,274 Views)

Hi,

 

ya if that works out.

 

 

 

 Regards

0 Kudos
Message 17 of 24
(2,271 Views)

Hi Shrekt

 

ok, i shall try the samething and will get back to soon.

 

thanks,

Yogesh 

0 Kudos
Message 18 of 24
(2,266 Views)

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 😉

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 19 of 24
(2,255 Views)

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)



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 20 of 24
(2,254 Views)