LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript- pre compile and passwords

Has there been any method to pre compile a Mathscipt to shorten run time?  If one wants to demo a Mathscript program and has to wait 30+ sec for it to compile, it sure reduces the impact.
 
Another question, is there a method to reset passwords ( especially related to Mathscript login) when passwords were never set to begin with.
 
CEK
0 Kudos
Message 1 of 4
(7,010 Views)
Hi Cek,
 
MathScript will compile the script when you save a VI or run a VI with unsaved changes. Therefore, I think that it should be no notable impact if your working PC and demo PC install the same version of LabVIEW. Would you please provide more information about your case?
 
As to the password, I am not fully understand your question. Do you want a kind of login mechanism such as Windows Login?
0 Kudos
Message 2 of 4
(7,005 Views)
Sorry I was not clear enough. I am running a relatively long Mathscript m file and the compile time is > than 30 sec. Not good for demo purposes. The compiled m file runs quick enough, 1-2 sec. Is there a method to pre compile and have a run time module I can call?

Also in Mathscript, when I go to security menu I can not login....asked for password. Since I never set one up I get stopped there. I assume this would allow me to passwork lock any saved Mathscript files? Security might accept (Nobody) without a pre assigned pass word?

I appreciate your advise,

CEK
0 Kudos
Message 3 of 4
(7,001 Views)
Hello CEK,

The compile time of a script (or function) in MathScript increases exponentially with respect to the number of lines in the script.  We recommend limiting each script to about 40 or 50 lines so that the compile time is reasonable.  You can create functions out of parts of your file to break it into smaller pieces.  If this is still a problem, you can create the VI on a separate computer with the full script.  Then simply copy the VI to the demo computer and open it rather than recreate the VI.  As ttrr notes, make sure both computers have the same version of LabVIEW installed.

As for the security menu, this is not part of MathScript.  You may have more luck asking your question in the regular LabVIEW forum.  If you wish to password protect the VIs you've created (with MathScript nodes or otherwise), go to File >> VI Properties.  Select the Protection category and then click "Password-protected."

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 4 of 4
(6,995 Views)