From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript: fminsearch; global; runtime

Hi,

my function "fmintest" needs 254s ~ 4min to finish calculation in Mathscript, while Matlab needs
3s!!! I need the sorfware for data processing in a real time measuring system, where the calculation have to be done within 5 seconds.

In the Mathscript-help I found the following (global -> details):

If you call this function from a MathScript Node, LabVIEW operates with slower run-time performance for the MathScript Node. To optimize the performance of the MathScript Node, remove this function from scripts.

How can I remove needed global variables in the fminsearch function handle? Is the system faster if I would/can remove the global variables?

 and

How can I avoid Mathscript-breakdown after saving changes to m-files and restarting them again?

regards

Download All
0 Kudos
Message 1 of 2
(2,341 Views)
Hi tracetemp,

I think the best way to answere your post soon is to post it at the LabVIEW MathScript board.
Please post your question there.

Reagards
TomBaum



0 Kudos
Message 2 of 2
(2,314 Views)