LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to play a wave file with system sound

I have to play a sound everytime an alarm occurs, but the PC doesnt have either a sound card or speakers. The "beep.vi" works on the PC but the sound it creates is too short and week. I want a longer and stronger sound that gives an alarm warning sound.

Is there anyway I can do this?
0 Kudos
Message 1 of 6
(3,246 Views)
Hi,

try to put it into for loop. Look how much cycles you want.
0 Kudos
Message 2 of 6
(3,246 Views)
Hi,
I tried that, but that is not what I am looking for. I want it to give any typical sound but not a series of beeps. If there is no way of doing that then I will stick to the series of beeps

Thanks anyways
0 Kudos
Message 3 of 6
(3,246 Views)
Beep.VI sends a command to make the default beep in Windows. I have a built in sound card, but I imagine changing the windows setting will work. Goto the control panel >> sounds and multimedia and change default beep to any file of your choice.

Jeremy Braden
National Instruments
0 Kudos
Message 4 of 6
(3,246 Views)
I built a beep-function in the past (using port in/out vi's), so it will probably not work on the more recent Windows O.S.'s. It was used on a PC-based depth-meter.
As I remember you can start a beep by calling the vi and another call makes it stop.
If your interested I can look up the code.

Patrick de Boevere
0 Kudos
Message 5 of 6
(3,246 Views)
Thank you Patrick, but I have sorted out my problem to some extent.
0 Kudos
Message 6 of 6
(3,246 Views)