LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the device number for the line input for sound measurements

Hi,
       I would like to measure the input of sound wave given to a line input of a PC. Can anyone tell me how to write a DLL  Program to actualy get the device numbers. Appreciate your help.
 
Thank You,
 
Mudda.
0 Kudos
Message 1 of 2
(2,569 Views)

Hello Mudda,

Are you connecting a microphone to the sound card of your PC?  I assume that you want to use the built-in LabVIEW Sound VIs, and would like to write a LabVIEW DLL which returns the device numbers of the sound devices.

If you are using a Windows system, you will have to use some Windows API functions to get that information.

Microsoft (and their website) can help with the specific functions which enumerate the sound devices (with documents like this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_devices_and_data_types.asp).  Your LabVIEW DLL will then be a wrapper for a Windows call.

I am happy to help out in any way I can.  Feel free to post again with a little more information on what exactly you wish to do, or with any other follow up questions.  Thanks for posting!

Regards,




Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 2
(2,551 Views)