04-13-2017 12:47 PM
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
04-13-2017 12:52 PM
Did you try probing? This is the most basic LabVIEW debugging technique to figure out why something does what it does.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-13-2017 01:24 PM
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.
04-13-2017 01:57 PM - edited 04-13-2017 01:57 PM
Please don't start all these duplicate threads. It is already being discussed here.
This thread is now closed!