05-03-2009 08:36 AM
Hi ALL,
Need your advice. I attach my test vi.
For such situation, when the numbers keep changing, how do I ensure the beep is always activated.
I have use In Range but this does not guarantee the beep.
Is there a better way?
Solved! Go to Solution.
05-03-2009 10:55 AM
Hi Osman,
well, at the moment you check for a range of 1199...1200 but keep adding numbers of 0...10. So what's the probability to hit that check range with such numbers?
You could:
- use a bigger range of difference 10 between limits
- use standard functions instead of an express vi (it hides all the important information from the programmer)
- there are comparison functions in their own palette including "in range and coerce"
- use a small timer in your loop to prevent cpu hogging
05-03-2009 06:22 PM
Hi GerdW,
Thanks for your reply.
You are right that I can open up the range. As I only need 1 beep, that would produce more beeps
than I require. If my beep is a wav file, I would have an echo. I believe this would also happen with
In Range and Coerce function.
Rgds.
05-03-2009 09:22 PM
05-04-2009 10:30 AM
Thanks Kate.
Works like a charm.
Rgds.