03-17-2017 09:21 AM
Which is better for LabVIEW/MathScript Optimization:
The answer could say "neither".
More details:
03-17-2017 09:41 AM
Which key are you referring to when talking about "optimization"?
I assume execution speed. In that context, my recommendation is to completely skip MathScript and implement everything in one language (that might also be true for memory optimization as well).
When you HAVE to use MathScript, you should try to not toggle around between LV and MathScript often. That means that depending on your preferences (e.g. by skill), you should implement most of the task in the language you prefer (e.g. LV) and leave only little tasks to the other language.
03-17-2017 10:00 AM
Agree that breaking it into chunks that can run pure LabVIEW would be the best (subVIs and no MathScript). My gut feel is that you will see better optimizations as a single MathScript Node if you had to go that route (changing contexts is usually hard on a program).
03-17-2017 11:52 AM
How large is "decently large"? What makes it large? (complicated system, long running, etc.)
03-17-2017 12:02 PM
I will join the choir and say the best way to optimize the speed of MathScript is to not use MathScript.
The LV compiler is absolute genius when it comes to breaking up code into clumps and make full use of all of the CPUs.
paraphrasing from Tommy by the Who "...He can beat my best. That deft lean, compiler, sure writes some mean machine code."
I do not believe it is quite as amazing once you step outside the world of wires.
Just my 2 cents,
Ben
03-17-2017 12:10 PM
@Altenbach
>>How large is "decently large"? What makes it large?
Answers: