11-16-2021 03:31 AM - edited 11-16-2021 03:35 AM
hello,
I was testing the simultaneous sound input output.vi from the help example section.
I found that when I run the vi and I don't have the audio jack connected to the mic/line in port of PC I get the 4800 error(selected device ID error).
Similarly, when the program running with the jack connected and if I take out the jack I get the 4822 error(timeout error).
How can I avoid these error? meaning I wanted to keep the program running with the background signal the mic/line is receiving even if I have not plugged the jack and even if I take out the jack after the program is running.
would it be possible to ignore the error and continue?
thank you
11-18-2021 06:33 AM
Hi,
Please follow this link Error 4800 at Sound Input Configure.vi - National Instruments (ni.com) for Error 4800 solution.
Regarding the Error 4822.
Your audio device has an ID of 0 in your PC. When you are connecting your audio device to your PC, the input device ID specified as 0 is for the microphone device. So when you connect your hardware to your PC and the device ID is 0, the program will run smoothly. However, when you remove your audio device from your PC, the program stops acquiring sound, because the hardware based on which you specified your device ID is not connected to your PC anymore. If you want to acquire signal from both your microphone device and your PC, you will need to stop the VI from running, change the device ID (to either your PC's microphone ID which is 1, or to your audio microphone device's ID which is 0) and run again for each case separately.
Thanks.