matlab_stm_emulate/mexing.m

25 lines
383 B
Matlab

% Компилирует S-function
clear, clc,
set = mex.getCompilerConfigurations('C', 'Selected');
Ts = 0.00001;
Unom = 460;
Udc = Unom*sqrt(2);
freq = 20000;
Rload = 2;
Lload = 10*Rload/freq;
delete("*.mexw64")
delete("*.mexw64.pdb")
delete(".\MCU_Wrapper\Outputs\*.*");
status=system('.\MCU_Wrapper\run_mex.bat debug');
if status==0
beep
else
error('Error!');
end