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