LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

continue bug

I am having problem with the 'continue' statement in Mathscript in LV2009.  When I build a node with the following code:

 

 

for k=1:5
if( 1)
continue;
else
5+2;
end;
end;

 

 

The mathscript compiler fails, and gives the following error:  "An error occurred in compiling this VI."

Super helpful right??  If I instead replace the continue statement with some kind of NO-OP like: 1+1  and save, it compiles just fine?  Does anybody else expierence this bug.  I am using LV2k9 with the f2 patch.

 

 

0 Kudos
Message 1 of 3
(6,404 Views)

Hi Ptilghma,

 

Works fine with my version of LV (LV 2009 f2, German). Both in the LV node

and in the interactive window. Keep in mind that the continue command is not

supported by the run time engine. If you build e.g.an executable it won't work.

Do you see the little warning sign next to the continue command?

 

Ulf

0 Kudos
Message 2 of 3
(6,394 Views)

Hello ptilghma,

 

Are you still seeing this issue? I also tried to reproduce it but had no success.

 

One issue we have seen is that some of the internal VIs created by MathScript can become corrupted. If this is still causing problems, you could try the following workaround:

1) Shut down LabVIEW.

2) Navigate to your "LabVIEW Data" directory (on Windows it's under "My Documents").

3) Rename the folder called "InstCache" to something else

4) Launch LabVIEW and try your MathScript Node again.

 

If this fixes the issue then it means that the cache of MathScript internal VIs did become corrupted. If this doesn't fix the issue, then we'll have to try some other methods of debugging the problem.

 

Good luck!

jattas

LabVIEW MathScript R&D

0 Kudos
Message 3 of 3
(6,375 Views)