Clear Filters
Clear Filters

Trubleshooting system model IEEE 906

2 views (last 30 days)
Martin
Martin on 21 Dec 2023
Edited: Fangjun Jiang on 22 Dec 2023
Hello,
I write bachelor thesis, but I have a problem. One part of my thesis is to run IEEE 906 simulation at this website: https://uk.mathworks.com/matlabcentral/fileexchange/66991-distribution-system-model-in-simscape-european-test-feeder
I downloaded it, but it does not work for me. The code is this:
% This script creates the model
%
% Copyright 2018 The MathWorks, Inc
clearvars
European_LV_graph_1segment
%%
data1.source_bus = data.source_bus;
data1.lineCodes = data.lineCodes;
data1.buses = data.buses;
data1.lines = data.lines;
data1.loads = data.loads;
% model name
mdl = 'blank_canvas_mux_50Hz';
open_system(mdl)
%add buses
bus_placement_European(mdl,data1)
disp('buses added')
% add lines
line_placement_European(mdl,data1)
disp('lines added')
% add loads
load_placement_European(mdl,data1)
disp('loads added')
% add source
source_placement_European(mdl,data1)
% data saving
define_outputs_mux_European(mdl)
disp('data saving added')
% set inputs
tagPQ = define_inputs(mdl);
% save to a new model name
new_mdl = 'IEEE_European_LV_COMPLETE';
save_system(mdl,new_mdl);
% define loads and gens
mdl = new_mdl;
define_loads
save([mdl,'_input_data'],'t','load_inputs')
%%
setenv('MW_MINGW64_LOC','C:\TDM-GCC-64')
mex -setup
Rs = 0.08;
Ts = 1;
rampInputs
If I run it, I receive a message:
And any of this options is bad. It does not work.
Author of this code wrote under this project that deleting row 76 and 78 may work, but it does not - commands: setenv('MW_MINGW64_LOC','C:\TDM-GCC-64')
mex -setup
Does anyone know, where is the problem?
Thanks for your answers.
  2 Comments
Fangjun Jiang
Fangjun Jiang on 21 Dec 2023
"And any of this options is bad. It does not work."
What is the error?? Do you have MINGW or GCC C compiler installed?
Martin
Martin on 22 Dec 2023
Hello, it is this error.

Sign in to comment.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 22 Dec 2023
Edited: Fangjun Jiang on 22 Dec 2023
Both this error message and the popup window indicate that European_LV_graph_1segment.m is not found. The file is listed in the File Exchange site. Try downloading again and make sure you get all the files.

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!