LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mac mathscript node failed to compile

Solved!
Go to solution

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

KnowledgeBase 553C13WI: Detecting Corrupt Instantiation VIs and MathScript Node Failed to Compile Er...

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

 

 

0 Kudos
Message 1 of 10
(3,414 Views)

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.

National Instruments
Applications Engineer
0 Kudos
Message 2 of 10
(3,381 Views)

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.

0 Kudos
Message 3 of 10
(3,377 Views)
Solution
Accepted by topic author TPrime

TPrime,

 

Have you upgraded MathScript RT to 2009 SP1? The 2009 version of MathScript will NOT work with LabVIEW 2009 SP1.

 

Thanks,

 

K Scott

0 Kudos
Message 4 of 10
(3,375 Views)

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.

0 Kudos
Message 5 of 10
(3,366 Views)

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

0 Kudos
Message 6 of 10
(3,346 Views)

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

0 Kudos
Message 7 of 10
(3,340 Views)

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

0 Kudos
Message 8 of 10
(3,332 Views)

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.

0 Kudos
Message 9 of 10
(3,326 Views)

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

0 Kudos
Message 10 of 10
(3,323 Views)