ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula node

Solved!
Go to solution

 

 

Daft question. But how do you input the following into a formula node.

 

In excel i would type “=(2+7)^3” which would give 729

In my formula node I type something similar,  “A=(2+7)^3”; but the answer is 10

All without quotes obviously.

0 Kudos
Message 1 of 4
(3,256 Views)
Solution
Accepted by labnoob

Hi,

 

It should be written like this

A=(2+7)**3;

Message 2 of 4
(3,245 Views)

perfect thanks

0 Kudos
Message 3 of 4
(3,243 Views)

LabVIEW Help -> Fundamentals -> Formulas and Equations -> How-To -> Precedence of Operators in Formula Nodes and Expression Nodes. Also found by searcing "formula node" in the index and then clicking on the "operators" subindex entry.

0 Kudos
Message 4 of 4
(3,226 Views)