ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

You cannot use the "." operator to dereference data that is not a structure, this is for error −90076.

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) ;

0 Kudos
Message 1 of 2
(6,644 Views)

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.

0 Kudos
Message 2 of 2
(6,624 Views)