10-13-2019 09:28 PM
I want to know if there is a DLL file that can detect sound coming from the audio interface.
Solved! Go to Solution.
10-13-2019 11:06 PM
There's the LabVIEW Sound VI palette which uses lvsound2.dll under the hood. This should cover most of your audio needs. The built in LabVIEW examples include Continuous Sound Input.vi, which shows how to read a signal from the audio device.
There's also a third party library called WaveIO which provides additional features like access to ASIO capable audio interfaces. Unless you require very low latency it's easiest to use the LabVIEW Sound VIs.
10-14-2019 02:24 AM
Thanks for your answer. I've already tried that. But no device ID could be used to measure the signal. So I was looking for a DLL function that exists by default in Windows. I am new to using DLL functions and I need help.
10-14-2019 03:05 AM
Hi Elchuran,
Is there any code you can share with what you've tried so far, or any error codes?
Try running the attached code to check what input audio devices are available to LabVIEW. If nothing is detected, check the audio input device appears in the Sound settings in Windows.
Are you able to verify the input device works with other software, such as Audacity?
Also, make sure your audio device is plugged in and ready before starting LabVIEW. LabVIEW doesn't detect any new audio devices plugged in once it has started.
10-14-2019 03:52 AM - edited 10-14-2019 04:16 AM
I will share the code I created for device discovery. Device 0 is the notebook's built-in microphone. There is no response on devices other than 0.
And I ran the file you shared, but it didn't show up in the list except the built-in microphone.
10-14-2019 08:05 AM
It would be also helpful to mention what kind of hardware you intend to interface with this. The LV Sound VIs interface to what the Windows DirectSound API knows about. If your hardware is something else like ASIO or Windows MediaFoundation based, it won't work unless you install some extra compatibility drivers for your device, if available.
10-14-2019 10:02 AM
Perhaps try the WaveIO library. It uses winmm.dll instead of DirectSound, so you might have better luck.
To see if your device is discoverable, download and unzip waveio_108.zip from the above link, then open WaveIO.llb and run WaveIO_FindRecordingDevice.vi.
10-24-2019 08:56 PM
Thanks for reply my question.
It was a good information for my study.