02-15-2011 06:01 PM
I have just installed LabView 2009 SP1 on Mac OS X (Snow Leopard), along with MathScript, which is unable to do much beyond a simple assignment.
A simple if-else structure will work if it's only performing scalar assignments, bu trying to create a simple 1D array inside a MathScript Node structure (x=1:1:10) causes the VI to break with the error "MathScript Node: VI failed to compile."
Similarly, trying the following commands in a MathScript window all yield "Error in line 0: An internal error occurred while processing this MathScript. Contact National Instruments with the MathScript you used."
t=1:1:5
t=linspace(1,5,1)
help linspace
That's right, even the help command failed. The only thing that works is something like x=5 or x=sin(2.2*pi).
I am aware of these two articles, neither of which is applicable to Mac, or to 2009 SP1:
KnowledgeBase 59AH3P4A: Causes of Failed to Compile Error With MathScript Node
The second article suggests a couple folders to delete, one of which I have tried. The other does not exist on Mac installs. Needless to say, the utility to find corrupt instantiations is not useful here.
Thanks in advance for any suggestions.
Tom
Solved! Go to Solution.
02-16-2011 05:52 PM
I dont have LV 2009 SP1 on a MAC but I did this code and did not receive any errors. If you go to the NI License Manager and make sure the you have LV 2009SP1 with Mathscript and it is fully activated. Also, you might want to try repairing the install as it seems something might have gone wrong during the installation as I am not having any issues on my end.
David A.
02-16-2011 06:07 PM
According to http://digital.ni.com/public.nsf/allkb/38FDE969B08A0FAB862575F2007A6064?OpenDocument , there is no such thing as NI License Manager on Mac. I have also attempted a reinstall of MathScript, to no avail.
02-16-2011 06:17 PM - edited 02-16-2011 06:18 PM
TPrime,
Have you upgraded MathScript RT to 2009 SP1? The 2009 version of MathScript will NOT work with LabVIEW 2009 SP1.
Thanks,
K Scott
02-16-2011 06:59 PM
The install disc I used is locked up in the lab for the night, so I can't check it, but the version number at the bottom left of the MathScript window reads 9.0.1, which according to http://forums.ni.com/t5/LabVIEW-MathScript-RT-Module/How-to-share-a-variable-between-the-Mathscript-... should be SP1.
02-17-2011 01:53 PM
Yes, 9.0.1 refers to 2009 SP1. However, the number in the bottom left corner of the MathScript Window is derived from the LabVIEW version not the MathScript version. Therefore it is possible for you to have mismatched versions installed.
-K Scott
02-17-2011 03:39 PM
I assume since you didn't tell me how to check the MathScript version from within the software that it's not possible. I'm hoping you just forgot to say; otherwise that's a serious flaw in the software design. Almost as bad as LabView 2009 SP1 allowing users to install incompatible modules. Please please please tell me it's not actually that broken.
Tom
02-17-2011 04:04 PM
I would suggest looking at your MathScript readme located in your LabVIEW installation directory. This file will have the version of MathScript installed located at the top of the file.
-K Scott
02-17-2011 04:13 PM
I checked the install disc, and it appears that I have a mismatched install of MathScript. I've asked the professor to contact NI and request an updated disc. After it arrives and I've tested it, I'll mark this thread solved. Thank you for your help.
02-17-2011 04:21 PM
I'm glad I was able to help. This also happens when people upgrade LabVIEW to 2009SP1 from 2009 but forget to upgrade MathScript.
Cheers!
-K Scott