LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

combine 2 while loops using OR

Solved!
Go to solution

Hello GerdW, 

 

First of all, I would like to thank you for always helping me out when i face difficulties with my codes. I have made some modifications as shown in the picture and VI attached below, so right now if the temperature range is NOT  -189.9 degree Celsius OR 189.9 degree Celsius then the beep will be activated. In this case, it is possible to set how long the beep will last just by including a timing function right ? do you know why does it still activate even if all the thermocouple temperature range is at its normal range ? 

 

plssendhelp1506_0-1717143434183.png

 

 

Best regards,

Emma 

0 Kudos
Message 31 of 34
(274 Views)

Hi pls,

 


@plssendhelp1506 wrote:

do you know why does it still activate even if all the thermocouple temperature range is at its normal range ? 


Did you read the help for the InRangeAndCoerce function? It allows for some configurations on their limit inputs and it seems to me, you did not set them correctly…

 

In your example there are values in the array clearly OUTSIDE the allowed range:

Why do you claim "ALL the thermocouple temperature range is at its normal range"???

 


@plssendhelp1506 wrote:

In this case, it is possible to set how long the beep will last just by including a timing function right ?


There is a duration input for the beep, so what do you expect from placing a wait function set to wait for 100s (= 1m40s)???

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 32 of 34
(269 Views)

set it like that ? but the beep doesn't seems to be activated if i do this...

plssendhelp1506_2-1717262437646.png

 

 

 

0 Kudos
Message 33 of 34
(247 Views)

@plssendhelp1506 wrote:

set it like that ? but the beep doesn't seems to be activated if i do this...

plssendhelp1506_2-1717262437646.png


You still have absolutely no understanding dataflow and code logic.

(And you still don't have good default values for any your controls.)

 

You are comparing diagram constants once when the VI starts and never again (It is not inside the loop!). Since these are all constants that can never change during execution, there will be no beep because the values result in a FALSE. Forever!

0 Kudos
Message 34 of 34
(239 Views)