09-05-2009 10:59 AM
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
09-05-2009 01:05 PM
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.
09-05-2009 01:05 PM
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 🙂
09-05-2009 02:16 PM
Working on it further, I made an interesting note.
If I just try running this code on a just launched LV
there is no sound on my laptop. However when I do this,
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.
09-05-2009 02:19 PM
@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.
09-05-2009 02:21 PM
09-05-2009 03:46 PM
09-05-2009 04:00 PM - edited 09-05-2009 04:01 PM
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/
09-06-2009 10:27 AM
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.
09-06-2009 12:36 PM
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...