• 大小: 1.11MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-09-21
  • 语言: 其他
  • 标签: 两电平  z源  

资源简介

里面包含了两电平的svpwm模型,还有结合z源带负载的整体仿真模型

资源截图

代码片段和文件信息


function makeInfo=rtwmakecfg()
%RTWMAKECFG adds include and source directories to rtw make files.
%  makeInfo=RTWMAKECFG returns a structured array containing
%  following field:
%     makeInfo.includePath - cell array containing additional include
%                            directories. Those directories will be
%                            expanded into include instructions of rtw
%                            generated make files.
%
%     makeInfo.sourcePath  - cell array containing additional source
%                            directories. Those directories will be
%                            expanded into rules of rtw generated make
%                            files.
makeInfo.includePath = {};
makeInfo.sourcePath  = {};


%

sfBuilderBlocksByMaskType = find_system(bdroot‘MaskType‘‘S-Function Builder‘);
sfBuilderBlocksByCallback = find_system(bdroot‘OpenFcn‘‘sfunctionwizard(gcbh)‘);
sfBuilderBlocks = {sfBuilderBlocksByMaskType{:} sfBuilderBlocksByCallback{:}};
sfBuilderBlocks = unique(sfBuilderBlocks);
if isempty(sfBuilderBlocks)
   return;
end
for idx = 1:length(sfBuilderBlocks)
   sfBuilderBlockNameMATFile{idx} = get_param(sfBuilderBlocks{idx}‘FunctionName‘);
   sfBuilderBlockNameMATFile{idx} = [‘.‘ filesep ‘SFB__‘ char(sfBuilderBlockNameMATFile{idx}) ‘__SFB.mat‘];
end
sfBuilderBlockNameMATFile = unique(sfBuilderBlockNameMATFile);
for idx = 1:length(sfBuilderBlockNameMATFile)
   if exist(sfBuilderBlockNameMATFile{idx})
      loadedData = load(sfBuilderBlockNameMATFile{idx});
      if isfield(loadedData‘SFBInfoStruct‘)
         makeInfo = UpdateMakeInfo(makeInfoloadedData.SFBInfoStruct);
         clear loadedData;
      end
   end
end

function updatedMakeInfo = UpdateMakeInfo(makeInfoSFBInfoStruct)
updatedMakeInfo = {};
if isfield(makeInfo‘includePath‘)
   if isfield(SFBInfoStruct‘includePath‘)
      updatedMakeInfo.includePath = {makeInfo.includePath{:} SFBInfoStruct.includePath{:}};
   else
      updatedMakeInfo.includePath = {makeInfo.includePath{:}};
   end
end
if isfield(makeInfo‘sourcePath‘)
   if isfield(SFBInfoStruct‘sourcePath‘)
      updatedMakeInfo.sourcePath = {makeInfo.sourcePath{:} SFBInfoStruct.sourcePath{:}};
   else
      updatedMakeInfo.sourcePath = {makeInfo.sourcePath{:}};
   end
end
if isfield(SFBInfoStruct‘additionalLibraries‘)
   % Copy over library and object files from their source folders to a
   % folder one folder above the *_target_rtw/ folder
   for idx=1:length(SFBInfoStruct.additionalLibraries)
      try
         if ~copyfile(SFBInfoStruct.additionalLibraries{idx})
            warning(‘Simulink:SFBuilder:rtwmakecfgCopyFailed‘ ...
                    sprintf(‘failed to copy %s to the current folder %s\n‘...
                    SFBInfoStruct.additionalLibraries{idx} pwd));
         end
      catch %Try catch is to avoid any hard errors due to copyfile
      end
   end
end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      92715  2010-06-23 15:11  SVPWM\MSVPWM.mdl

     文件     130224  2010-03-26 14:28  SVPWM\re ZSI.mdl

     文件       2998  2010-03-15 14:28  SVPWM\rtwmakecfg.m

     文件      60501  2010-09-09 17:17  SVPWM\S7.fig

     文件        224  2010-03-16 16:55  SVPWM\SFB__svpwm__SFB.mat

     文件     322018  2010-09-09 17:18  SVPWM\SPWM.fig

     文件       6435  2010-03-16 16:55  SVPWM\svpwm.c

     文件      55407  2010-03-16 18:18  SVPWM\SVPWM.mdl

     文件      34114  2010-03-16 16:50  SVPWM\svpwm_block.mdl

     文件     275040  2003-10-25 17:20  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\031025.mat

     文件      23884  2003-10-06 22:11  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\conti_SVPWM.mdl

     文件      21768  2003-10-28 21:35  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\DSP_TEST.mdl

     文件       8077  2003-10-10 12:18  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\DSP_TEST1.mdl

     文件      16166  2003-10-27 21:29  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\DSP_TEST2.mdl

     文件      21750  2003-10-25 17:19  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\DSP_TEST_M.mdl

     文件      23896  2003-10-06 22:15  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\fast_SVPWM.mdl

     文件      47104  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_acc.dll

     文件         33  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\modelsources.txt

     文件        344  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\rtw_proj.tmw

     文件        111  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer.bat

     文件      15211  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer.mk

     文件     135114  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer_acc.c

     文件      43918  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer_acc.h

     文件      55812  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer_acc.obj

     文件      15255  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer_acc_data.c

     文件       2981  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer_acc_data.obj

     文件       2257  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer_acc_private.h

     文件        798  2007-05-30 15:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\serialsim_no_observer_accel_rtw\serialsim_no_observer_acc_types.h

     文件    1650448  2003-10-06 22:10  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\Spectrum.fig

     文件      15659  2003-10-05 22:02  SVPWM\svpwm的matlab仿真,希望对学习有所帮助\SVPWM\SVPWM031004.mdl

............此处省略17个文件信息

评论

共有 条评论