LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In Range Express VI

Solved!
Go to solution

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?

0 Kudos
Message 1 of 5
(3,464 Views)

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

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,447 Views)

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.

0 Kudos
Message 3 of 5
(3,428 Views)
Solution
Accepted by topic author OSMAN
Hi Osman,



From my understanding, you try to make a single beep, if number reach some levels.

Well, you probably try my attached screenshot to see whether it works.



Regards, Kate
Message 4 of 5
(3,412 Views)

Thanks Kate.

 

Works like a charm.

 

Rgds.

0 Kudos
Message 5 of 5
(3,371 Views)