06-11-2014 02:06 AM
Sir,
i am running a matlab code in mathscript of labview but getting an error
Error -90032 occurred at Error in function centref at line 5 column 8: The indexes are out of bounds for the variable you specified
this code running successfully in matlab
please help me in this regard
a .vi format file is attached named as mfcc_new.vi
06-17-2014 07:58 PM
Hi!
May I understand "centref" is not a Matlab function, so it must be a .m file that you created. You said your code runs successfully in Matlab but make sure that in your test in Labview you're using the same values for the inputs with respect to your test in Matlab. If it runs in Matlab, it could be because you're passing unexpected inputs in Labview which make it fails.
Good luck!
06-17-2014 11:50 PM
then what you suggest to do
means what i do in this how i passs these values
06-18-2014 12:45 PM
May I see you have 6 inputs to your Mathscript Node. When you test it in Matlab I suposse that you're using some values for this inputs and everything work as expected. Then, run it in Labview using highlight execution, retaining wire values and using single stepping. Check the values which are being inserted to your Mathscript Node and ensure that they are correct. You're having an "indexes out of bounds" mistake, so it probably means that there is something wrong with the inputs according to your expectations. You can also put the MathScript alone in another VI and insert the inputs you're expecting manually and check in the same way.
Good luck!
05-06-2020 05:20 PM
Did you solve this?