LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create beep

Hi,
 
Does anyone know how to produce a beep sound in LabVIEW after a specific time? Attached is my VI, current at every minute a Light will glow. At the same time, it needs to produce a beep sound. I know there is the beep.VI. i've put in a fixed frequency and period, and make it a false condition. But nothing seems to work.
 
Any ideas how i could solve this problem?
 
regards,
aisyah
0 Kudos
Message 1 of 8
(11,420 Views)

Look on the graphics and sound pallette.  There is a Beep.vi.  Use the conditional statement on your Reminder output to see if it's equal to zero, and put the Beep vi in the true case.   The only thing is you may need to do some rounding on that to truly get zero (in the event that the remainder is something like 0.13 seconds or something that is not precisely zero.)

0 Kudos
Message 2 of 8
(11,416 Views)

hey, thanks. i hear the beep now.

but is there anyway we can change the sound of the beep to be more significant?

 

0 Kudos
Message 3 of 8
(11,404 Views)
HI, I think the best way is to select your own *.wav file and play it as in attached vi. You can select also the sound level. Just insted of the file dialog use path constant when you select desired file
LV 2011, Win7
0 Kudos
Message 4 of 8
(11,396 Views)

that's nice.

but i'm using LabVIEW ver.8. i can't open the attached file.

0 Kudos
Message 5 of 8
(11,353 Views)
here you are
LV 2011, Win7
0 Kudos
Message 6 of 8
(11,347 Views)

hi,

thanks for the VI. but i don't quite understand how it works.

my purpose of including the beep VI is to  indicate that the LED is glowing. below is my VI and how i've included the beep VI. at 6s, you should hear a beep and the LED glowing. its a very mild and soft beep that is hard to be heard. because its too soft to be heard, i want to find a way that could change the pitch of the beep.

i know that if i use the beep VI at the false state, i can determine the frequency and period. but i dun think i can use tht state for my case.

 

 

0 Kudos
Message 7 of 8
(11,298 Views)

Hi Aisyah,

Since the beep.vi uses the PC internal speakers, you cannot change the volume because it does not go through the sound card or output jack.  The pitch can be modified by adjusting the frequency input and setting the system alert to false.  The way you have it set currently simply calls the system alert you have set on your computer.

You may also want to take a look at some of the other sound based example VIs.  There are some that allow you to call a .wav file or play a waveform.  These give you more flexibility with volume and pitch.

Regards,

Lauren

Applications Engineering
National Instruments
0 Kudos
Message 8 of 8
(11,262 Views)