?? bldc_tools.m
字號:
function ac7_example_tools(cmd,block);% ac7_example_tools does the calculation for the ac7_example.mdl%% cmd represents which tool is used (PI calculator or speed-torque curve)% Olivier Tremblay, ETS (Montreal), 26-sept-2006% Copyright 1997-2006 TransEnergie Technologies Inc., under sublicense% from Hydro-Quebec, and The MathWorks, Inc.switch cmd case 'SpeedTorqueCurve' if strcmp(get_param(block, 'check'), 'on') == 1 set_param(block, 'check', 'off') ele = str2num(get_param(block, 'ele')); Flux = str2num(get_param(block, 'Flux')); mec = str2num(get_param(block, 'mec')); Vdc = str2num(get_param(block, 'Vdc')); Tmax = str2num(get_param(block, 'Tmax')); accel = str2num(get_param(block, 'accel')); R = ele(1);L=ele(2); J = mec(1);B=mec(2);p=mec(3); wemax=p*Vdc/(2*Flux*p); we=0:1:wemax; TLmax=0.95*(Tmax-B.*we/p); %Facteur de s閏urit
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -