08-14-2013 09:53 AM
Hi there,
I am trying to make some code work with MathScript RT in LabView 2012, but I keep getting an error -20033 (see screenshot below) for an irrelevant line of code.
The line MathScript complains about (line 45) is the following:
percentLast = floor(max(levelPercent));
This error does not make any sense for that line (levelPercent is a 1D array), and no line above or below corresponds to that error either.
If I comment out the offending line, I get the same error for another completely unrelated line.
Also note that the very same code works well with MATLAB.
Is there a known bug in MathScript that could create this behavior? If yes, is there a way to work around it?
Thanks in advance for your help.
Best regards,
Olivier H.
08-14-2013 11:11 PM
Hi,
The error code should be returned from filter design functions. Do you call any filter design functions before line 45?
08-15-2013 10:04 AM
Actually, I could trace this error to a call to resample() at another unrelated location (and different .m file) in the code. I found it by basically commenting out one line at a time until the error disappeared. It looks like error reporting needs some work in Mathscript.
Olivier
08-15-2013 07:58 PM
Hi,
Is it possible for you to post the code to call resample()? resample() might throw this error if it fails to design a filter.