05-27-2014 10:24 AM
Hello,
I am trying to acomplish having the case show up TRUE, if input 2 is a close multiple of Input 1. In the default case provided, the ramainder is 3.00001837. I was attempting to extract the fractional part of the division and pass that value to the comparson block to activate the TRUE/FALSE case structure. If the fractional part is less than 0.0002, then the case will be true, otherwise false.
Any help will be greatly appreciated.
Thanks,
hiNi.
05-27-2014 10:45 AM
You have the Quotient and Remainder outputs switched. Also, you want Absolute Value, not Round to Nearest. You do not need the case structure. Just wire the Less Than output to Boolean.
Lynn
05-27-2014 11:09 AM
Hello,
I am still having a problem extracting the decimal values even after using the absolute block.
Any other help will be greatly appreciated!
Thanks,
hiNi.
05-27-2014 11:17 AM - edited 05-27-2014 11:19 AM
Try something more like this
Quotient and Remainder is not really useful for floating point math
05-27-2014 11:53 AM
Here is the way I modified your VI.
Lynn