LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making numbers inclusive and exclusive from an array

So i am trying to get an array to output these certain strains:

a. Freezing if <32°F

b. No Warning if 32°F to 75°F (inclusive)

c. High Temp if >75°F & < 100°F

d. Heatstroke if >100°F (inclusive)

 

The freezing and heat stroke strains work, however when i type 75 as the temp high temp shows instead of no warning. Similarly 100 shows heatstroke instead of hightemp. Is there a way to fix this? Attached is my code

 

Screen Shot 2017-04-13 at 13.40.55.png

 

 

0 Kudos
Message 1 of 4
(2,914 Views)

Related thread.

 

Did you try probing?  This is the most basic LabVIEW debugging technique to figure out why something does what it does.

0 Kudos
Message 2 of 4
(2,909 Views)

For the 75, add a very tiny amount to the array constant.  As written, if exactly 75 is entered, you will get index of 2.  But if you set the threshold to be 75.001, then 75 will give you an index very close to 2, but will round down to 1 giving you No Warning.

 

For the 100, your requirements stated 100 should be Heatstroke.  So that is working as it should.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,892 Views)

Please don't start all these duplicate threads. It is already being discussed here.

 

This thread is now closed!

Message 4 of 4
(2,878 Views)