Error 4800 at Sound Input Configure.vi

Updated Mar 20, 2022

Reported In

Software

  • LabVIEW

Issue Details

I am using the Sound Input Configure.vi to setup sound measurement in LabVIEW I am getting the following error. How can I resolve this error?

Error 4800 occurred at Sound Input Configure.vi
LabVIEW:  (Hex 0x12C0) Selected Device is Invalid

 
 

Solution

This occurs because the Device ID selected is not recognized as a valid sound input device.

Try the following steps to cause LabVIEW to recognize your sound input device:
  1. Save your VI and exit out of LabVIEW completely
  2. Double check that your sound input device is recognized in the Windows Sound panel
  3. With the devices still attached, reload LabVIEW 
  4. Run your VI
If your are using the internal soundcard of your PC and the issue occurs randomly:
  1. Troubleshoot your soundcard and make sure it works.
  2. Windows automatically downloads the drivers for all components. If possible, find what soundcard your laptop is using and try to download the appropriate driver(s) manually.
  3. Make sure other apps are not allowed to access the soundcard while LabVIEW code is running.

Additional Information

This error generally occurs when a sound input device is connected to a PC after the LabVIEW environment has been loaded. LabVIEW only populates the sound device list upon startup when lvsound.llb or lvsound2.llb is loaded into memory.

As a workaround you can create a subVI and call it dynamically. This should allow the library to re-populate when the subVI is called.