LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript failed to compile

Solved!
Go to solution

Hi!

I am trying to use a Mathscript node in LV 8.5.1, but with no success. I get the 

error "VI Failed to compile" and the Mathscript is "marked as the main error".  I have

used Mathscripts before but never had these problems. I use Windows XP SP3.

Everything works fine when I try the Labview Mathscript Example.

 

Do you have any solution for this problem?

Thanks in advance!

/Mattias

0 Kudos
Message 1 of 6
(8,379 Views)
Solution
Accepted by topic author mattias@hv
Hello Mattias,

This looks like a subtle problem.  You have a control located at "Affix 2009-04-17\Data.ctl."  Unfortunately, MathScript also uses a control called "data.ctl."  LabVIEW will not allow two separate controls with the same name be in memory at the same time.  It looks like your control is already in memory when MathScript starts loading, so it links to your control instead.  This causes internal errors and reports that the VI cannot be compiled.  The only fix right now is to rename your control to something other than "data.ctl."  We are working on fixing this and hope to have it in a future release.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
Message 2 of 6
(8,377 Views)

I never got everything back and right again, so I finally removed and reinstalled Labview. I changed the data.ctl to another name, now everything works fine. I will make sure to use "unique" names in the future :-).

 

Thank you for your time.

/Mattias

 

0 Kudos
Message 3 of 6
(8,374 Views)

It looks like I might be having the same sort of problem in 8.6.

 

I have a large project (deadline in several hours, of course) and suddenly one of my VIs will not compile.

 

Can anyone tell me if there is something in this VI that is causing the Mathscript node to fail?

 

I don't really have time to reinstall!

0 Kudos
Message 4 of 6
(8,027 Views)
Hello,

It looks like the only two typedefs used in your VI are SweepAlignment.ctl and SweepData.ctl.  Neither of these should cause problems with MathScript.  If I disconnect the typedefs on the front panel, the VI compiles and runs fine.  It doesn't look like there is any problem with the VI itself.

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

Thank you!  It was late, and the couple things I tried didn't work!

 

Any ide if these things will be fixed in LV09?

0 Kudos
Message 6 of 6
(8,014 Views)