diff --git a/.gitignore b/.gitignore index 87a04a3..de7494c 100644 --- a/.gitignore +++ b/.gitignore @@ -101,3 +101,39 @@ compile_commands.json *_qmlcache.qrc + + + +# ---> MATLAB +# Windows default autosave extension +*.asv + +# OSX / *nix default autosave extension +*.m~ + +# Compiled MEX binaries (all platforms) +*.mex* + +# Packaged app and toolbox files +*.mlappinstall +*.mltbx + +# Generated helpsearch folders +helpsearch*/ + +# Simulink code generation folders +slprj/ +sccprj/ + +# Matlab code generation folders +codegen/ + +# Simulink autosave extension +*.autosave + +# Simulink cache files +*.slxc + +# Octave session info +octave-workspace + diff --git a/MATLAB/diode_tester.slx b/MATLAB/diode_tester.slx index 4228bb0..aa7fb5a 100644 Binary files a/MATLAB/diode_tester.slx and b/MATLAB/diode_tester.slx differ diff --git a/MATLAB/diode_tester.slx.original b/MATLAB/diode_tester.slx.original new file mode 100644 index 0000000..0a54f28 Binary files /dev/null and b/MATLAB/diode_tester.slx.original differ diff --git a/MATLAB/sim_model_init.m b/MATLAB/sim_model_init.m new file mode 100644 index 0000000..b04f2ab --- /dev/null +++ b/MATLAB/sim_model_init.m @@ -0,0 +1,37 @@ +% Инициализация параметров модели +clear, clc + +Ts = 1e-7; + +% первое число - инициализация +% второе число - время подключения DC1 к цепи +% третье число - время отключения DC1 от цепи +% четвертое число - время подключения DC2 к цепи +% пятое число - время отключения DC2 от цепи +switch_time = [0 0.01 0.011 0.03 0.031 0.05 0.051]; + + +DC1_V = 5; +DC2_V = 5; + + +R1_R = 10000; +R2_R = 1; +% L1_L = ; +R3_R = 1; +C1_C = 1e-6; + +D1_R = 1e-3; +D1_L = 1e-6; +D1_Voltage = 0.8; +D1_SnubberR = 500; +D1_SnubberC = 250e-9; + + +SW_R = 1e-3; +SW_SnubberR = 1e5; +SW_SnubberC = inf; + + +AC_V = 5; +AC_Freq = 5; \ No newline at end of file