LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript Node causing huge delay to produce output

Hello,

 

I have a simple task of using a function that I have written in MatLab that will output an XYZ coordinate when it gets an input of 3 different angles.

 

The problem I am facing is that when I run the program, as I change the values of the angles (using knobs), there is a huge delay until the output (XYZ Coordinate) is produced on the front panel. Whereas if I call the same function in matlab, the output is produced instantaneously.

 

I would like to be able to rotate the knobs and observe the XYZ coordinate instantaneously, if that is possible, or atleast with minimum delay time.

 

Please find the VI attached.

 

Any help would be appreciated.

 

r15

0 Kudos
Message 1 of 3
(2,549 Views)

Hello,

 

Accordin to the following link

http://zone.ni.com/reference/en-XX/help/371361G-01/lvtextmath/msfunc_eval/ 

Using the "eval" function in Mathscript node will slow down a lot the process.

 

Try to use mathematical functions directly rather intepreting the string.


kind regards,

Ion R.

0 Kudos
Message 2 of 3
(2,508 Views)

Hello,

 

Accordin to the following link

http://zone.ni.com/reference/en-XX/help/371361G-01/lvtextmath/msfunc_eval/ 

Using the "eval" function in Mathscript node will slow down a lot the process.

 

Try to use mathematical functions directly rather intepreting the string.


kind regards,

Ion R.

0 Kudos
Message 3 of 3
(2,508 Views)