LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -90032 occurred at Error in function centref at line 5 column 8: The indexes are out of bounds for the variable you specified

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

Download All
0 Kudos
Message 1 of 5
(3,634 Views)

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!

 

 

0 Kudos
Message 2 of 5
(3,554 Views)

then what you suggest to do 

 

 

means what i do in this how i passs these values

0 Kudos
Message 3 of 5
(3,541 Views)

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!

0 Kudos
Message 4 of 5
(3,519 Views)