06-26-2013 12:49 PM
I'm attempting to apply a matlab code in the Mathscript RT Module in LabVIEW 2011.
Bellow is part of the code which is giving me a problem, It's to call another function and create plots with varying color.
NofPlots = size(K.K_m, 1);
PlotRes = 1000;
colr = varycolor(NofPlots);
for i = 1: NofPlots
K0= K.K_m(i,1) ;
K1= K.K_m(i,2) ;
K2= K.K_m(i,3) ;
K3= K.K_m(i,4) ;
K4= K.K_m(i,5) ;
K5= K.K_m(i,6) ;
K6= K.K_m(i,7) ;
K7= K.K_m(i,8) ;
06-27-2013 08:32 AM
Nevermind....I got it...LabVIEW 2011 can't handle structures from Matlab. To trace it I found the structure as a matrix of some variables and lots of zeros. After breaking down the structure into individual matrixes and loading them I could get the rest of my code to work.