LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire sound device Error

Solved!
Go to solution

Hello, im Davide and this is my frist post!

 

I need help with this error, Why labview don't recognize any device? 

Immagine.png

 

0 Kudos
Message 1 of 7
(5,064 Views)

Can you confirm what audio devices are available in Windows? You can check this by right-clicking the little speaker icon in the notification tray and select Recording devices. You can see below I have one microphone input in Windows, which also appears in the express VI configuration.

 

recording_devices.PNG

 




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
Message 2 of 7
(5,026 Views)

I don't no why, but today labview have acquire the microphone device, but the question isn't solved

because i need to analyze windows sound.

Immagine.png

Forgive me for my imperfect englisg, and thanks you fa your help 🙂

0 Kudos
Message 3 of 7
(5,006 Views)

Am I correct that you are new to LabVIEW, and do not know much about the language?  The Express VI is a "shortcut for beginners" that will acquire a sound sample and output it as a Dynamic Data wire (which I find difficult to use).  If you want to analyze the sound, you need to process the Waveform Information contained in this wire.  Do you know about right-clicking on output Terminals and selecting what to do?  If you right-click on the Data terminal, you can select the Signal Manipulation Palette.  I would recommend you choose "From DDT" and immediately convert the data from the Dynamic Data wire to LabVIEW's 1D Array of Waveform.  You can then open the Waveform Palette and decide how you want to process this waveform.  There are also Waveform Charts and Graphs you can use to display your sound sample.  There are probably also Example Programs (Help, Find Examples) that may have more helpful guides.

 

Bob Schor

Message 4 of 7
(4,999 Views)

thanks, (correct me if I'm wrong) but I do not think solve the problem, because the source of the signal remains the microphone, I would like to analyze the sounds of windows that are transmitted to the speakers.

0 Kudos
Message 5 of 7
(4,997 Views)
Solution
Accepted by topic author Diell.it

@Diell.it wrote:

thanks, (correct me if I'm wrong) but I do not think solve the problem, because the source of the signal remains the microphone, I would like to analyze the sounds of windows that are transmitted to the speakers.


Do you mean that you want to analyze the sound being generated by your PC and output by its own speakers? You're not going to be able to do that if your PC's only audio recording source is a built-in microphone. Most desktop PCs will have a line-in audio input jack, in which case you could connect a patch cable between the line-out and line-in jacks to route the computer's audio output back into its input for analysis, but many laptops now don't have a line-in jack, just a built-in microphone and possibly a headset microphone jack. In that case you'll need to add a USB audio adapter with line-in and line-out jacks to your system.

 

Edited to add: I didn't think to search until after I posted, but there does exist a "virtual audio cable", a loopback audio device driver you can install which looks like audio input and output hardware to windows, but actually just routes the output back to the input without ever touching any hardware. Check out LoopBeAudio: https://www.nerds.de/en/loopbeaudio.html

 

Edited again to add: Okay, there may be an even simpler solution if your audio hardware supports it, which is to enable the "Stereo Mix" recording device. Try this: https://www.howtogeek.com/howto/39532/how-to-enable-stereo-mix-in-windows-7-to-record-audio/

Message 6 of 7
(4,989 Views)

the last solution is definitely the most elegant, alternatively I used LoopBeAudio, it's a regret that to do it I need to resort to this trick

 

Thank you for the help that you all gave me!

By Davide 

0 Kudos
Message 7 of 7
(4,982 Views)