to compile just fine. After upgrading to 2009 SP1 (and also after applying the f3 patch and then upgrading to SP1) the same MathScript no longer compiles, however the script
A = 1
%for i = 1:1:10
A = A + 1
%end
will compile. To test this I create a new VI in whichever version of LabVIEW I'm using and write the script from fresh - not copying or pasting from a previous file version.
The same behaviour is replicated in the built-in example "Mathscript Fractal.vi" - it only compiles for me when the for loop is commented out.
You mentioned upgrading LabVIEW 2009 to 2009SP1 but did you also upgrade MathScript to 2009SP1? This is a common cause for problems since MathScript 2009 is not compatible with LabVIEW 2009SP1.
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.