bldc_tools.m
来自「基于MATLBA的无刷直流电机仿真」· M 代码 · 共 25 行
M
25 行
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 + =
减小字号Ctrl + -
显示快捷键?