LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Documentation for "Eval Formula"

Solved!
Go to solution

Dear all!

 

I am reading through the documentation surrounding the mathematics library for parsing and evaluating text formulas. In particular I am looking for a grammar and list of avaiable symbols and functions. However, I am unable to find them. Is there a more detailed documentation available somewhere I have not looked? Obviously, the parsers are similar to other formula nodes (https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/gmath/differences-between-the-parse...)

 

I also do not understand the remark in https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/gmath/parser-llb/parse-formula-stri...

- What should I "Keep [...] in mind for [my] own programming"?

0 Kudos
Message 1 of 3
(1,917 Views)
Solution
Accepted by topic author LLindenbauer

Hi LLindenbauer,

 


@LLindenbauer wrote:

Obviously, the parsers are similar to other formula nodes (https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/gmath/differences-between-the-parse...)


The formula parser differs to the formula node as is written in the help:

The parser in the Mathematics VIs supports all elements that Formula Nodes support with the following exceptions: …

The following table lists functions that the parser in the Mathematics VIs supports but Formula Nodes do not. …

So you can read the help for the formula node, but need to keep in mind the differences as listed!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,913 Views)

I see. I was confused since formulas such as

float32 a = 1;

b = a+a;

fail not evaluate, but are valid in Formula Nodes. As I understand it now, the parser is somewhat simpler and accepts what is essentially a single right-hand-side expression.

 

Thanks for the reassurance.

Best Regards, L.

0 Kudos
Message 3 of 3
(1,891 Views)