Use the Beep VI with the Internal PC Speaker

Updated Jan 19, 2023

Reported In


  • LabVIEW Full

Issue Details

Executing the Beep VI (found in the Graphics and Sound sub-palette) plays a sound over my speakers, but I'd rather have it beep on my internal PC speaker.


You can create a beep with the PC speaker by calling the "Beep" function in Windows kernel32.dll with a Call Library Node. The Beep function takes in two long inputs, and returns a long. The two inputs are frequency and duration respectively.

The attached implements the PC speaker beeping functionality.