LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

alarms

Hi how do i play an alarm sound once my led light up? 

0 Kudos
Message 1 of 23
(3,772 Views)

Hi kkyc,

 

well start using a case structure with a Beep vi in it...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 23
(3,770 Views)

i don't want  beep sound, i want those alarm sound

0 Kudos
Message 3 of 23
(3,767 Views)

Which alarm sound?

 

You can play any wave file using the SoundOutput functions…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 23
(3,763 Views)

any type of alarm sound just as long as it is not a beep sound... can u provide me with an example on what u suggest? thxs

0 Kudos
Message 5 of 23
(3,755 Views)

btw I am doing a fire alarm system project using simulation.. 

0 Kudos
Message 6 of 23
(3,749 Views)

Search the web for free sample wav files.

Like here ...

http://www.wavsource.com/sfx/sfx.htm

 

 

0 Kudos
Message 7 of 23
(3,740 Views)

so how do i add the sound into my program? 

0 Kudos
Message 8 of 23
(3,724 Views)

@kkyc wrote:

can u provide me with an example on what u suggest?


Look in the Graphics & Sound->Sound palette.  You will find all kinds of fun VIs.  There is a palette in there just for reading and writing to a sound file.  You want to use the Read to read a wav file.  Then go to the output palette and the Play Waveform should do it all for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 23
(3,718 Views)

As Gerd pointer out earlier use the Sound VIs.

On the VI palette  ->  Graphics & Sound > Sound > Output.

Open the wav file and play it.

 

0 Kudos
Message 10 of 23
(3,714 Views)