09-17-2008 12:04 AM
Solved! Go to Solution.
09-17-2008 04:38 AM
Hi.
Take a look at this link. There is a vi to get info on input/output devices (id number and name):waveio
Cheers
Alipio
09-17-2008 06:43 AM
hi there
you can use DirectX to get the list of all sound captures. see attachment (need DirectX8 installed on the system).
10-31-2008 05:29 PM
Hi Cris,
I've got DirectX10 and get an error message -2147221164?
What could be the problem?
The vi should work for DirectX8 and higher, or?
Thanks!
11-02-2008 04:30 AM
Hi there
the VI links IDirectX8:GetDSCaptureEnum. So you need DirectX8 installed on your system. I don't know if higher versions install the lower COM objects, but i don't think so. Try to re-link the Automation refnum to the V10 object and try again. Is there any error message delivered with the error code?
11-02-2008 09:09 AM
11-02-2008 02:45 PM
Ok, thank you guys!
I've got a Swedish Vista and the errormessage says "Klassen har inte registrerats
in getSoundCaptures_DX8_LV7.1.vi"
I.e. the class is not registered.
Actually i'm looking for a generic way to find the soundcard inputs, and the tricky part is that it will be used in differet unknown Vista and XP DirectX versions.
Is there any hope for me?
When looking into the "Aquire Sound" Express VI you can actually read the sound card inputs and in the help it says that it needs DirectX8 or later.
However the proble is that i have not found any way to get this soundcard input info from this VI to my own front panel.
Any idea here is very welcome 🙂
Thanks again!
07-04-2009 12:12 AM
Dear All,
Do anyone has another method for detecting the differnet sound card on the PC.
Regards
07-06-2009 11:48 AM
07-06-2009 01:11 PM - edited 07-06-2009 01:13 PM
The relevant VI that gets that information and populates that ring control is the following:
<labview directory>\vi.lib\sound2\_SoundAcquireConfig.llb\InitializeInputDeviceRing.vi
The two subVIs in there that are of use are "Get Num Devices" which gets the number of available devices, and "Sound Device Info", which returns information on a device number. Both of these VIs are in the lvsound2 LLB that is in the sound2 directory. These two VIs can be used on their own.