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: 

Error using formula node


@paul_a_cardinale wrote:
Would you see a problem if the Louvre replaced the Mona Lisa with a text description of it

this probably will be regarded as a bad decision and will  make many people very angry

😉

 

Documenting the blockdiagram with LaTex-Formulas is rather a niche-application - however, there exits this 2009 tech-demo

 

https://forums.ni.com/t5/Example-Code/Math-Node-A-new-way-to-do-math-in-LabVIEW/ta-p/3494770

0 Kudos
Message 11 of 13
(951 Views)

@GerdW wrote:

Hi Paul,

 

do you know of the polynomial evaluation?

I was too narrowly focused on doing a function-by-function conversion to G.  Using that simplifies the G code even more.

 


Btw. according to Wikipedia you calculate a3*ln(Rt)^3 and not ( a3*ln(Rt) )^3…


My mistake  --  which underscores the difficulty in reading text formulas.

Here is a fixed up version:

t.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 12 of 13
(927 Views)

what I really detest about the formula node is, that you can initialize an array within the formula node, but only with a constant

e.g. float array[499]; 

 

trying to change that 499 to a variable breaks the formula node with error "index list expected"

however, arrays can be fed to the formula node as input and be re-used as output

 

Spoiler
array-formula_final.png

 

0 Kudos
Message 13 of 13
(907 Views)