09-17-2015 03:54 AM
Hi,
I am working on a metronome that has to run for a x time with a x frequency. The time is in seconds and the frequency in BPM.
Every time there is a beet, the VI has to make a beep. This can be done easily by the beep.vi, but the standard for the beep.vi is toplay a system sound.
This is a quite long tone (Windows 10). So therefore, I want to set my own frequency and duration of the beep.
But when I change this in the beep.vi, the VI will wait for the set duration (msec) before it continues the vi. So it slows down the whole VI.
Is there a way to make the beep.vi beep with the frequency and duration that I set, without it slowing the VI down?
Thank you!
Solved! Go to Solution.
09-17-2015 04:17 AM
Have the 'beep' VI run asynchronously to your main code - have the VI in another loop and use a queue/notifier to notify the loop when to play from the main loop.
09-17-2015 04:34 AM
Thank you very much!