Hello there,
Sorry for the odd first post but am really desperate here. Can anybody please convert the following matlab code to labview? It will be a big help.
clear; colordef white;p=input('How many poles '); % No. of polestheta=linspace(0,2*pi,50); n=length(theta);ro=6; rs=5; rr=4; % Outside, bore, & rotor radiirgr=4.5; % Air gap center grid radiusRo=ro*ones(1,n);Rs=rs*ones(1,n);Rgr=rgr*ones(1,n);Rr=rr*ones(1,n);F=zeros(1,n); F1=F; F2=F; phi=pi/4;for i=1:37; pause(0.001); polar(theta,Ro,'-.'); hold on; polar(theta,Rs,'-.'); polar(theta,Rgr,'m'); polar(theta,Rr,'g-.');for j=1:n; F1(j)=Rr(j)+0.5+0.225*cos(p/2*theta(j)-phi);F2(j)=Rr(j)+0.5+0.225*cos(p/2*theta(j)+phi);F(j)=F1(j)+F2(j)-Rr(j)-0.5; endpolar(theta,F,'r'); polar(theta,F1,'y:'); polar(theta,F2,'c-.');text(0.9,rs+0.25,'Stator');text(-1.5,rr-0.75,'Rotor');text(5.5,5,'.. Forward');text(5.5,4,'-. Backward');text(5.5,6,'- Resultant');name=['Air gap mmf waves of single-phase induction motor'; ' '; ' ']; title(name);phi=phi+pi/18; hold off;end
Any help will be appreciated
Thanks alot