Missing lvsound.dll Library In LabVIEW

Updated Jan 25, 2023

Reported In

Software

  • LabVIEW

Issue Details

  • My VI uses the sound API from a prior version of LabVIEW. After upgrading to a 64-bit version of LabVIEW, I have a broken run arrow that references a missing library. What happened to the library and what can I do to correct this error?
  • I have a program that uses the sound palette. Whenever I go to run my program I get a popup telling me to find the lvsound2.dll in my directory. The DLL is present in the directory but LabVIEW is not recognizing it. What can I do to fix this?

Solution

A new sound API was created in LabVIEW 8.0 for Windows and LabVIEW 2009 for Mac that supports 32- and 64-bit operating systems. This API calls functions from the lvsound2.dll library and can be found in Programming>>Graphics & Sound>>Sound in LabVIEW Functions Palette.
This library can be found in <Program Files>\National Instruments\LabVIEW 20XX\vi.lib where XX represents the version of LabVIEW that you have installed. The DLL can be found in <Program Files>\National Instruments\LabVIEW 20XX\resource\lvsound2.dll, be sure that both the library and DLL are in the correct folder or LabVIEW will be unable to call for the functions inside the palette.  

You will need to modify your code and replace functions from the old sound API with functions from the new API. This will change your program to make calls from lvsound2.dll instead of lvsound.dll.

Additional Information

If the code was written prior to the new sound API being released, the LabVIEW palette will show functions from the old sound API that calls from the lvsound.dll library. For example, LabVIEW 6.0 on Windows will still contain the old sound API on the palette. These functions are not supported on 64-bit applications that attempt to call this library. This library will still work with LabVIEW 32-bit on Windows 64-bit.