topic Formula Node Calculation Issues in LabVIEW
https://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682338#M598298
<P>I'm trying to make an array where the output is defined by the formula 25*(2^x) where x is the input variable, with integer iterations from 0 to 7. To do this, I made an formula node and put it in a for loop. Unfortunately the (^) symbol is not working right for the calculation. I tested it simply with x^2 and this did not work, while having x*x returned the correct values. Instead of outputting the correct values, it outputs seemingly random integers. Anyone know why? I am new to this software so I apologize if this this a common issue but I could not find help anywhere else.</P>Wed, 24 Aug 2011 19:11:49 GMTDK082011-08-24T19:11:49ZFormula Node Calculation Issues
https://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682338#M598298
<P>I'm trying to make an array where the output is defined by the formula 25*(2^x) where x is the input variable, with integer iterations from 0 to 7. To do this, I made an formula node and put it in a for loop. Unfortunately the (^) symbol is not working right for the calculation. I tested it simply with x^2 and this did not work, while having x*x returned the correct values. Instead of outputting the correct values, it outputs seemingly random integers. Anyone know why? I am new to this software so I apologize if this this a common issue but I could not find help anywhere else.</P>Wed, 24 Aug 2011 19:11:49 GMThttps://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682338#M598298DK082011-08-24T19:11:49ZRe: Formula Node Calculation Issues
https://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682352#M598300
<P>The LabVIEW Help <STRONG>does</STRONG> explain the allowed operators (Help>Formula Nodes>Precedence of Operators). The '^' is a bit exclusive or. A '**' is expon<SPAN class="Monospace">entiation.</SPAN></P>Wed, 24 Aug 2011 19:24:16 GMThttps://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682352#M598300Dennis_Knutson2011-08-24T19:24:16ZRe: Formula Node Calculation Issues
https://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682364#M598302
<P>Thank you so much, I thought I was going crazy. </P>Wed, 24 Aug 2011 19:28:14 GMThttps://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682364#M598302DK082011-08-24T19:28:14ZRe: Formula Node Calculation Issues
https://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682422#M598310
<P>If you use the numeric primitives rather than a formula node, craziness can be avoided (well, sometimes).</P>
<P> </P>
<P>Lynn</P>
<P> </P>
<P><IMG src="http://forums.ni.com/t5/image/serverpage/image-id/51290i675281F94F3FBB71/image-size/original?v=mpbl-1&px=-1" border="0" alt="Not Formula Nodes.png" title="Not Formula Nodes.png" align="center" /></P>Wed, 24 Aug 2011 19:56:08 GMThttps://forums.ni.com/t5/LabVIEW/Formula-Node-Calculation-Issues/m-p/1682422#M598310johnsold2011-08-24T19:56:08Z