LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

New to Labview. Having problems with Boolean values in later on functions.

Its a very VERY simple problem. 15X^4. Im using 2 as my X value. So quick math on a calculator that is 810000. Cool. But when I test this out im getting a very different answer. Ive tested this every way possible and I have zero idea why the Boolean test in the picture below is giving me such grief. Any advice would be greatly appreciated.

Download All
0 Kudos
Message 1 of 2
(1,575 Views)

The output of "boolean to 1,0" is a 16 bit integer and will "overflow/roll over" with your huge operations. Insert a "to I64" (or "to I32", see below) after the function. Make sure to learn about representations.

 

Not sure why you made the indicators I64. For this particular calculation, I32 would be sufficient too.

 

(Make sure you know the significance of the red coercion dots that pepper your diagram! Each indicates a mismatch in datatype)

 

(On a side note, it is significantly easier to debug your actual VI instead of pictures, so next time attach the real code. thanks)

0 Kudos
Message 2 of 2
(1,552 Views)