LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

How fast is MathScript

How fast is Mathscript compared to calling a c program using Call Library Function?  In general, Labview is pretty slow in executing itterative algorithms. I get around this by writing these algorithms in C and calling them from Labview. How fast will Mathscript be compared to calling C code.
0 Kudos
Message 1 of 6
(9,878 Views)
We don't currently have any benchmarks now in this regard, so we can't give you a quantitative answer right now.
Nonetheless, MathScript, like LabVIEW itself, is compiled for efficient execution. MathScript execution is fast when the algorithm is dominated by computational complexity. However, loop overhead and scripts that are not vector- or matrix-based will decrease the execution speed.

We'd be happy to take suggestions for any specific benchmarks that you'd like to see--please let me know.

Sincerely,

--Sam
Sam Shearman
0 Kudos
Message 2 of 6
(9,844 Views)
Is there a performance difference between the Mathscript and the Forumla Node?

Ed
0 Kudos
Message 3 of 6
(8,928 Views)
Hello Ed,

There is indeed a performance difference between the formula node and the MathScript node.  The formula node compiles directly to assembly code while the MathScript node is built on top of LabVIEW.  However, the formula node has a very limited set of functions and minimal array support.  It is also unable to work with complex data.  If your algorithm can be implemented in the formula node, you will see a performance advantage by doing so.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
Message 4 of 6
(8,920 Views)
Not very fast for somewhat complex math (such as a double integration perhaps). For simple scripts is okay!. I would not try to do anything more than that though.
0 Kudos
Message 5 of 6
(8,513 Views)

How is it on FFTs?

Thanks,

Gary

0 Kudos
Message 6 of 6
(8,432 Views)