LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI of the Day (9/4/2009)

My favourite alternative is a DAQmx controlled siren. You can get them in various flavors for cheap. And much louder... (necessary in production equipement)

 

Felix

0 Kudos
Message 21 of 31
(3,254 Views)

I can confirm Harold's issues.  I have an HP PC with Windows Vista Home Premium 64.  It does not play the sounds.  The VI actually returns almost immediately.

 

If I make that constant for System Beep True, I do get sounds with a final ding, but it is not the tune.  The VI still returns immediately.

 

I don't know if my PC makes sounds at bootup because I rarely shut it down completely.

0 Kudos
Message 22 of 31
(3,244 Views)

Harold Timmis wrote:
Sounds good I would like to mess with the beep.vi but never have had the opportunity so I normally use the lvsound.llb

My laptop didn't beep on booting up. I tried using the beep.vi with use system alert' set to true, and my OS (Vista 32-bit) went bonkers with the typical error ding. When I ran the VI with 'use system alert' set to false, I got the beep.vi to work. I use a standard DELL Inspirorn 1545with LV 8.6.1.

 

Out of curiosity, if you have a vintage c/c++ compiler that can compile this piece of code

int i;
for(i=1;1<=20000;i++)
{
sound(i);
delay(20);
}

 

just check if this gives you a sound. 🙂 

 

PS. This is an out of standard Turbo C++  code I wrote in my high school 🙂

0 Kudos
Message 23 of 31
(3,244 Views)

Working on it further, I made an interesting note.

 

If I just try running this code on a just launched LV

 

 Capture.JPG

 

there is no sound on my laptop. However when I do this,

 

 Capture.JPG

 

It works! I'll need to check more on this behaviour. Please let me know if you can verify this too. When I had posted the last message, I had done this unknowingly, so I didn't realize what actually happened.

 

PS: it worked fine on my desktop.

0 Kudos
Message 24 of 31
(3,233 Views)

@Ravens Fan wrote:

 

If I make that constant for System Beep True, I do get sounds with a final ding, but it is not the tune.  The VI still returns immediately.

 


If the constant for System Beep is true, then the Beep.vi plays the standard OS alert. So the ding you hear is the windows ding.

0 Kudos
Message 25 of 31
(3,231 Views)
Just one ding from the initial Beep.VI on my PC.
0 Kudos
Message 26 of 31
(3,240 Views)
well still no sound....and I do get a sound with your C code in fact I had a old game I made in c++ and it even worked but none the less the beep.vi does not like my computer yet...
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 27 of 31
(3,224 Views)

Well I did a quick search on Google and found a site that teaches you how to disable the beep so I went through it and found out how to enable it.. Turns out my beep had nothing associated with it so no sound was coming out, but now it is working fine

 

this is the link I went to hope it helps anyone that has or is having my problem. 

http://www.howtogeek.com/howto/windows/turn-off-the-annoying-windows-xp-system-beeps/

 

 

Message Edited by Harold Timmis on 09-05-2009 05:01 PM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 28 of 31
(3,219 Views)

Here's a virtual piano I wrote some time ago. It doesn't use the Beep VI, but the principal is the same. It includes the polyphonics Altenbach wanted and works better than the beep VI in that you don't have to set the duration of the tone, so the sound is smooth.

 

MK3 is backsaved to 8.0 and has more notes. MK is in 8.6 and has less tones (a single octave, if memory serves), but the constants are better, so you don't get the disharmony you get from using some chords in MK3. Both VIs are basically just proof of concept, so they're not exactly what you would call clean.


___________________
Try to take over the world!
Download All
Message 29 of 31
(3,182 Views)

tst wrote:

Here's a virtual piano I wrote some time ago...


 

gee... even as i'm typing, the keyboard makes sounds in the background... :D... btw, special kudos to a person who gets to play the chords right on tst keyboard... :D... what i mean is that getting the three notes to sound synchronous on an actual piano or keyboard is much easier than on the computer keyboard. The VI simply doesn't seem to recognize the keys as pressed together... :o...
Message 30 of 31
(3,171 Views)