i hav a built a VI that aquires a thermocouple signal through my daq card....i intend to use sound VIs whenever my temp.exceeds set point..in short sound should b generated whenever temp.exceeds certain limit...... i hav used a "Beep" VI in my code....but no beep occured even if my temp.crossed set point.....is there any other platform required for using sound VIs??....i work on labview 7.0 professional development suite.
Solved! Go to Solution.
Are you saying the Beep does not work, or are you saying your code does not work? Have you simply placed the Beep VI on a block diagram by itself and run the VI? Do you hear a beep? If you don't, then have you checked the speakers? If it does, it points to a problem in your code.
Did you set the Beep.vi to output something properly? If you use the default settings you will probably hear a default tone through your sound card NOT the PC speaker. If you want to hear the PC speaker try setting frequency and duration to 1000 and turn OFF the "use system alert".
after i posted this msg i heard a beep sound on my pc speakers by placing only beep vi on block dig...and also with my code running properly.( that when my set point exceeded beep started ringing)......but after that i tried experimenting on many sound VIs.....n now when i place beep vi seperately on a block diagram it is not giving audio signal....same is happening with my code also....i cant here sound.....after successfully hearing beep sound on my pc speakers now wat suddenly happened with it??......would it b due to opening and closing many sound vis at a time??....like it happens in case of DAQ devices..that wen v use traditional daq devices n try using DAQmx devices after that they don't run unless v reset our traditional daq drivers.....so is it possible in case of sound vis also?...atleast a separate beep vi should run giving sound on speakers if i assume my code is wrong...
The sound VIs shouldn't affect the ability to hear sounds unless maybe you opened a reference to the sound card and failed to close it. That might lock the resource but I can't reproduce the effect on my system.
It should alternate beeps on your sound card speakers and the PC speaker. Do you hear either beep?
One thing to keep in mind is that in earlier versions of LabVIEW the inputs to the Beep VI were ignored on Windows since you could not change the tone. This was actually explicitly stated in the documentation. I don't believe that's true with newer versions of LabVIEW however.
thanx...but we dnt hav sound card at our lab.... would jus playing wid the different sound vis can cause any opening of reference to the sound card??.....i didn't hear beep on my pc speakers by placing only a beep vi on seperate block diagram...could u pls tell me how to close that reference to the sound card??..
Wait, now I'm confused. Now you're saying you don't hear a beep when using the Beep VI by itself, but before you said you did. So do you or don't you? And if you did, but now don't, what did you change? Can you hear the normal beep from the operating system? If you're on Windows, go to the Sound control panel and see if you can hear any of the sounds. While most of them won't work, at least the error one should. I think.