LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When is best to use a formula node?

Hello:
 
I just started wondering when would be a good situation to use a formula node??. It's just to save space in the diagram if there's the need to create a complex arithmetic operation?? Wouldn't it be better to just use G??


Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 1 of 6
(4,387 Views)

I always found the formula node limiting and overly complex to debug and maintain (You cannot probe inside the formula node!). a single misplaced semicolon or syntax error can break your formula.

Much more powerful is the new Mathscript node in LabVIEW 8.0, where you can use matlab-like syntax. 🙂

Personally, I  go with the wires whenever possible. 😉

Message 2 of 6
(4,372 Views)
I've used formula nodes in rare instances. Pretty much only when it was much more succinct (i.e., less space) to write a few lines of code as opposed to using a bunch of G objects. One case I used it was when I had to lookup a path loss for a given frequency from an array of path loss vs frequency. The built-in interpolation VI only works if the array is ascending, and in my case the data was not monotonically ascending. In this case I just used the formula node to perform the interpolation.
Message 3 of 6
(4,370 Views)

The only time I use a Formula Node is when I need to enter an equation (which is not very often).  Here's a VI I wrote just the other day that was simply faster to write, and probably easier to understand mathematically, than attempting to wire up the same thing.

-D

Message Edited by Darren on 02-09-2006 01:32 PM

Message 4 of 6
(4,367 Views)

Hi all:

Thanks for your replies. I also use G is most situations but wanted to know your opinion. Now that we're talking about Event Structure vs Wiring,  Do you know if there's any execution speed diference between both techniques?

Regards.

Robst.



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 5 of 6
(4,352 Views)
Look at this thread:

Faster Execution ?
0 Kudos
Message 6 of 6
(4,340 Views)