Skip to content

Commit

Permalink
Improved Mask
Browse files Browse the repository at this point in the history
- Mask has been graphically improved
- First MMC library
  • Loading branch information
l2ep-epmlab committed Jul 2, 2021
1 parent 6830130 commit d824ce4
Show file tree
Hide file tree
Showing 127 changed files with 33 additions and 33 deletions.
Binary file modified R2015b/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2015b/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2015b/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2015b/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2015b/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2015b/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2015b/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2015b/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2015b/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2015b/Library/MMC.slx
Binary file not shown.
Binary file modified R2015b/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2015b/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2016a/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2016a/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2016a/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2016a/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2016a/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2016a/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2016a/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2016a/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2016a/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2016a/Library/MMC.slx
Binary file not shown.
Binary file modified R2016a/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2016a/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2016b/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2016b/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2016b/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2016b/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2016b/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2016b/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2016b/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2016b/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2016b/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2016b/Library/MMC.slx
Binary file not shown.
Binary file modified R2016b/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2016b/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2017a/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2017a/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2017a/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2017a/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2017a/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2017a/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2017a/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2017a/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2017a/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2017a/Library/MMC.slx
Binary file not shown.
Binary file modified R2017a/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2017a/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2017b/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2017b/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2017b/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2017b/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2017b/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2017b/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2017b/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2017b/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2017b/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2017b/Library/MMC.slx
Binary file not shown.
Binary file modified R2017b/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2017b/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2018a/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2018a/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2018a/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2018a/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2018a/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2018a/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2018a/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2018a/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2018a/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2018a/Library/MMC.slx
Binary file not shown.
Binary file modified R2018a/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2018a/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2018b/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2018b/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2018b/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2018b/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2018b/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2018b/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2018b/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2018b/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2018b/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2018b/Library/MMC.slx
Binary file not shown.
Binary file modified R2018b/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2018b/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2019a/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2019a/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2019a/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2019a/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2019a/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2019a/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2019a/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2019a/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2019a/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2019a/Library/MMC.slx
Binary file not shown.
Binary file modified R2019a/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2019a/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2019b/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2019b/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2019b/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2019b/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2019b/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2019b/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2019b/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2019b/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2019b/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2019b/Library/MMC.slx
Binary file not shown.
Binary file modified R2019b/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2019b/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2020a/Examples/2-Level/GFe/L-filter/GFe_test.slx
Binary file not shown.
Binary file modified R2020a/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2020a/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2020a/Examples/2-Level/Grids/29bus/GFo_29bus.slx
Binary file not shown.
Binary file modified R2020a/Examples/2-Level/Grids/5bus/GFo_5bus.slx
Binary file not shown.
Binary file modified R2020a/Library/Control_Lib.slx
Binary file not shown.
Binary file modified R2020a/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2020a/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2020a/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2020a/Library/MMC.slx
Binary file not shown.
Binary file modified R2020a/Library/Source_Lib.slx
Binary file not shown.
Binary file modified R2020a/Library/VSC_Lib.slx
Binary file not shown.
Binary file modified R2020b/Examples/2-Level/GFo/L-Filter/GFo_L_Filter.slx
Binary file not shown.
Binary file modified R2020b/Examples/2-Level/GFo/LCL-filter/GFo_LCL_Filter.slx
Binary file not shown.
Binary file modified R2020b/Library/GFe_Lib.slx
Binary file not shown.
Binary file modified R2020b/Library/GFo_Lib.slx
Binary file not shown.
6 changes: 3 additions & 3 deletions R2020b/Library/LoadFlow_VSC.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%% Compute Loadflow

% Configure powergui as function of Generic Voltage Sources configuration:
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
powerguiHandle = find_system(gcs,'SearchDepth','1','Name','powergui');
try
powerguiHandle = get_param(powerguiHandle{1},'Handle');
catch
Expand Down Expand Up @@ -103,7 +103,7 @@
set_param([VSC_Lib_handle.VSC.idx{i} '/Output_Transformer'],'Commented','off');
set_param([VSC_Lib_handle.VSC.idx{i} '/Bridge_Model'],'Commented','off');

if (VSC_Lib_handle.VSC.to_be_linked == 1)
if (VSC_Lib_handle.VSC.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.VSC.idx{i}, 'LinkStatus', 'restore');
end
end
Expand All @@ -125,7 +125,7 @@
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_LF'],'Commented','on');
set_param([VSC_Lib_handle.GenVSource.idx{i} '/Source_For_OP'],'Commented','off');

if (VSC_Lib_handle.GenVSource.to_be_linked == 1)
if (VSC_Lib_handle.GenVSource.to_be_linked(i) == 1)
set_param(VSC_Lib_handle.GenVSource.idx{i}, 'LinkStatus', 'restore');
end

Expand Down
Binary file added R2020b/Library/MMC.slx
Binary file not shown.
Binary file modified R2020b/Library/Source_Lib.slx
Binary file not shown.

0 comments on commit d824ce4

Please sign in to comment.