I am entering this formula :
z = -10*log((10**((x)/10))-(10**(-(y)/10))); in the formula node. An error is displayed. Error on line 1 is marked by a '#' character: "... = -10*log((10**((x)#/10))-(10**(-(y)/10" Formula node: array indexing expected. Did not get it. Please provide me with a solution
Did not get it.
So you wire an array to your formula node - and don't get the error ""array indexing expected"?
Why use a formula node at all?
Because of famous polymorphism you can easily replace the controls/indicators by arrays…
I abhor the formula node for the simple reason that you have no chance for syntax error using native math primitives instead. (My typing is, well... bad.) 😄
A typical bug with the formula node and expression node is related to the fact that we use commas as separators over here. And when you use a number with a comma, you can get a valid expression, but not a valid result:
This results in y=12 for x=1, not y=12,34!
Moreover, you can't inline a subvi, which has an expression node or formula node within
that's the main reason we use those structures only for prototyping
here's my favorite: