LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call "Math Script" in LabVIEW Issues

1. I have used "CD" command in Math Script. It works in development environment but does not support in Executable.

 

If anybody has worked around this, please share ideas on forum.

 

2. VI containing Math Script takes 600ms execution time on licenced LabVIEW 8.6. Same thing takes 1 min on Evaluation copy. What could be the reason? I wonder licence copy should not be a reason.

 

Thanks in advance,

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

Hellow Sir,

Good Morning.

 

I dont have worked on mathscript but found something may that will helpf you bit/

 

The MathScript Working Directory is the default folder when using the save or load commands. You can display, and change, the Working Directory via the File / MathScript Preferences / Working Directory menu, but you do not have to do this unless you are going to use the save or load commands.

As an alternative to displaying the Working Directory using the File / MathScript Preferences menu, you can also display the Working Directoy using the pwd command (Print Working Directory):

pwd

And you can change the Working Directory using the cd command.

I think It will reset path when we open it.

 

Follwing is the link that may help you.

http://techteach.no/labview/lv85/mathscript/index.htm#sec_functions

 

Be in touch

Regards

Santosh

 

 

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

Iqbal Inamdar wrote:

1. I have used "CD" command in Math Script. It works in development environment but does not support in Executable.

 

If anybody has worked around this, please share ideas on forum.


From the LabVIEW Help:

This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.

As for workarounds: You can try creating the necessary path using LabVIEW functions and pass the path into the Mathscript node.

 

Not sure about the second behavior you've seen. 

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