LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single beep when within temperature range

Solved!
Go to solution

Hello. I have an issue. I have a project where I want a beep when the temperature changes.

I have 3 categories. Hot, warm, and cold. Cold(0-25 degrees), Warm (26- 60 degrees) Hot (61-100 degrees).

Is there any function I can use to get a beep for when the temperature changes from its category?

I know how to get the beep. The problem I'm facing is preventing the beep when it is still within the same category.

0 Kudos
Message 1 of 5
(1,846 Views)
Solution
Accepted by topic author Rayhl

@Rayhl wrote:

Hello. I have an issue. I have a project where I want a beep when the temperature changes.

I have 3 categories. Hot, warm, and cold. Cold(0-25 degrees), Warm (26- 60 degrees) Hot (61-100 degrees).

Is there any function I can use to get a beep for when the temperature changes from its category?

I know how to get the beep. The problem I'm facing is preventing the beep when it is still within the same category.


Sounds like you want a function that checks if a threshold has been crossed. Then set a boolean to true, then check if you need to "beep".

Are getting hung up on the logic? Or just cant find the correct BD functions palette?

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
Message 2 of 5
(1,842 Views)
Solution
Accepted by topic author Rayhl

Use a feedback node and compare the previous category to the current category and beep if they differ.

Message 3 of 5
(1,823 Views)
Solution
Accepted by topic author Rayhl

Hellooo thanks for both of your replies. I managed to get the simulation to work. I used the (is value changed) pallet to prevent the beep from reoccurring even tho its within the range of the category.

0 Kudos
Message 4 of 5
(1,781 Views)

Hi Ray,

 

do you really need so many comparisons and boolean operations for such a simple task?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(1,758 Views)