10-29-2009 09:35 AM
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.
10-30-2009 05:20 AM
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
11-02-2009 05:32 PM
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