05-31-2024 03:19 AM
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 ?
Best regards,
Emma
05-31-2024 03:32 AM - edited 05-31-2024 03:34 AM
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)???
06-01-2024 12:22 PM
set it like that ? but the beep doesn't seems to be activated if i do this...
06-01-2024 11:46 PM
@plssendhelp1506 wrote:
set it like that ? but the beep doesn't seems to be activated if i do this...
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!