LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference in calculation time.

Hello all,

I'm trying to get to grips with LabView and came across the following:
I have LabView calculating the function Y=sin (X^2/4+2X+1). The calculationtime of this function with the use of a formula-node is about twice as long as with the use of the numeric palette.
Any idea why?

Bodypilot
0 Kudos
Message 1 of 2
(2,626 Views)
Bodypilot,

Sorry for the obvious reply but this is because the numeric nodes execute faster than formula nodes. I don't know the guts of internal computation in LabVIEW but the code generated for numeric nodes is more optimized than the code for formula node. Remember that the diagram is compiled for both the diagram and the formula and the graphical/textual nature of the code representation doesn't a priori warrants that a computation will be faster than the other.

LabVIEW has always been primarly diagram-oriented and optimized for diagram nodes that consist most of the code. Surely the formula node could also be optimized to run as fast as a diagram but that wouldn't affect the overall performance of your application unless most of your computa
tion involves formula nodes.


LabVIEW, C'est LabVIEW

Message 2 of 2
(2,625 Views)