LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView 2009 Service Pack 1 Does this cause an issue with the MAthScripts for lo

Solved!
Go to solution

All,

I just installed Service Pack 1 for Labview 2009.  Now all my code that has for loops in my MathScripts causes my MathScripts not to compile.  Does any one have a clue as what I should do?

 

Thanks,

Rich

 

Windows XP (32 bit)

0 Kudos
Message 1 of 8
(3,584 Views)

Hi Rich,

 

Can you post an example of a MathScript Node which no longer compiles in the new version? Then we can try it out and see if it's a problem with 2009 SP1 generally or if something has become corrupted on your installation.

 

Thanks,

jattas

LabVIEW MathScript R&D

0 Kudos
Message 2 of 8
(3,541 Views)

All,

I un-installed LV2009, deleted its folder,  delete  "C:\Documents and Settings\...\My Documents\LabVIEW Data\InstCache\9.0" then reinstalled LV2009, then Service Pack 1.  (Note before installing SP1 I tested my code and it worked fine.  (Again I deleted "...InstCache\9.0" before installing SP1.)  The issue persists.  Attached is the errro I get and a PNG snippet og the code.

 

Thanks again,

Rich

Download All
0 Kudos
Message 3 of 8
(3,510 Views)
Hi Rich,

I tried your snippet in 2009 and 2009SP1 using the instructions that you posted above. It loaded and ran successfully, with no compile errors. So now the challenge is to determine what is different between your system and the ones that I tried it on.

Yours is the first report we've heard of this issue in 2009SP1. We've brainstormed several possible causes, but unfortunately we'll probably have to try many different things before we can narrow this down. Forgive me if you start to feel like our guinea pig!

Here are some questions to get us started:

  1. Which OS are you using? Is it English or another language?
  2. Is LabVIEW installed in the default location ("Program Files\National Instruments\LabVIEW 2009" on Windows)?
  3. Would you be able to post your LabVIEW.ini file? Or, failing that, try this with a clean INI file?
  4. What toolkits and modules do you have installed? Specifically, do you have the Control Design and Simulation Module installed?
  5. What is the license status for the NI software that you have installed? You can check this by opening the NI License Manager.
  6. Have you been building applications with MathScript?
  7. Do any of your MathScript Nodes call user-defined .m files?
  8. Could you try to mass compile the directory <LabVIEW>/vi.lib/imath/ and attach the log file that results? This is one way to check if any of the internal VIs of MathScript have become corrupted. You can start a mass compile by going to the Tools menu and then selecting Advanced>>Mass Compile.
  9. Have you tried running the "Find Bad Instantiations" tool in this Knowledge Base article? This is another way to check if MathScript internal VIs have become corrupted.
  10. Do you have access to any other machines with LabVIEW 2009SP1 and the MathScript RT Module? If so, could you try running your code there?
  11. Could you post some other examples that are failing? Does every for loop fail, or just the ones that use the "start:step:end" syntax? How about "for i = [1 2 4 5], end"?

Thanks in advance for your help tracking this down!

jattas
LabVIEW MathScript R&D
Message 4 of 8
(3,472 Views)

I back reved to 2009 with out the service pack.  (I just don't have the time to deal with this right now...) I put in a service request and am waiting to hear back.  #1490475  I sent them a MAX dump and a snippet of code.

 

Thanks for your help!

Rich

0 Kudos
Message 5 of 8
(3,462 Views)
Solution
Accepted by rwelch
Un-installed LabView 2009, reinstalled after deleting all folders related to 2009.  Installed, then applied SP1 for both LabView as well as MathScript.   
Message 6 of 8
(3,312 Views)

I have this same problem but I'm not sure how to verify that I am installing MathScript RT with Service Pack 1. This is the location I got MathScript from: https://lumen.ni.com/nicif/us/evaltlktsigproc/content.xhtml

 

kph

0 Kudos
Message 7 of 8
(3,246 Views)

kph,

 

I would try installing from ni.com/src's SP1 page. I think that this will clear up any confusion about which version you are getting. Let me know if you have any questions.

Justin Parker
National Instruments
Product Support Engineer
Message 8 of 8
(3,196 Views)