For what it's worth, in my experiences, using IF THEN commands compile to a smaller file size than using the CASE command. That said, I would use a lookup table as Darrel provided an example.
What sensor are you using?
For what it's worth, in my experiences, using IF THEN commands compile to a smaller file size than using the CASE command. That said, I would use a lookup table as Darrel provided an example.
What sensor are you using?
Shawn
Thanks all for your advise
the at 389 the pressure is 3.3Bar but if its more than 3 bar i raise an alarm
my results are divided by 100 before its displayed.
Darrel the Lookup table works fine .
Shawn FYI ..........its a Vibrating Wire Sensor
Respect To You Guys
Isaac
Subtract 255 from all the values and you can use bytes in the lookup table and add 255 after the lookup.
Bookmarks